XCMS Toolkit

schemajic.model
Class ASN1Enumerated

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1Enumerated

public abstract class ASN1Enumerated
extends ASN1Value

Models the abstract concept of a value of ASN.1 type ENUMERATED.

Type ENUMERATED is a simple builtin type whose distinguished values (enumerations) are provided when defined using the ASN.1 type notation.

Universal class tag assignment is UNIVERSAL 10.

XML ASN.1 type name is ENUMERATED, and enumeration values are represented as XML entities in the form "<identifier/>".

Each value of type ENUMERATED has an identifier that is associated with a distinct integer value, though the enumerations themselves should not be viewed as having any integer semantics, and are treated in the ASN.1 standards as "named munbers".

Version:
1.00 - 2006/02/09
Author:
support@phillipgriffin.com

Constructor Summary
ASN1Enumerated()
          Constructor for ASN1Enumerated.
ASN1Enumerated(int value)
          Constructor for ASN1Enumerated with initialization value parameter.
 
Method Summary
 java.lang.Object accept(ValueVisitor visitor, java.lang.Object object)
          Accepts a visit from the ValueVisitor
 boolean equals(java.lang.Object o)
          Returns boolean true if the value of the provided object is equal to the current value.
 Type getAsn1Type()
          Returns an ASN.1 ENUMERATED type.
 int getIntValue()
          Returns the current enumeration value.
 void setIntValue(int i)
          Sets the current value to the provided integer enumeration value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1Enumerated

public ASN1Enumerated()
Constructor for ASN1Enumerated.


ASN1Enumerated

public ASN1Enumerated(int value)
Constructor for ASN1Enumerated with initialization value parameter.

Parameters:
value -
Method Detail

getIntValue

public int getIntValue()
Returns the current enumeration value.


setIntValue

public void setIntValue(int i)
Sets the current value to the provided integer enumeration value.

Parameters:
i - integer enumeration to be set as the current value

equals

public boolean equals(java.lang.Object o)
Returns boolean true if the value of the provided object is equal to the current value. Otherwise, returns false.

Overrides:
equals in class java.lang.Object

accept

public java.lang.Object accept(ValueVisitor visitor,
                               java.lang.Object object)
                        throws VisitorException
Accepts a visit from the ValueVisitor

Specified by:
accept in class ASN1Value
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
Returns:
a visit to the provided object
Throws:
VisitorException

getAsn1Type

public Type getAsn1Type()
Returns an ASN.1 ENUMERATED type.

Overrides:
getAsn1Type in class ASN1Value

XCMS Toolkit


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