|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.model.ASN1Value
schemajic.model.ASN1Enumerated
public abstract class ASN1Enumerated
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".
| 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 |
|---|
public ASN1Enumerated()
ASN1Enumerated.
public ASN1Enumerated(int value)
ASN1Enumerated
with initialization value parameter.
value - | Method Detail |
|---|
public int getIntValue()
public void setIntValue(int i)
i - integer enumeration to be set as the current valuepublic boolean equals(java.lang.Object o)
boolean true if the value of
the provided object is equal to the current value. Otherwise,
returns false.
equals in class java.lang.Object
public java.lang.Object accept(ValueVisitor visitor,
java.lang.Object object)
throws VisitorException
visit from the ValueVisitor
accept in class ASN1Valuevisitor - the function applicator (mapper), which knows how to
process the given object type and apply appropriate operations to
the elements of this type of objectobject - an object to be visited
VisitorExceptionpublic Type getAsn1Type()
ENUMERATED type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||