XCMS Toolkit

schemajic.model
Class ObjectIdentifierParser

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

public class ObjectIdentifierParser
extends java.lang.Object

Implements a parser for values of ASN.1 type OBJECT IDENTIFIER.

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

Constructor Summary
ObjectIdentifierParser()
          Constructor for ObjectIdentifierParser.
ObjectIdentifierParser(ArcMap arcMap)
          Constructor for ObjectIdentifierParser with parameters ???.
ObjectIdentifierParser(boolean resolveIdentifiers)
          Constructor for ObjectIdentifierParser.
ObjectIdentifierParser(boolean resolveIdentifiers, ArcMap arcMap)
          Constructor for ObjectIdentifierParser with parameters ???.
 
Method Summary
protected  ArcMap getArcMap()
          Returns the current arc map.
 int[] parse(java.lang.String notation)
           
 int[] resolveArc(int position, java.lang.String mnemonic)
          Resolves an ASN.1 information object identifier arc.
 java.lang.String resolveArcs(java.lang.String s)
          Resolves ASN.1 information object identifier arcs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdentifierParser

public ObjectIdentifierParser()
                       throws java.text.ParseException
Constructor for ObjectIdentifierParser.

Throws:
java.text.ParseException

ObjectIdentifierParser

public ObjectIdentifierParser(ArcMap arcMap)
                       throws java.text.ParseException
Constructor for ObjectIdentifierParser with parameters ???.

Throws:
java.text.ParseException

ObjectIdentifierParser

public ObjectIdentifierParser(boolean resolveIdentifiers,
                              ArcMap arcMap)
                       throws java.text.ParseException
Constructor for ObjectIdentifierParser with parameters ???.

Throws:
java.text.ParseException

ObjectIdentifierParser

public ObjectIdentifierParser(boolean resolveIdentifiers)
                       throws java.text.ParseException
Constructor for ObjectIdentifierParser.

Throws:
java.text.ParseException
Method Detail

parse

public int[] parse(java.lang.String notation)
            throws java.text.ParseException
Throws:
java.text.ParseException

resolveArc

public int[] resolveArc(int position,
                        java.lang.String mnemonic)
                 throws java.text.ParseException
Resolves an ASN.1 information object identifier arc.

Parameters:
position - location in series of OID arcs
mnemonic - arc identifier
Returns:
integer arc values
Throws:
java.text.ParseException

resolveArcs

public java.lang.String resolveArcs(java.lang.String s)
                             throws java.text.ParseException
Resolves ASN.1 information object identifier arcs.

Parameters:
s - a string of arcs to be tokenized and resolve
Returns:
a string buffer of resolved arcs
Throws:
java.text.ParseException

getArcMap

protected ArcMap getArcMap()
Returns the current arc map.


XCMS Toolkit


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