|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.notificationCommands.Command
Field Summary | |
private java.util.ArrayList |
_argumentList
|
private java.lang.String |
_binary
|
private java.lang.String |
_comment
|
private java.lang.String |
_execute
|
private java.lang.String |
_name
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Command()
|
Method Summary | |
void |
addArgument(Argument vArgument)
|
void |
addArgument(int index,
Argument vArgument)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearArgument()
|
java.util.Enumeration |
enumerateArgument()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Argument[] |
getArgument()
|
Argument |
getArgument(int index)
|
java.util.Collection |
getArgumentCollection()
|
int |
getArgumentCount()
|
java.lang.String |
getBinary()
Returns the value of field 'binary'. |
java.lang.String |
getComment()
Returns the value of field 'comment'. |
java.lang.String |
getExecute()
Returns the value of field 'execute'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removeArgument(Argument vArgument)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setArgument(Argument[] argumentArray)
|
void |
setArgument(int index,
Argument vArgument)
|
void |
setArgumentCollection(java.util.Collection vArgument)
|
void |
setBinary(java.lang.String binary)
Sets the value of field 'binary'. |
void |
setComment(java.lang.String comment)
Sets the value of field 'comment'. |
void |
setExecute(java.lang.String execute)
Sets the value of field 'execute'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
static Command |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String _binary
private java.lang.String _name
private java.lang.String _execute
private java.lang.String _comment
private java.util.ArrayList _argumentList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Command()
Method Detail |
public void addArgument(Argument vArgument) throws java.lang.IndexOutOfBoundsException
vArgument
-
java.lang.IndexOutOfBoundsException
public void addArgument(int index, Argument vArgument) throws java.lang.IndexOutOfBoundsException
index
- vArgument
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearArgument()
public java.util.Enumeration enumerateArgument()
public boolean equals(java.lang.Object obj)
obj
- public Argument getArgument(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Argument[] getArgument()
public java.util.Collection getArgumentCollection()
public int getArgumentCount()
public java.lang.String getBinary()
public java.lang.String getComment()
public java.lang.String getExecute()
public java.lang.String getName()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeArgument(Argument vArgument)
vArgument
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setArgument(int index, Argument vArgument) throws java.lang.IndexOutOfBoundsException
index
- vArgument
-
java.lang.IndexOutOfBoundsException
public void setArgument(Argument[] argumentArray)
argumentArray
- public void setArgumentCollection(java.util.Collection vArgument)
vArgument
- public void setBinary(java.lang.String binary)
binary
- the value of field 'binary'.public void setComment(java.lang.String comment)
comment
- the value of field 'comment'.public void setExecute(java.lang.String execute)
execute
- the value of field 'execute'.public void setName(java.lang.String name)
name
- the value of field 'name'.public static Command unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |