XCMS Toolkit

schemajic.model
Class ArcMapEntry

java.lang.Object
  extended by schemajic.model.ArcMapEntry

public class ArcMapEntry
extends java.lang.Object

Processes the arc elements of values of ASN.1 type OBJECT IDENTIFIER.

Version:
1.00 - 2006/01/22
Author:
support@phillipgriffin.com

Constructor Summary
ArcMapEntry(int lowestArc, java.lang.String mnemonic, java.lang.String oid)
          Constructor for ArcMapEntry with parameters.
 
Method Summary
 void addChild(ArcMapEntry entry)
          Adds a child element to an ArcMap.
 java.util.Enumeration getChildren()
          Returns the current child enumerations.
 java.lang.String getMnemonic()
          Returns the current mnemonic.
 ArcMapEntry getParent()
          Returns the current parent.
 int[] getValue()
          Gets the arcs of a value of type ASN.1 OBJECT IDENTIFIER.
 boolean hasMnemonic(java.lang.String s)
          Determines whether or not a nmemonic matches a given value.
 boolean isLegalPosition(int position)
          Determines if the value of some OID arc is in a legal position.
protected  void setParent(ArcMapEntry parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcMapEntry

public ArcMapEntry(int lowestArc,
                   java.lang.String mnemonic,
                   java.lang.String oid)
Constructor for ArcMapEntry with parameters.

Parameters:
lowestArc - arc position in an information object identifier value
mnemonic - identifier name of an arc value
oid - an information object identifier
Method Detail

addChild

public void addChild(ArcMapEntry entry)
Adds a child element to an ArcMap.


getChildren

public java.util.Enumeration getChildren()
Returns the current child enumerations.


getParent

public ArcMapEntry getParent()
Returns the current parent.


getMnemonic

public java.lang.String getMnemonic()
Returns the current mnemonic.


getValue

public int[] getValue()
Gets the arcs of a value of type ASN.1 OBJECT IDENTIFIER.

Returns:
the number of arcs in the OID

hasMnemonic

public boolean hasMnemonic(java.lang.String s)
Determines whether or not a nmemonic matches a given value.

Parameters:
s - a supposed nmemonic
Returns:
boolean true or false

isLegalPosition

public boolean isLegalPosition(int position)
Determines if the value of some OID arc is in a legal position.

Parameters:
position - location in series of OID arcs
Returns:
boolean true or false

setParent

protected void setParent(ArcMapEntry parent)

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.