net.percederberg.mib.type
Class ObjectIdentifierType

java.lang.Object
  |
  +--net.percederberg.mib.type.Type
        |
        +--net.percederberg.mib.type.ObjectIdentifierType

public class ObjectIdentifierType
extends Type

A class for handling object id type information.

Version:
1.0
Author:
Per Cederberg, per@percederberg.net

Constructor Summary
protected ObjectIdentifierType()
          Creates a new object identifier type.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if this type is equals to some other object.
static ObjectIdentifierType getInstance()
          Returns the existing instance of the ObjectIdentifierType or creates a new one if none existed.
 java.lang.String toString()
          Returns a string 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
 

Constructor Detail

ObjectIdentifierType

protected ObjectIdentifierType()
Creates a new object identifier type. Should only be called from the getInstance method.
See Also:
getInstance()
Method Detail

getInstance

public static ObjectIdentifierType getInstance()
Returns the existing instance of the ObjectIdentifierType or creates a new one if none existed.
Returns:
the one and only instance of this type

equals

public boolean equals(java.lang.Object obj)
Checks if this type is equals to some other object. It will only be reported equal to other object identifier types.
Overrides:
equals in class Type
Parameters:
obj - an object
Returns:
true if the objects are equal, or false otherwise

toString

public java.lang.String toString()
Returns a string description of this type.
Overrides:
toString in class Type
Returns:
a string 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