Package org.opennms.netmgt.xml.eventconf
Class Mask
- java.lang.Object
-
- org.opennms.netmgt.xml.eventconf.Mask
-
- All Implemented Interfaces:
java.io.Serializable
public class Mask extends java.lang.Object implements java.io.Serializable
The Mask for event configuration: The mask contains one or more 'maskelements' which uniquely identify an event.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Mask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMaskelement(Maskelement element)
void
addVarbind(Varbind varbind)
EventMatcher
constructMatcher()
boolean
equals(java.lang.Object obj)
Maskelement
getMaskElement(java.lang.String mename)
java.util.List<Maskelement>
getMaskelements()
java.util.List<java.lang.String>
getMaskElementValues(java.lang.String mename)
java.util.List<Varbind>
getVarbinds()
int
hashCode()
boolean
removeMaskelement(Maskelement element)
boolean
removeVarbind(Varbind varbind)
void
setMaskelements(java.util.List<Maskelement> elements)
void
setVarbinds(java.util.List<Varbind> varbinds)
java.lang.String
toString()
-
-
-
Method Detail
-
getMaskelements
public java.util.List<Maskelement> getMaskelements()
-
setMaskelements
public void setMaskelements(java.util.List<Maskelement> elements)
-
addMaskelement
public void addMaskelement(Maskelement element)
-
removeMaskelement
public boolean removeMaskelement(Maskelement element)
-
getVarbinds
public java.util.List<Varbind> getVarbinds()
-
setVarbinds
public void setVarbinds(java.util.List<Varbind> varbinds)
-
addVarbind
public void addVarbind(Varbind varbind)
-
removeVarbind
public boolean removeVarbind(Varbind varbind)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
constructMatcher
public EventMatcher constructMatcher()
-
getMaskElement
public Maskelement getMaskElement(java.lang.String mename)
-
getMaskElementValues
public java.util.List<java.lang.String> getMaskElementValues(java.lang.String mename)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-