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, getText
public 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 MibSymbol
log
- the MIB loader logMibException
- if an error was encountered during the
initializationpublic boolean isScalar()
isTable()
,
isTableRow()
,
isTableColumn()
,
SnmpObjectType
public boolean isTable()
isScalar()
,
isTableRow()
,
isTableColumn()
,
SnmpObjectType
public boolean isTableRow()
isScalar()
,
isTable()
,
isTableColumn()
,
SnmpObjectType
public boolean isTableColumn()
isScalar()
,
isTable()
,
isTableRow()
,
SnmpObjectType
public MibType getType()
public MibValue getValue()
public ObjectIdentifierValue getOid()
public MibValueSymbol getParent()
ObjectIdentifierValue
public int getChildCount()
ObjectIdentifierValue
public MibValueSymbol getChild(int index)
index
- the child position, starting from 0ObjectIdentifierValue
public MibValueSymbol[] getChildren()
ObjectIdentifierValue
public java.lang.String toString()
toString
in class java.lang.Object