|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.vacuumd.Triggers
public class Triggers
A collection of triggers
| Constructor Summary | |
|---|---|
Triggers()
|
|
| Method Summary | |
|---|---|
void |
addTrigger(int index,
Trigger vTrigger)
|
void |
addTrigger(Trigger vTrigger)
|
Enumeration<Trigger> |
enumerateTrigger()
Method enumerateTrigger. |
Trigger[] |
getTrigger()
Method getTrigger.Returns the contents of the collection in an Array. |
Trigger |
getTrigger(int index)
Method getTrigger. |
List<Trigger> |
getTriggerCollection()
Method getTriggerCollection.Returns a reference to '_triggerList'. |
int |
getTriggerCount()
Method getTriggerCount. |
boolean |
isValid()
Method isValid. |
Iterator<Trigger> |
iterateTrigger()
Method iterateTrigger. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllTrigger()
|
boolean |
removeTrigger(Trigger vTrigger)
Method removeTrigger. |
Trigger |
removeTriggerAt(int index)
Method removeTriggerAt. |
void |
setTrigger(int index,
Trigger vTrigger)
|
void |
setTrigger(List<Trigger> vTriggerList)
Sets the value of '_triggerList' by copying the given Vector. |
void |
setTrigger(Trigger[] vTriggerArray)
|
void |
setTriggerCollection(List<Trigger> triggerList)
Deprecated. |
static Triggers |
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 Triggers()
| Method Detail |
|---|
public void addTrigger(Trigger vTrigger)
throws IndexOutOfBoundsException
vTrigger -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addTrigger(int index,
Trigger vTrigger)
throws IndexOutOfBoundsException
index - vTrigger -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Trigger> enumerateTrigger()
public Trigger getTrigger(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Trigger[] getTrigger()
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<Trigger> getTriggerCollection()
public int getTriggerCount()
public boolean isValid()
public Iterator<Trigger> iterateTrigger()
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 removeAllTrigger()
public boolean removeTrigger(Trigger vTrigger)
vTrigger -
public Trigger removeTriggerAt(int index)
index -
public void setTrigger(int index,
Trigger vTrigger)
throws IndexOutOfBoundsException
index - vTrigger -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setTrigger(Trigger[] vTriggerArray)
vTriggerArray - public void setTrigger(List<Trigger> vTriggerList)
vTriggerList - the Vector to copy.public void setTriggerCollection(List<Trigger> triggerList)
triggerList - the Vector to set.
public static Triggers 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 | ||||||||