|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--codec.asn1.ASN1NOP
The ASN1NOP class helps to keep ASN1Types at fixed positions in the internal list. The class realize the Null Object - Pattern . If an optional ASN1Type is not present the ASN1NOP should used to fill its place. So all other ASN1Types in this ASN1Sequence remains at the same position. This class will be ignored while encoding. Other methods than getInstance() or isOptional() will throw an UnsupportedOperationException.
| Method Summary | |
void |
checkConstraints()
DOCUMENT ME! |
void |
decode(Decoder dec)
DOCUMENT ME! |
void |
encode(Encoder enc)
The encode method returns without writing anything to the encoder. |
Constraint |
getConstraint()
ASN1NOP has no constraints |
static ASN1NOP |
getInstance()
Returns the singleton |
int |
getTag()
DOCUMENT ME! |
int |
getTagClass()
(non-Javadoc) |
Object |
getValue()
DOCUMENT ME! |
boolean |
isExplicit()
(non-Javadoc) |
boolean |
isOptional()
The ASN1NOP always has the semantic of optional is true. |
boolean |
isType(int tag,
int tagclass)
DOCUMENT ME! |
void |
setConstraint(Constraint o)
ASN1NOP needs no constraints |
void |
setExplicit(boolean explicit)
(non-Javadoc) |
void |
setOptional(boolean optional)
The ASN1NOP always has the semantic of optional is true. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ASN1NOP getInstance()
public Object getValue()
getValue in interface ASN1TypeUnsupportedOperationException - ASN1Type.getValue()public void setOptional(boolean optional)
setOptional in interface ASN1Typeoptional - DOCUMENT ME!UnsupportedOperationException - ASN1Type.setOptional(boolean)public boolean isOptional()
isOptional in interface ASN1TypeASN1Type.isOptional()public int getTag()
getTag in interface ASN1TypeUnsupportedOperationException - ASN1Type.getTag()public int getTagClass()
getTagClass in interface ASN1TypeUnsupportedOperationException - ASN1Type.getTagClass()public void setExplicit(boolean explicit)
setExplicit in interface ASN1Typeexplicit - DOCUMENT ME!UnsupportedOperationException - ASN1Type.setExplicit(boolean)public boolean isExplicit()
isExplicit in interface ASN1TypeUnsupportedOperationException - ASN1Type.isExplicit()
public boolean isType(int tag,
int tagclass)
isType in interface ASN1Typetag - DOCUMENT ME!tagclass - DOCUMENT ME!UnsupportedOperationException - ASN1Type.isType(int, int)public void encode(Encoder enc)
encode in interface ASN1Typeenc - DOCUMENT ME!UnsupportedOperationException - ASN1Type.encode(codec.asn1.Encoder)public void decode(Decoder dec)
decode in interface ASN1Typedec - DOCUMENT ME!UnsupportedOperationException - ASN1Type.decode(codec.asn1.Decoder)public void setConstraint(Constraint o)
setConstraint in interface ASN1Typeo - DOCUMENT ME!UnsupportedOperationException - ASN1Type.setConstraint(codec.asn1.Constraint)public Constraint getConstraint()
getConstraint in interface ASN1TypeASN1Type.getConstraint()public void checkConstraints()
checkConstraints in interface ASN1TypeUnsupportedOperationException - ASN1Type.checkConstraints()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||