|
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.ASN1Choice
public abstract class ASN1Choice
Models the abstract concept of the value of an
ASN.1 CHOICE type.
CHOICE types are defined by referencing a set of
distinct types, each a choice alternative. Each value of the
choice type is derived from the value of one of these choice
alternatives. The choice alternatives, which may be referred
to as "components of the choice type" or "selections of the
choice type", may be simple builtin types or defined types.
There is n universal class tag assignment for this type.
XML ASN.1 type name is CHOICE.
| Constructor Summary | |
|---|---|
|
ASN1Choice()
Constructor for ASN1Choice. |
protected |
ASN1Choice(ASN1Value value,
int index)
Constructor for ASN1Choice with choice value
and choice alternative indicator parameters. |
| Method Summary | |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor,
java.lang.Object object)
Accepts a visit from the ValueVisitor |
Type |
getAsn1Type()
Returns an ASN.1 CHOICE type. |
int |
getChosenIndex()
Returns the current index indicating a choice alternative. |
ASN1Value |
getChosenValue()
Returns the current choice alternative value. |
protected void |
setChosenIndex(int i)
Sets the current choice alternative indicator. |
void |
setChosenValue(ASN1Value value,
int index)
Sets the current choice alternative value and indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASN1Choice()
ASN1Choice.
protected ASN1Choice(ASN1Value value,
int index)
ASN1Choice with choice value
and choice alternative indicator parameters.
value - a choice alternative value of an ASN.1 typeindex - a choice altenative indicator of the alternative selected| Method Detail |
|---|
public int getChosenIndex()
public ASN1Value getChosenValue()
protected void setChosenIndex(int i)
i - chosen choice alternative
public void setChosenValue(ASN1Value value,
int index)
value - a choice alternative valueindex - chosen choice alternative
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()
CHOICE type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||