|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.mibble.value.ObjectIdentifierValue
An object identifier value. This class stores the component identifier values in a tree hierarchy.
| Constructor Summary | |
ObjectIdentifierValue(ObjectIdentifierValue parent,
java.lang.String name,
int value)
Creates a new object identifier value. |
|
ObjectIdentifierValue(java.lang.String name,
int value)
Creates a new root object identifier value. |
|
ObjectIdentifierValue(ValueReference parent,
java.lang.String name,
int value)
Creates a new object identifier value. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks if this object equals another object. |
ObjectIdentifierValue |
getChild(int index)
Returns a child object identifier value. |
int |
getChildCount()
Returns the number of child object identifier values. |
java.lang.String |
getName()
Returns this object identifier component name. |
ObjectIdentifierValue |
getParent()
Returns the parent object identifier value. |
MibValueSymbol |
getSymbol()
Returns the symbol connected to this object identifier. |
int |
getValue()
Returns this object identifier component value. |
int |
hashCode()
Returns a hash code for this object. |
MibValue |
initialize(MibLoaderLog log)
Initializes the MIB value. |
void |
setSymbol(MibValueSymbol symbol)
Sets the symbol connected to this object identifier. |
java.lang.String |
toDetailString()
Returns a detailed string representation of this value. |
java.lang.Object |
toObject()
Returns a string representation of this value. |
java.lang.String |
toString()
Returns a string representation of this value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ObjectIdentifierValue(java.lang.String name,
int value)
name - the component name, or nullvalue - the component value
public ObjectIdentifierValue(ObjectIdentifierValue parent,
java.lang.String name,
int value)
parent - the component parentname - the component name, or nullvalue - the component value
public ObjectIdentifierValue(ValueReference parent,
java.lang.String name,
int value)
parent - the component parentname - the component name, or nullvalue - the component value| Method Detail |
public MibValue initialize(MibLoaderLog log)
throws MibException
initialize in interface MibValuelog - the MIB loader log
MibException - if an error was encountered during the
initializationpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with
public int hashCode()
hashCode in class java.lang.Objectpublic ObjectIdentifierValue getParent()
public java.lang.String getName()
public int getValue()
public MibValueSymbol getSymbol()
public void setSymbol(MibValueSymbol symbol)
symbol - the value symbolpublic int getChildCount()
public ObjectIdentifierValue getChild(int index)
index - the child position, 0 <= index < count
public java.lang.Object toObject()
toObject in interface MibValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDetailString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||