|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.percederberg.mibble.MibValue
net.percederberg.mibble.value.ValueReference
public class ValueReference
A reference to a value symbol.
NOTE: This class is used internally during the MIB parsing only. After loading a MIB file successfully, all value references will have been resolved to other MIB values. Do NOT use or reference this class.
| Constructor Summary | |
|---|---|
ValueReference(FileLocation location,
MibContext context,
java.lang.String name)
Creates a new value reference. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Checks if this object equals another object. |
FileLocation |
getLocation()
Returns the reference location. |
MibSymbol |
getSymbol()
Returns the referenced symbol. |
int |
hashCode()
Returns a hash code for this object. |
MibValue |
initialize(MibLoaderLog log,
MibType type)
Initializes the MIB value. |
java.lang.Object |
toObject()
Returns a Java object representation of this value. |
java.lang.String |
toString()
Returns a string representation of this value. |
| Methods inherited from class net.percederberg.mibble.MibValue |
|---|
clear, createReference, getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueReference(FileLocation location,
MibContext context,
java.lang.String name)
location - the reference locationcontext - the reference contextname - the reference name| Method Detail |
|---|
public MibValue initialize(MibLoaderLog log,
MibType type)
throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize in class MibValuelog - the MIB loader logtype - the value type
MibException - if an error was encountered during the
initializationpublic FileLocation getLocation()
public MibSymbol getSymbol()
public int compareTo(java.lang.Object obj)
obj - the object to compare to
public 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 java.lang.Object toObject()
toObject in class MibValuepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||