|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.xml.event.Mask
public class Mask
The Mask for event configuration: The mask contains one or more 'maskelements' which uniquely identify an event. This can only include elements from the following subset: uei, source, host, snmphost, nodeid, interface, service, id(SNMP EID), specific, generic, community
| Constructor Summary | |
|---|---|
Mask()
|
|
| Method Summary | |
|---|---|
void |
addMaskelement(int index,
Maskelement vMaskelement)
|
void |
addMaskelement(Maskelement vMaskelement)
|
Enumeration<Maskelement> |
enumerateMaskelement()
Method enumerateMaskelement. |
Maskelement[] |
getMaskelement()
Method getMaskelement.Returns the contents of the collection in an Array. |
Maskelement |
getMaskelement(int index)
Method getMaskelement. |
List<Maskelement> |
getMaskelementCollection()
Method getMaskelementCollection.Returns a reference to '_maskelementList'. |
int |
getMaskelementCount()
Method getMaskelementCount. |
boolean |
isValid()
Method isValid. |
Iterator<Maskelement> |
iterateMaskelement()
Method iterateMaskelement. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllMaskelement()
|
boolean |
removeMaskelement(Maskelement vMaskelement)
Method removeMaskelement. |
Maskelement |
removeMaskelementAt(int index)
Method removeMaskelementAt. |
void |
setMaskelement(int index,
Maskelement vMaskelement)
|
void |
setMaskelement(List<Maskelement> vMaskelementList)
Sets the value of '_maskelementList' by copying the given Vector. |
void |
setMaskelement(Maskelement[] vMaskelementArray)
|
void |
setMaskelementCollection(List<Maskelement> maskelementList)
Deprecated. |
static Mask |
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 Mask()
| Method Detail |
|---|
public void addMaskelement(Maskelement vMaskelement)
throws IndexOutOfBoundsException
vMaskelement -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addMaskelement(int index,
Maskelement vMaskelement)
throws IndexOutOfBoundsException
index - vMaskelement -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Maskelement> enumerateMaskelement()
public Maskelement getMaskelement(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Maskelement[] getMaskelement()
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<Maskelement> getMaskelementCollection()
public int getMaskelementCount()
public boolean isValid()
public Iterator<Maskelement> iterateMaskelement()
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 removeAllMaskelement()
public boolean removeMaskelement(Maskelement vMaskelement)
vMaskelement -
public Maskelement removeMaskelementAt(int index)
index -
public void setMaskelement(int index,
Maskelement vMaskelement)
throws IndexOutOfBoundsException
index - vMaskelement -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setMaskelement(Maskelement[] vMaskelementArray)
vMaskelementArray - public void setMaskelement(List<Maskelement> vMaskelementList)
vMaskelementList - the Vector to copy.public void setMaskelementCollection(List<Maskelement> maskelementList)
maskelementList - the Vector to set.
public static Mask 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 | ||||||||