public class Command extends Object implements Serializable
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
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 |
getContactType()
Returns the value of field 'contactType'.
|
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 |
setContactType(String contactType)
Sets the value of field 'contactType'.
|
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() |
public void addArgument(Argument vArgument) throws IndexOutOfBoundsException
vArgument
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic 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)
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 getContactType()
public String getExecute()
public String getName()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.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 setContactType(String contactType)
contactType
- the value of field 'contactType'.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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.