|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.xml.eventconf.Mask
public class Mask
The Mask for event configuration: The mask contains one or more 'maskelements' which uniquely identify an event. XXX need to add information about varbind
| Constructor Summary | |
|---|---|
Mask()
|
|
| Method Summary | |
|---|---|
void |
addMaskelement(int index,
Maskelement vMaskelement)
|
void |
addMaskelement(Maskelement vMaskelement)
|
void |
addVarbind(int index,
Varbind vVarbind)
|
void |
addVarbind(Varbind vVarbind)
|
Enumeration<Maskelement> |
enumerateMaskelement()
Method enumerateMaskelement. |
Enumeration<Varbind> |
enumerateVarbind()
Method enumerateVarbind. |
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. |
Varbind[] |
getVarbind()
Method getVarbind.Returns the contents of the collection in an Array. |
Varbind |
getVarbind(int index)
Method getVarbind. |
List<Varbind> |
getVarbindCollection()
Method getVarbindCollection.Returns a reference to '_varbindList'. |
int |
getVarbindCount()
Method getVarbindCount. |
boolean |
isValid()
Method isValid. |
Iterator<Maskelement> |
iterateMaskelement()
Method iterateMaskelement. |
Iterator<Varbind> |
iterateVarbind()
Method iterateVarbind. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllMaskelement()
|
void |
removeAllVarbind()
|
boolean |
removeMaskelement(Maskelement vMaskelement)
Method removeMaskelement. |
Maskelement |
removeMaskelementAt(int index)
Method removeMaskelementAt. |
boolean |
removeVarbind(Varbind vVarbind)
Method removeVarbind. |
Varbind |
removeVarbindAt(int index)
Method removeVarbindAt. |
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. |
void |
setVarbind(int index,
Varbind vVarbind)
|
void |
setVarbind(List<Varbind> vVarbindList)
Sets the value of '_varbindList' by copying the given Vector. |
void |
setVarbind(Varbind[] vVarbindArray)
|
void |
setVarbindCollection(List<Varbind> varbindList)
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 collection
public void addVarbind(Varbind vVarbind)
throws IndexOutOfBoundsException
vVarbind -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addVarbind(int index,
Varbind vVarbind)
throws IndexOutOfBoundsException
index - vVarbind -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Maskelement> enumerateMaskelement()
public Enumeration<Varbind> enumerateVarbind()
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 Varbind getVarbind(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Varbind[] getVarbind()
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<Varbind> getVarbindCollection()
public int getVarbindCount()
public boolean isValid()
public Iterator<Maskelement> iterateMaskelement()
public Iterator<Varbind> iterateVarbind()
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 void removeAllVarbind()
public boolean removeMaskelement(Maskelement vMaskelement)
vMaskelement -
public Maskelement removeMaskelementAt(int index)
index -
public boolean removeVarbind(Varbind vVarbind)
vVarbind -
public Varbind removeVarbindAt(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 void setVarbind(int index,
Varbind vVarbind)
throws IndexOutOfBoundsException
index - vVarbind -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setVarbind(Varbind[] vVarbindArray)
vVarbindArray - public void setVarbind(List<Varbind> vVarbindList)
vVarbindList - the Vector to copy.public void setVarbindCollection(List<Varbind> varbindList)
varbindList - 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 | ||||||||