|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.destinationPaths.Target
public class Target
Class Target.
| Constructor Summary | |
|---|---|
Target()
|
|
| Method Summary | |
|---|---|
void |
addCommand(int index,
String vCommand)
|
void |
addCommand(String vCommand)
|
Enumeration<String> |
enumerateCommand()
Method enumerateCommand. |
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'. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Target()
| Method Detail |
|---|
public void addCommand(String vCommand)
throws IndexOutOfBoundsException
vCommand -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 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 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 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 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 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 | ||||||||