|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.notificationCommands.Command
public class Command
Class Command.
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
void |
addArgument(Argument vArgument)
|
void |
addArgument(int index,
Argument vArgument)
|
Enumeration<Argument> |
enumerateArgument()
Method enumerateArgument. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Argument[] |
getArgument()
Method getArgument.Returns the contents of the collection in an Array. |
Argument |
getArgument(int index)
Method getArgument. |
List<Argument> |
getArgumentCollection()
Method getArgumentCollection.Returns a reference to '_argumentList'. |
int |
getArgumentCount()
Method getArgumentCount. |
String |
getBinary()
Returns the value of field 'binary'. |
String |
getComment()
Returns the value of field 'comment'. |
String |
getExecute()
Returns the value of field 'execute'. |
String |
getName()
Returns the value of field 'name'. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Argument> |
iterateArgument()
Method iterateArgument. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllArgument()
|
boolean |
removeArgument(Argument vArgument)
Method removeArgument. |
Argument |
removeArgumentAt(int index)
Method removeArgumentAt. |
void |
setArgument(Argument[] vArgumentArray)
|
void |
setArgument(int index,
Argument vArgument)
|
void |
setArgument(List<Argument> vArgumentList)
Sets the value of '_argumentList' by copying the given Vector. |
void |
setArgumentCollection(List<Argument> argumentList)
Deprecated. |
void |
setBinary(String binary)
Sets the value of field 'binary'. |
void |
setComment(String comment)
Sets the value of field 'comment'. |
void |
setExecute(String execute)
Sets the value of field 'execute'. |
void |
setName(String name)
Sets the value of field 'name'. |
static Command |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public void addArgument(Argument vArgument)
throws IndexOutOfBoundsException
vArgument -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addArgument(int index,
Argument vArgument)
throws IndexOutOfBoundsException
index - vArgument -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Argument> enumerateArgument()
public boolean equals(Object obj)
equals in class Objectobj -
public Argument getArgument(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Argument[] getArgument()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Argument> getArgumentCollection()
public int getArgumentCount()
public String getBinary()
public String getComment()
public String getExecute()
public String getName()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<Argument> iterateArgument()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllArgument()
public boolean removeArgument(Argument vArgument)
vArgument -
public Argument removeArgumentAt(int index)
index -
public void setArgument(int index,
Argument vArgument)
throws IndexOutOfBoundsException
index - vArgument -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setArgument(Argument[] vArgumentArray)
vArgumentArray - public void setArgument(List<Argument> vArgumentList)
vArgumentList - the Vector to copy.public void setArgumentCollection(List<Argument> argumentList)
argumentList - the Vector to set.public void setBinary(String binary)
binary - the value of field 'binary'.public void setComment(String comment)
comment - the value of field 'comment'.public void setExecute(String execute)
execute - the value of field 'execute'.public void setName(String name)
name - the value of field 'name'.
public static Command unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||