Package org.opennms.netmgt.model.notifd
Class Argument
- java.lang.Object
-
- org.opennms.netmgt.model.notifd.Argument
-
public class Argument extends java.lang.Object
This is a data class to store the argument information for a Command- Author:
- Jason Johns
-
-
Constructor Summary
Constructors Constructor Description Argument(java.lang.String aSwitch, java.lang.String sub, java.lang.String value, boolean streamed)
Default constructor, initializes the members
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSubstitution()
Returns the substitution switchjava.lang.String
getSwitch()
Returns the switchjava.lang.String
getValue()
Returns the value of the argumentboolean
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 streamvoid
setSubstitution(java.lang.String aValue)
Sets the substitution switchvoid
setSwitch(java.lang.String aValue)
Sets the switch membervoid
setValue(java.lang.String aValue)
Sets the value of the argumentjava.lang.String
toString()
Returns a string representation of the argument, for purposes of debugging
-
-
-
Method Detail
-
setSwitch
public void setSwitch(java.lang.String aValue)
Sets the switch member- Parameters:
aValue
- the value of the switch
-
setSubstitution
public void setSubstitution(java.lang.String aValue)
Sets the substitution switch- Parameters:
aValue
- the value of the substitution
-
setValue
public void setValue(java.lang.String aValue)
Sets the value of the argument- Parameters:
aValue
- the value of the argument
-
getSwitch
public java.lang.String getSwitch()
Returns the switch- Returns:
- String, the switch string
-
getSubstitution
public java.lang.String getSubstitution()
Returns the substitution switch- Returns:
- String, the substitution
-
getValue
public java.lang.String getValue()
Returns the value of the argument- Returns:
- String, 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 java.lang.String toString()
Returns a string representation of the argument, for purposes of debugging- Overrides:
toString
in classjava.lang.Object
- Returns:
- String, a string representation
-
-