|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.percederberg.mibble.MibSymbol
net.percederberg.mibble.MibValueSymbol
public class MibValueSymbol
A MIB value symbol. This class holds information relevant to a MIB value assignment, i.e. a type and a value. Normally the value is an object identifier.
| Constructor Summary | |
|---|---|
MibValueSymbol(FileLocation location,
Mib mib,
java.lang.String name,
MibType type,
MibValue value)
Creates a new value symbol. |
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class net.percederberg.mibble.MibSymbol |
|---|
getComment, getLocation, getMib, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MibValueSymbol(FileLocation location,
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.
location - the symbol locationmib - the symbol MIB filename - the symbol nametype - the symbol typevalue - the symbol value| Method Detail |
|---|
public 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 log
MibException - 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 MibValueSymbol getParent()
ObjectIdentifierValuepublic int getChildCount()
ObjectIdentifierValuepublic MibValueSymbol getChild(int index)
index - the child position, 0 <= index < count
ObjectIdentifierValuepublic MibValueSymbol[] getChildren()
ObjectIdentifierValuepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||