Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.remotebuild
Class CLList

java.lang.Object
  extended by com.ibm.etools.iseries.remotebuild.CLValue
      extended by com.ibm.etools.iseries.remotebuild.CLList
All Implemented Interfaces:
Cloneable

public class CLList
extends CLValue
implements Cloneable

Many CL Commands have parameters that contain lists of values. This class builds those kinds of lists. These lists are used as values of a parameter or as an element of a parameter list. Each object is either a String or another CLValue.


Field Summary
static String Copyright
           
 
Constructor Summary
CLList()
           
 
Method Summary
 CLList add(CLValue value)
          Adds a CLValue value to the contents of this list.
 CLList addAll(List values)
          Appends a List to the contents of this list.
protected  boolean contains(CLValue child)
          Returns true if and only if this list contains the argument at any depth (including 0).
 String toString()
          Returns a string representation of this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

CLList

public CLList()
Method Detail

addAll

public CLList addAll(List values)
Appends a List to the contents of this list.


add

public CLList add(CLValue value)
Adds a CLValue value to the contents of this list. A check is made to ensure that this value doesn't already occur in the list at some point. This ensures that there are no cycles in encountered when walking the graph of values.

Returns:
this CLList so that additional operations may be chained.
Throws:
IllegalArgumentException - if the value being added is already in the list or any of its children.

contains

protected boolean contains(CLValue child)
Returns true if and only if this list contains the argument at any depth (including 0).

Overrides:
contains in class CLValue

toString

public String toString()
Returns a string representation of this list.

Specified by:
toString in class CLValue

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.