public class ValueReference extends MibValue
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 and Description |
---|
ValueReference(MibFileRef fileRef,
MibContext context,
java.lang.String name)
Creates a new value reference.
|
Modifier and Type | Method and Description |
---|---|
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.
|
MibFileRef |
getFileRef()
Returns the reference MIB file 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.
|
clear, createReference, getName, getReferenceSymbol, isReferenceTo, isReferenceTo, setReferenceSymbol
public ValueReference(MibFileRef fileRef, MibContext context, java.lang.String name)
fileRef
- the reference MIB file locationcontext
- the reference contextname
- the reference namepublic 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 MibValue
log
- the MIB loader logtype
- the value typeMibException
- if an error was encountered during the
initializationpublic MibFileRef getFileRef()
public MibSymbol getSymbol()
public int compareTo(java.lang.Object obj)
obj
- the object to compare topublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare withpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object toObject()
public java.lang.String toString()
toString
in class java.lang.Object