|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.xml.event.Parms
public class Parms
The varbinds from the trap
| Constructor Summary | |
|---|---|
Parms()
|
|
| Method Summary | |
|---|---|
void |
addParm(int index,
Parm vParm)
|
void |
addParm(Parm vParm)
|
Enumeration<Parm> |
enumerateParm()
Method enumerateParm. |
Parm[] |
getParm()
Method getParm.Returns the contents of the collection in an Array. |
Parm |
getParm(int index)
Method getParm. |
List<Parm> |
getParmCollection()
Method getParmCollection.Returns a reference to '_parmList'. |
int |
getParmCount()
Method getParmCount. |
boolean |
isValid()
Method isValid. |
Iterator<Parm> |
iterateParm()
Method iterateParm. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllParm()
|
boolean |
removeParm(Parm vParm)
Method removeParm. |
Parm |
removeParmAt(int index)
Method removeParmAt. |
void |
setParm(int index,
Parm vParm)
|
void |
setParm(List<Parm> vParmList)
Sets the value of '_parmList' by copying the given Vector. |
void |
setParm(Parm[] vParmArray)
|
void |
setParmCollection(List<Parm> parmList)
Deprecated. |
static Parms |
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 Parms()
| Method Detail |
|---|
public void addParm(Parm vParm)
throws IndexOutOfBoundsException
vParm -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addParm(int index,
Parm vParm)
throws IndexOutOfBoundsException
index - vParm -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Parm> enumerateParm()
public Parm getParm(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Parm[] getParm()
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<Parm> getParmCollection()
public int getParmCount()
public boolean isValid()
public Iterator<Parm> iterateParm()
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 removeAllParm()
public boolean removeParm(Parm vParm)
vParm -
public Parm removeParmAt(int index)
index -
public void setParm(int index,
Parm vParm)
throws IndexOutOfBoundsException
index - vParm -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setParm(Parm[] vParmArray)
vParmArray - public void setParm(List<Parm> vParmList)
vParmList - the Vector to copy.public void setParmCollection(List<Parm> parmList)
parmList - the Vector to set.
public static Parms 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 | ||||||||