SAP NetWeaver '04

com.sapportals.wcm.service.scheduler
Interface ISequence

[contained in: com.sap.netweaver.bc.sf.service.par - bc.sf.service.scheduler_api.jar]
public interface ISequence

Specifies a sequence of scheduler entries. This is an additional order relation to perfom scheduler tasks at a certain time only after a previous sequenced task was performed before.

Each scheduler entry has to be unique in this sequence. Copyright (c)2003 SAP AG


Method Summary
 ISchedulerEntry add(int index, ISchedulerEntry entry)
          Inserts a scheduler entry to the sequence at position index.
 ISchedulerEntry add(ISchedulerEntry entry)
          Appends a scheduler entry to the end of the sequence.
 void clear()
          Removes all of the elements from this sequence.
 boolean contains(ISchedulerEntry entry)
          Returns true if this sequence contains the specified entry.
 ISchedulerEntry get(int index)
          Returns the entry at the specified position in this sequence.
 java.lang.String getID()
          Get the unique id of the sequence.
 boolean isEmpty()
          Returns true if this sequence contains no entries.
 boolean remove(ISchedulerEntry entry)
          Removes an entry from the sequence.
 int size()
          Returns the number of entries in this sequence.
 ISchedulerEntry[] toArray()
          Converts the entries of this sequence to an array in the proper order.
 

Method Detail

getID

public java.lang.String getID()
Get the unique id of the sequence.
Returns:
a String with the entry's id.

add

public ISchedulerEntry add(ISchedulerEntry entry)
                    throws WcmException
Appends a scheduler entry to the end of the sequence. The scheduler entry must not be added before, otherwise an exception will be raised.
Parameters:
entry - A scheduler entry
Returns:
the added scheduler entry
Throws:
WcmException - If adding fails.

add

public ISchedulerEntry add(int index,
                           ISchedulerEntry entry)
                    throws WcmException
Inserts a scheduler entry to the sequence at position index. The scheduler entry must not be added before, otherwise an exception will be raised.
Parameters:
index - The position of the entry in the sequence.
entry - A scheduler entry
Returns:
the added scheduler entry
Throws:
WcmException - If adding fails.

remove

public boolean remove(ISchedulerEntry entry)
               throws WcmException
Removes an entry from the sequence. If this sequence does not contain the entry, it is unchanged.
Parameters:
entry - The entry to remove.
Returns:
true if this list contained the specified element.

clear

public void clear()
           throws WcmException
Removes all of the elements from this sequence. This sequence will be empty after this call returns (unless it throws an exception).

toArray

public ISchedulerEntry[] toArray()
Converts the entries of this sequence to an array in the proper order.
Returns:
an array of scheduler entries

size

public int size()
Returns the number of entries in this sequence.
Returns:
the number of entries in this sequence.

isEmpty

public boolean isEmpty()
Returns true if this sequence contains no entries.
Returns:
true if this sequence contains no entries.

get

public ISchedulerEntry get(int index)
Returns the entry at the specified position in this sequence.
Parameters:
index - of element to return.
Returns:
the element at the specified position in this list.

contains

public boolean contains(ISchedulerEntry entry)
Returns true if this sequence contains the specified entry. More formally, returns true if and only if this sequence contains exactly one entry e such that (entry==null ? e==null : entry.equals(e)).
Parameters:
entry - entry whose presence in this sequence is to be tested.
Returns:
true if this list contains the specified element.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.