Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.remotebuild
Class CLCommand

java.lang.Object
  extended by com.ibm.etools.iseries.remotebuild.CLValue
      extended by com.ibm.etools.iseries.remotebuild.CLCommand

public class CLCommand
extends CLValue

This class implements a representation of a CL Command. It allows the command to be manipulated and produces a standard CL representation of the command on an output stream.

This is a subclass of CLValue since commands are sometimes parameter values of other commands.


Field Summary
static String Copyright
           
 
Constructor Summary
CLCommand(String name)
          Build a new CLCommand with a particular name.
 
Method Summary
 CLCommand add(CLParameter parameter)
          Adds a parameter to the command.
 CLCommand add(String keyword, CLValue val1)
          Adds a parameter with a single value to the command.
protected  boolean contains(CLValue child)
          Returns true if and only if this command contains a parameter value at any depth that matches the argument.
 String getName()
          Returns the name of this command.
 String toString()
          Returns a String that represents the command.
 
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

CLCommand

public CLCommand(String name)
Build a new CLCommand with a particular name. When the command is created it has no parameters.

Method Detail

add

public CLCommand add(CLParameter parameter)
Adds a parameter to the command. A parameter will have a name and a value.

Returns:
CLCommand the receiver is returned to facilitate chaining of operations.

add

public CLCommand add(String keyword,
                     CLValue val1)
Adds a parameter with a single value to the command. This is a convenience method that avoids the explicit creation of a CLParameter.

Returns:
CLCommand the receiver is returned to facilitate chaining of operations.
See Also:
CLParameter

getName

public String getName()
Returns the name of this command.


toString

public String toString()
Returns a String that represents the command.

Specified by:
toString in class CLValue

contains

protected boolean contains(CLValue child)
Returns true if and only if this command contains a parameter value at any depth that matches the argument.

Overrides:
contains 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.