public abstract class MibValue
extends java.lang.Object
implements java.lang.Comparable
| Modifier | Constructor and Description |
|---|---|
protected |
MibValue(java.lang.String name)
Creates a new MIB value instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear()
Clears and prepares this value for garbage collection.
|
MibValue |
createReference()
Creates a value reference to this value.
|
java.lang.String |
getName()
Returns the value name.
|
MibValueSymbol |
getReferenceSymbol()
Returns the value reference symbol.
|
abstract MibValue |
initialize(MibLoaderLog log,
MibType type)
Initializes the MIB value.
|
boolean |
isReferenceTo(java.lang.String name)
Checks if this value referenced the specified value symbol.
|
boolean |
isReferenceTo(java.lang.String module,
java.lang.String name)
Checks if this value referenced the specified value symbol.
|
void |
setReferenceSymbol(MibValueSymbol symbol)
Sets the value reference symbol.
|
abstract java.lang.Object |
toObject()
Returns a Java object representation of this value.
|
protected MibValue(java.lang.String name)
name - the value namepublic abstract MibValue initialize(MibLoaderLog log, MibType type) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
log - the MIB loader logtype - the value typeMibException - if an error was encountered during the
initializationpublic MibValue createReference() throws java.lang.UnsupportedOperationException
NOTE: This is an internal method that should only be called by the MIB loader.
java.lang.UnsupportedOperationException - if a value reference
couldn't be createdprotected void clear()
NOTE: This is an internal method that should only be called by the MIB loader.
public boolean isReferenceTo(java.lang.String name)
name - the value symbol namepublic boolean isReferenceTo(java.lang.String module,
java.lang.String name)
module - the value symbol module (MIB) namename - the value symbol namepublic java.lang.String getName()
public MibValueSymbol getReferenceSymbol()
public void setReferenceSymbol(MibValueSymbol symbol)
NOTE: This is an internal method that should only be called by the MIB loader.
symbol - the referenced value symbolpublic abstract java.lang.Object toObject()