org.opennms.web.notification.bobject
Class Argument

java.lang.Object
  extended by org.opennms.web.notification.bobject.Argument

public class Argument
extends Object

This is a data class to store the argument information for a Command

Version:
1.1.1.1
Author:
Jason Johns , OpenNMS

Constructor Summary
Argument()
          Default constructor, initializes the members
 
Method Summary
 String getSubstitution()
          Returns the substitution switch
 String getSwitch()
          Returns the switch
 String getValue()
          Returns the value of the argument
 boolean isStreamed()
          Returns the boolean indicating if this argument should be sent to an input stream.
 void setStreamed(boolean aBool)
          Sets the boolean indicating if this argument should be sent to an input stream
 void setSubstitution(String aValue)
          Sets the substitution switch
 void setSwitch(String aValue)
          Sets the switch member
 void setValue(String aValue)
          Sets the value of the argument
 String toString()
          Returns a string representation of the argument, for purposes of debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Argument

public Argument()
Default constructor, initializes the members

Method Detail

setSwitch

public void setSwitch(String aValue)
Sets the switch member

Parameters:
aValue - the value of the switch

setSubstitution

public void setSubstitution(String aValue)
Sets the substitution switch

Parameters:
aValue - the value of the substitution

setValue

public void setValue(String aValue)
Sets the value of the argument

Parameters:
aValue - the value of the argument

getSwitch

public String getSwitch()
Returns the switch

Returns:
the switch string

getSubstitution

public String getSubstitution()
Returns the substitution switch

Returns:
the substitution

getValue

public String getValue()
Returns the value of the argument

Returns:
the value of the argument

setStreamed

public void setStreamed(boolean aBool)
Sets the boolean indicating if this argument should be sent to an input stream

Parameters:
aBool - true if the argument should be sent to a input stream, false otherwise

isStreamed

public boolean isStreamed()
Returns the boolean indicating if this argument should be sent to an input stream.

Returns:
true if the argument should be sent to a input stream, false otherwise

toString

public String toString()
Returns a string representation of the argument, for purposes of debugging

Overrides:
toString in class Object
Returns:
a string representation


Copyright © 2009. All Rights Reserved.