Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.remotebuild
Class CLParameter

java.lang.Object
  extended by com.ibm.etools.iseries.remotebuild.CLParameter

public class CLParameter
extends Object

A CLParameter is a keyword and a list of values. Parameters are added to commands.


Field Summary
static String Copyright
           
 
Constructor Summary
CLParameter(String name)
          CLParameter constructor.
 
Method Summary
 CLParameter add(CLValue value)
          Adds a new value to a parameter.
 boolean contains(CLValue child)
          Tests the the value is already a part of this argument or its children.
 String getName()
          Returns the name for this parameter.
 boolean isNamed(String name)
          Returns true if and only if this parameter is named by the string.
 String toString()
          Returns a printable representation of this parameter
 
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

CLParameter

public CLParameter(String name)
CLParameter constructor.

Method Detail

add

public CLParameter add(CLValue value)
Adds a new value to a parameter.

Returns:
this CLParameter so that operations can be chained.

getName

public String getName()
Returns the name for this parameter.


isNamed

public boolean isNamed(String name)
Returns true if and only if this parameter is named by the string. This is used for searching the parameters of a command for a particular one.


toString

public String toString()
Returns a printable representation of this parameter

Overrides:
toString in class Object

contains

public boolean contains(CLValue child)
Tests the the value is already a part of this argument or its children. Used to prevent cycles from occurring in the representation.

Returns:
true if and only if this parameter contains a value at any depth (including 0) that matches the argument.

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.