Class Maskelement

  • All Implemented Interfaces:
    java.io.Serializable

    public class Maskelement
    extends java.lang.Object
    implements java.io.Serializable
    The mask element
    See Also:
    Serialized Form
    • Field Detail

      • TAG_SOURCE

        public static final java.lang.String TAG_SOURCE
        The event source xml tag
        See Also:
        Constant Field Values
      • TAG_NODEID

        public static final java.lang.String TAG_NODEID
        The event nodeid xml tag
        See Also:
        Constant Field Values
      • TAG_HOST

        public static final java.lang.String TAG_HOST
        The event host xml tag
        See Also:
        Constant Field Values
      • TAG_INTERFACE

        public static final java.lang.String TAG_INTERFACE
        The event interface xml tag
        See Also:
        Constant Field Values
      • TAG_SNMPHOST

        public static final java.lang.String TAG_SNMPHOST
        The event snmp host xml tag
        See Also:
        Constant Field Values
      • TAG_SERVICE

        public static final java.lang.String TAG_SERVICE
        The event service xml tag
        See Also:
        Constant Field Values
      • TAG_SNMP_EID

        public static final java.lang.String TAG_SNMP_EID
        The SNMP EID xml tag
        See Also:
        Constant Field Values
      • TAG_SNMP_SPECIFIC

        public static final java.lang.String TAG_SNMP_SPECIFIC
        The SNMP specific xml tag
        See Also:
        Constant Field Values
      • TAG_SNMP_GENERIC

        public static final java.lang.String TAG_SNMP_GENERIC
        The SNMP generic xml tag
        See Also:
        Constant Field Values
      • TAG_SNMP_COMMUNITY

        public static final java.lang.String TAG_SNMP_COMMUNITY
        The SNMP community xml tag
        See Also:
        Constant Field Values
    • Constructor Detail

      • Maskelement

        public Maskelement()
    • Method Detail

      • addMevalue

        public void addMevalue​(java.lang.String value)
      • getMename

        public java.lang.String getMename()

        The mask element name. Must be from the following subset:

        uei
        the OpenNMS Universal Event Identifier
        source
        source of the event; "trapd" for received SNMP traps; warning: these aren't standardized
        host
        host related to the event; for SNMP traps this is the IP source address of the host that sent the trap to OpenNMS
        snmphost
        SNMP host related to the event; for SNMPv1 traps this is IP address reported in the trap; for SNMPv2 traps and later this is the same as "host"
        nodeid
        the OpenNMS node identifier for the node related to this event
        interface
        interface related to the event; for SNMP traps this is the same as "snmphost"
        service
        Service name
        id
        enterprise ID in an SNMP trap
        specific
        specific value in an SNMP trap
        generic
        generic value in an SNMP trap
        community
        community string in an SNMP trap
      • getMevalues

        public java.util.List<java.lang.String> getMevalues()
      • removeMevalue

        public boolean removeMevalue​(java.lang.String value)
      • setMename

        public void setMename​(java.lang.String mename)
      • setMevalues

        public void setMevalues​(java.util.List<java.lang.String> values)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object