Class MIBTree.Node

java.lang.Object
org.snmp4j.agent.io.prop.MIBTree.Node
Enclosing class:
MIBTree

public static final class MIBTree.Node extends Object
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 -1 for the root.
    • getOID

      public org.snmp4j.smi.OID getOID()
      Returns:
      the full OID up to and including this node, or null for the root.
    • getChildren

      public Collection<MIBTree.Node> getChildren()
      Returns:
      the child nodes, ordered by sub-identifier.
    • hasChildren

      public boolean hasChildren()
      Returns:
      true if this node has at least one child.
    • isManagedObject

      public boolean isManagedObject()
      Returns:
      true if a managed object is configured at this node.
    • isScalar

      public boolean isScalar()
      Returns:
      true if this node is a scalar managed object.
    • isTable

      public boolean isTable()
      Returns:
      true if 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 when isScalar().
    • getTable

      public MIBTree.Table getTable()
      Returns:
      the table (may be null); only present when isTable().