com.wrq.vhi.script.api.command
Class WriteVariableToAttribute

java.lang.Object
  extended by com.wrq.vhi.script.api.command.Command
      extended by com.wrq.vhi.script.api.command.WriteVariableToAttribute

public class WriteVariableToAttribute
extends Command

A class that represents a VHI WriteVariableToAttribute command.

See Also:
CommandList, HostSession.executeCommandList(com.wrq.vhi.script.api.command.CommandList), HostSession.writeVariableToAttribute(java.lang.String, java.lang.String)

Constructor Summary
WriteVariableToAttribute(java.lang.String attribute, java.lang.String variable)
          Constructs a new WriteVariableToAttribute command.
 
Method Summary
 java.lang.String getAttribute()
          Gets the attribute name.
 java.lang.String getName()
          Gets the command name.
 java.lang.String getVariable()
          Gets the variable name.
 
Methods inherited from class com.wrq.vhi.script.api.command.Command
isValidEchoType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteVariableToAttribute

public WriteVariableToAttribute(java.lang.String attribute,
                                java.lang.String variable)
Constructs a new WriteVariableToAttribute command.

Parameters:
attribute - name of attribute to be written to
variable - name of variable containing value to be written
Method Detail

getAttribute

public java.lang.String getAttribute()
Gets the attribute name.

Returns:
name of attribute to be written to

getVariable

public java.lang.String getVariable()
Gets the variable name.

Returns:
name of variable containing value to be written

getName

public java.lang.String getName()
Gets the command name.

Specified by:
getName in class Command
Returns:
the command name