|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.mibble.MibValue
The base MIB value class. There are only a few MIB value classes, each corresponding to a primitive ASN.1 type. To extract the basic Java representation of the MIB value, the toObject() method should be used.
| Constructor Summary | |
protected |
MibValue(java.lang.String name)
Creates a new MIB value instance. |
| Method Summary | |
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)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected MibValue(java.lang.String name)
name - the value name| Method Detail |
public abstract MibValue initialize(MibLoaderLog log)
throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
log - the MIB loader log
MibException - if an error was encountered during the
initialization
public 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 createdpublic boolean isReferenceTo(java.lang.String name)
name - the value symbol name
public boolean isReferenceTo(java.lang.String module,
java.lang.String name)
module - the value symbol module (MIB) namename - the value symbol name
public 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()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||