org.jsmiparser.smi
Class SmiOidNode

java.lang.Object
  extended by org.jsmiparser.smi.SmiOidNode

public class SmiOidNode
extends java.lang.Object


Constructor Summary
SmiOidNode(SmiOidNode parent, int value)
           
 
Method Summary
 boolean contains(SmiOidNode node)
           
static SmiOidNode createRootNode()
           
 int[] determineFullOid()
           
 void dumpAncestors(java.io.PrintStream out)
           
 void dumpTree(java.io.PrintStream w, java.lang.String indent)
           
 SmiOidNode findChild(int value)
           
 java.util.Collection<? extends SmiOidNode> getChildren()
           
 int[] getOid()
           
 java.lang.String getOidStr()
           
 SmiOidNode getParent()
           
 SmiOidNode getRootNode()
          This method as such makes no sense (you can get the root node directly from SmiMib), but it is used mainly for unit testing.
 SmiOidValue getSingleValue()
           
<T extends SmiOidValue>
T
getSingleValue(java.lang.Class<T> clazz)
           
<T extends SmiOidValue>
T
getSingleValue(java.lang.Class<T> clazz, SmiModule module)
           
 int getTotalChildCount()
           
 int getValue()
           
 java.util.List<SmiOidValue> getValues()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmiOidNode

public SmiOidNode(SmiOidNode parent,
                  int value)
Method Detail

getParent

public SmiOidNode getParent()

getChildren

public java.util.Collection<? extends SmiOidNode> getChildren()

getValues

public java.util.List<SmiOidValue> getValues()

getOid

public int[] getOid()

getOidStr

public java.lang.String getOidStr()

getTotalChildCount

public int getTotalChildCount()

dumpTree

public void dumpTree(java.io.PrintStream w,
                     java.lang.String indent)

createRootNode

public static SmiOidNode createRootNode()

findChild

public SmiOidNode findChild(int value)

getSingleValue

public <T extends SmiOidValue> T getSingleValue(java.lang.Class<T> clazz)

getSingleValue

public <T extends SmiOidValue> T getSingleValue(java.lang.Class<T> clazz,
                                                SmiModule module)

getSingleValue

public SmiOidValue getSingleValue()

getRootNode

public SmiOidNode getRootNode()
This method as such makes no sense (you can get the root node directly from SmiMib), but it is used mainly for unit testing.

Returns:
The root of the oid tree.

dumpAncestors

public void dumpAncestors(java.io.PrintStream out)

determineFullOid

public int[] determineFullOid()

contains

public boolean contains(SmiOidNode node)

getValue

public int getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2007 null. All Rights Reserved.