|
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.ASN1Integer
public class ASN1Integer
Models the abstract concept of the value of
ASN.1 type INTEGER.
Type INTEGER is a simple builtin type whose
distinguished values consist of the countably infinite set of all
positive natural numbers (1, 2, 3, ... ), the negatives of these
values (-1, -2, -3, ... ) and the number zero.
In practice, applications and protocols often choose to constrain the range of allowable values to some reasonable subset. Doing so can enhance the probability of inter working, limit the costs of product implementation, and limit the greatest size of encoded values.
Universal class tag assignment is UNIVERSAL 2.
XML ASN.1 type name is INTEGER.
| Field Summary | |
|---|---|
protected int |
_value
|
| Constructor Summary | |
|---|---|
ASN1Integer()
Constructor for ASN1Integer. |
|
ASN1Integer(int value)
Constructor for ASN1Integer
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 INTEGER type. |
int |
getIntValue()
Returns the current integer value. |
void |
setIntValue(int value)
Sets the current value to the provided integer value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _value
| Constructor Detail |
|---|
public ASN1Integer()
ASN1Integer.
public ASN1Integer(int value)
ASN1Integer
with initialization value parameter.
value - | Method Detail |
|---|
public int getIntValue()
public void setIntValue(int value)
value - integer to be set as the current integer 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()
INTEGER type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||