public class Target extends Object implements Serializable
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(int index,
String vCommand) |
void |
addCommand(String vCommand) |
Enumeration<String> |
enumerateCommand()
Method enumerateCommand.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getAutoNotify()
Returns the value of field 'autoNotify'.
|
String[] |
getCommand()
Method getCommand.Returns the contents of the collection in
an Array.
|
String |
getCommand(int index)
Method getCommand.
|
List<String> |
getCommandCollection()
Method getCommandCollection.Returns a reference to
'_commandList'.
|
int |
getCommandCount()
Method getCommandCount.
|
String |
getInterval()
Returns the value of field 'interval'.
|
String |
getName()
Returns the value of field 'name'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<String> |
iterateCommand()
Method iterateCommand.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllCommand() |
boolean |
removeCommand(String vCommand)
Method removeCommand.
|
String |
removeCommandAt(int index)
Method removeCommandAt.
|
void |
setAutoNotify(String autoNotify)
Sets the value of field 'autoNotify'.
|
void |
setCommand(int index,
String vCommand) |
void |
setCommand(List<String> vCommandList)
Sets the value of '_commandList' by copying the given
Vector.
|
void |
setCommand(String[] vCommandArray) |
void |
setCommandCollection(List<String> commandList)
Deprecated.
|
void |
setInterval(String interval)
Sets the value of field 'interval'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
static Target |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addCommand(String vCommand) throws IndexOutOfBoundsException
vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCommand(int index, String vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateCommand()
public boolean equals(Object obj)
public String getAutoNotify()
public String getCommand(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getCommand()
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<String> getCommandCollection()
public int getCommandCount()
public String getInterval()
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<String> iterateCommand()
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 removeAllCommand()
public boolean removeCommand(String vCommand)
vCommand
- public String removeCommandAt(int index)
index
- public void setAutoNotify(String autoNotify)
autoNotify
- the value of field 'autoNotify'.public void setCommand(int index, String vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCommand(String[] vCommandArray)
vCommandArray
- public void setCommand(List<String> vCommandList)
vCommandList
- the Vector to copy.public void setCommandCollection(List<String> commandList)
commandList
- the Vector to set.public void setInterval(String interval)
interval
- the value of field 'interval'.public void setName(String name)
name
- the value of field 'name'.public static Target 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.