XCMS Toolkit

schemajic.model
Class ASN1Value

java.lang.Object
  extended by schemajic.model.ASN1Value
Direct Known Subclasses:
ASN1BitString, ASN1Boolean, ASN1Choice, ASN1Enumerated, ASN1GeneralizedTime, ASN1Integer, ASN1Null, ASN1ObjectIdentifier, ASN1OctetString, ASN1OpenType, ASN1Sequence, ASN1SequenceOf, ASN1SetOf, ASN1VisibleString

public abstract class ASN1Value
extends java.lang.Object

Models the abstract concept of a value of an ASN.1 type, and provides the base Visitor design pattern class abstract visit method for the ValueVisitor.

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

Constructor Summary
ASN1Value()
          Constructor for ASN1Value.
 
Method Summary
abstract  java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Since Java is strongly typed, this base Visitor class needs an abstract visit method for each kind of class.
 Type getAsn1Type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1Value

public ASN1Value()
Constructor for ASN1Value.

Method Detail

accept

public abstract java.lang.Object accept(ValueVisitor visitor,
                                        java.lang.Object object)
                                 throws VisitorException
Since Java is strongly typed, this base Visitor class needs an abstract visit method for each kind of class. Since all of the toolkit classes that need this method extend ASN1Value, and all of the ASN.1 encoders implement the ValueVisitor interface, only this abstract method is needed.

Parameters:
visitor - the function applicator (mapper), which knows how to process the given object type and apply appropriate operations to the elements of this type of object
object - an object to be visited
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()

XCMS Toolkit


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