net.percederberg.mib.type
Class SnmpObjectIdentityType
java.lang.Object
|
+--net.percederberg.mib.type.Type
|
+--net.percederberg.mib.type.SnmpObjectIdentityType
- public class SnmpObjectIdentityType
- extends Type
A class for handling type information for the SNMP object identity
macro type.
- Version:
- 1.1
- Author:
- Per Cederberg, per@percederberg.net
Constructor Summary |
SnmpObjectIdentityType(int status,
java.lang.String desc)
Creates a new SNMP object identity type with the specified
values. |
SnmpObjectIdentityType(int status,
java.lang.String desc,
java.lang.String ref)
Creates a new SNMP object identity type with the specified
values. |
Method Summary |
boolean |
equals(java.lang.Object obj)
Checks if this type equals another. |
java.lang.String |
toString()
Returns a description of this type. |
void |
transferType(TypeConverter converter)
Transfers the type information from this type to a type
converter object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SnmpObjectIdentityType
public SnmpObjectIdentityType(int status,
java.lang.String desc)
- Creates a new SNMP object identity type with the specified
values. The reference text will be set to null.
- Parameters:
status
- the status valuedesc
- the module description
SnmpObjectIdentityType
public SnmpObjectIdentityType(int status,
java.lang.String desc,
java.lang.String ref)
- Creates a new SNMP object identity type with the specified
values.
- Parameters:
status
- the status valuedesc
- the module descriptionref
- the reference text
equals
public boolean equals(java.lang.Object obj)
- Checks if this type equals another.
- Overrides:
equals
in class Type
- Parameters:
obj
- an object- Returns:
- true if the types are equal, false otherwise
toString
public java.lang.String toString()
- Returns a description of this type.
- Overrides:
toString
in class Type
- Returns:
- a description of the type
transferType
public void transferType(TypeConverter converter)
- Transfers the type information from this type to a type
converter object. The calling conventions declared in the
TypeConverter class are followed.
- Overrides:
transferType
in class Type
- Parameters:
converter
- a type converter