Class MIBTree.Node
java.lang.Object
org.snmp4j.agent.io.prop.MIBTree.Node
- Enclosing class:
MIBTree
A node in the OID tree. Non-terminal nodes model the OID hierarchy; terminal nodes
(
isManagedObject()) carry either a scalar value or a table.- Since:
- 3.9.2
- Version:
- 3.9.2
- Author:
- SNMP4J.org
-
Method Details
-
getSubID
public int getSubID()- Returns:
- the last sub-identifier of this node relative to its parent, or
-1for the root.
-
getOID
public org.snmp4j.smi.OID getOID()- Returns:
- the full OID up to and including this node, or
nullfor the root.
-
getChildren
- Returns:
- the child nodes, ordered by sub-identifier.
-
hasChildren
public boolean hasChildren()- Returns:
trueif this node has at least one child.
-
isManagedObject
public boolean isManagedObject()- Returns:
trueif a managed object is configured at this node.
-
isScalar
public boolean isScalar()- Returns:
trueif this node is a scalar managed object.
-
isTable
public boolean isTable()- Returns:
trueif this node is a table (row entry) managed object.
-
getScalarValue
public org.snmp4j.smi.Variable getScalarValue()- Returns:
- the scalar value (may be
null); only meaningful whenisScalar().
-
getTable
- Returns:
- the table (may be
null); only present whenisTable().
-