|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mibble.MibValue | +--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 | |
MibValue |
createReference()
Creates a value reference to this value. |
boolean |
equals(java.lang.Object obj)
Checks if this object equals another object. |
ObjectIdentifierValue[] |
getAllChildren()
Returns an array of all child object identifier values. |
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 net.percederberg.mibble.MibValue |
getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol |
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 valuepublic ObjectIdentifierValue(ObjectIdentifierValue parent, java.lang.String name, int value)
parent
- the component parentname
- the component name, or nullvalue
- the component valuepublic ObjectIdentifierValue(ValueReference parent, java.lang.String name, int value)
parent
- the component parentname
- the component name, or nullvalue
- the component valueMethod Detail |
public MibValue initialize(MibLoaderLog log) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize
in class MibValue
log
- the MIB loader log
MibException
- if an error was encountered during the
initializationpublic MibValue createReference()
NOTE: This is an internal method that should only be called by the MIB loader.
createReference
in class MibValue
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
public int hashCode()
hashCode
in class java.lang.Object
public ObjectIdentifierValue getParent()
public java.lang.String getName()
getName
in class MibValue
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 ObjectIdentifierValue[] getAllChildren()
public java.lang.Object toObject()
toObject
in class MibValue
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toDetailString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |