SAP NetWeaver '04

com.sapportals.wcm.repository.service.statemanagement
Interface IResourceTransitionList

[contained in: com.sap.km.cm.repository.service.base.par - km.shared.repository.service.statemanagement_api.jar]
All Superinterfaces:
IList

public interface IResourceTransitionList
extends IList

A special list containing only ResourceTransition instances. All methods of the java.util.List are provided.


Method Summary
 void add(int index, IResourceTransition element)
          Inserts the specified element at the specified position in this list (optional operation).
 boolean add(IResourceTransition o)
          Appends the specified element to the end of this list (optional operation) Depending on the runtime type of the contained list, this operation may place limitations on what elements can be added to this list.
 boolean addAll(IResourceTransitionList c)
          Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).
 IResourceTransition get(int index)
          Returns the element at the specified position in this list
 IResourceTransitionIterator iterator()
          Returns an iterator over the elements in this list in proper sequence
 IResourceTransitionIterator listIterator()
          Returns a list iterator of the elements in this list (in proper sequence)
 IResourceTransitionIterator listIterator(int index)
          Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.
 IResourceTransition remove(int index)
          Inserts the specified element at the specified position in this list (optional operation).
 IResourceTransition set(int index, IResourceTransition element)
          Replaces the element at the specified position in this list with the specified element (optional operation)
 IResourceTransitionList subList(int fromIndex, int toIndex)
          Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.
 IResourceTransition[] toArray()
          Returns an array containing all of the elements in this list in proper sequence.
 IResourceTransition[] toArray(IResourceTransition[] a)
          Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array.
 
Methods inherited from interface com.sapportals.wcm.repository.service.statemanagement.IList
clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, removeAll, retainAll, size
 

Method Detail

iterator

public IResourceTransitionIterator iterator()
                                     throws WcmException
Returns an iterator over the elements in this list in proper sequence
Returns:
an iterator over the elements in this list in proper sequence

toArray

public IResourceTransition[] toArray()
Returns an array containing all of the elements in this list in proper sequence. Obeys the general contract of the Collection.toArray method.
Returns:
an array containing all of the elements in this list in proper sequence

toArray

public IResourceTransition[] toArray(IResourceTransition[] a)
Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array. Obeys the general contract of the Collection.toArray(Object[]) method.
Parameters:
a - the array into which the elements of this list are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
Returns:
an array containing the elements of this list
Throws:
ArrayStoreException - if the runtime type of the specified array is not a super type of the runtime type of every element in this list

add

public boolean add(IResourceTransition o)
Appends the specified element to the end of this list (optional operation)

Depending on the runtime type of the contained list, this operation may place limitations on what elements can be added to this list. In particular, some lists refuse to add null elements, and others will impose restrictions on the type of elements that can be added. List classes should clearly specify in their documentation any restrictions on what elements can be added.

Parameters:
o - element to be appended to this list
Returns:
true (as per the general contract of the Collection.add method)
Throws:
java.lang.UnsupportedOperationException - if the add method is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
java.lang.IllegalArgumentException - if some aspect of this element prevents it from being added to this collection

addAll

public boolean addAll(IResourceTransitionList c)
               throws WcmException
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it is not empty).
Parameters:
c - collection whose elements are to be added to this list
Returns:
true if this list changed as a result of the call
Throws:
java.lang.UnsupportedOperationException - if the addAll method is not supported by this list
ClassCastException - if the class of an element in the specified collection prevents it from being added to this list
java.lang.IllegalArgumentException - if some aspect of an element in the specified collection prevents it from being added to this list

get

public IResourceTransition get(int index)
Returns the element at the specified position in this list
Parameters:
index - index of element to return
Returns:
the element at the specified position in this list
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())

set

public IResourceTransition set(int index,
                               IResourceTransition element)
Replaces the element at the specified position in this list with the specified element (optional operation)
Parameters:
index - index of element to replace
element - element to be stored at the specified position
Returns:
the element previously at the specified position
Throws:
java.lang.UnsupportedOperationException - if the set method is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
java.lang.IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size()).

add

public void add(int index,
                IResourceTransition element)
Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
Parameters:
index - index at which the specified element is to be inserted
element - element to be inserted
Throws:
java.lang.UnsupportedOperationException - if the add method is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
java.lang.IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())

remove

public IResourceTransition remove(int index)
Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
Parameters:
index - index at which the specified element is to be inserted
element - element to be inserted
Throws:
java.lang.UnsupportedOperationException - if the add method is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
java.lang.IllegalArgumentException - if some aspect of the specified element prevents it from being added to this list
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())

listIterator

public IResourceTransitionIterator listIterator()
                                         throws WcmException
Returns a list iterator of the elements in this list (in proper sequence)
Returns:
a list iterator of the elements in this list (in proper sequence)

listIterator

public IResourceTransitionIterator listIterator(int index)
                                         throws WcmException
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. The specified index indicates the first element that would be returned by an initial call to the next method. An initial call to the previous method would return the element with the specified index minus one.
Parameters:
index - index of first element to be returned from the list iterator (by a call to the next method)
Returns:
a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())

subList

public IResourceTransitionList subList(int fromIndex,
                                       int toIndex)
                                throws WcmException
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. The specified index indicates the first element that would be returned by an initial call to the next method. An initial call to the previous method would return the element with the specified index minus one.
Parameters:
index - index of first element to be returned from the list iterator (by a call to the next method)
Returns:
a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index > size())

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.