Class MibObj

  • All Implemented Interfaces:
    java.io.Serializable

    public class MibObj
    extends java.lang.Object
    implements java.io.Serializable
    The Class MibObj.
    Author:
    Alejandro Galue
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MibObj()  
      MibObj​(SnmpObjId oid, java.lang.String type, java.lang.String alias)  
      MibObj​(SnmpObjId oid, java.lang.String type, java.lang.String alias, java.lang.String replace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAlias()  
      SnmpObjId getOid()
      Gets the SNMP object ID.
      java.util.Optional<java.lang.String> getReplace()  
      java.lang.String getType()  
      int hashCode()  
      void setAlias​(java.lang.String alias)  
      void setOid​(SnmpObjId oid)
      Sets the SNMP object ID.
      void setReplace​(java.lang.String replace)
      Must be a valid attribute of org.opennms.netmgt.model.OnmsHwEntity.
      void setReplace​(java.util.Optional<java.lang.String> replace)  
      void setType​(java.lang.String type)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MibObj

        public MibObj()
      • MibObj

        public MibObj​(SnmpObjId oid,
                      java.lang.String type,
                      java.lang.String alias)
      • MibObj

        public MibObj​(SnmpObjId oid,
                      java.lang.String type,
                      java.lang.String alias,
                      java.lang.String replace)
    • Method Detail

      • getOid

        public SnmpObjId getOid()
        Gets the SNMP object ID.
        Returns:
        the OID
      • setOid

        public void setOid​(SnmpObjId oid)
        Sets the SNMP object ID.
        Parameters:
        m_oid - the SNMP object ID
      • getType

        public java.lang.String getType()
      • setType

        public void setType​(java.lang.String type)
      • getAlias

        public java.lang.String getAlias()
      • setAlias

        public void setAlias​(java.lang.String alias)
      • getReplace

        public java.util.Optional<java.lang.String> getReplace()
      • setReplace

        public void setReplace​(java.util.Optional<java.lang.String> replace)
      • setReplace

        public void setReplace​(java.lang.String replace)

        Must be a valid attribute of org.opennms.netmgt.model.OnmsHwEntity. Otherwise, an IllegalArgumentException will be thrown.

      • equals

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

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

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