public class MibValueSymbol extends MibSymbol
| Constructor and Description |
|---|
MibValueSymbol(MibFileRef fileRef,
Mib mib,
java.lang.String name,
MibType type,
MibValue value)
Creates a new value symbol.
|
| Modifier and Type | Method and Description |
|---|---|
MibValueSymbol |
getChild(int index)
Returns a specific child symbol in the OID tree.
|
int |
getChildCount()
Returns the number of child symbols in the OID tree.
|
MibValueSymbol[] |
getChildren()
Returns all child symbols in the OID tree.
|
ObjectIdentifierValue |
getOid()
Returns the symbol object identifier value (if set).
|
MibValueSymbol |
getParent()
Returns the parent symbol in the OID tree.
|
MibType |
getType()
Returns the symbol type.
|
MibValue |
getValue()
Returns the symbol value.
|
void |
initialize(MibLoaderLog log)
Initializes the MIB symbol.
|
boolean |
isScalar()
Checks if this symbol corresponds to a scalar.
|
boolean |
isTable()
Checks if this symbol corresponds to a table.
|
boolean |
isTableColumn()
Checks if this symbol corresponds to a table column.
|
boolean |
isTableRow()
Checks if this symbol corresponds to a table row (or entry).
|
java.lang.String |
toString()
Returns a string representation of this object.
|
getComment, getFileRef, getLocation, getMib, getName, getTextpublic MibValueSymbol(MibFileRef fileRef, Mib mib, java.lang.String name, MibType type, MibValue value)
NOTE: This is an internal constructor that should only be called by the MIB loader.
fileRef - the MIB file referencemib - the symbol MIB filename - the symbol nametype - the symbol typevalue - the symbol valuepublic void initialize(MibLoaderLog log) throws MibException
NOTE: This is an internal method that should only be called by the MIB loader.
initialize in class MibSymbollog - the MIB loader logMibException - if an error was encountered during the
initializationpublic boolean isScalar()
isTable(),
isTableRow(),
isTableColumn(),
SnmpObjectTypepublic boolean isTable()
isScalar(),
isTableRow(),
isTableColumn(),
SnmpObjectTypepublic boolean isTableRow()
isScalar(),
isTable(),
isTableColumn(),
SnmpObjectTypepublic boolean isTableColumn()
isScalar(),
isTable(),
isTableRow(),
SnmpObjectTypepublic MibType getType()
public MibValue getValue()
public ObjectIdentifierValue getOid()
public MibValueSymbol getParent()
ObjectIdentifierValuepublic int getChildCount()
ObjectIdentifierValuepublic MibValueSymbol getChild(int index)
index - the child position, starting from 0ObjectIdentifierValuepublic MibValueSymbol[] getChildren()
ObjectIdentifierValuepublic java.lang.String toString()
toString in class java.lang.Object