public interface ASNObject extends Node
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ParserVisitor visitor,
java.lang.Object data)
Accepts a visitor.
|
void |
dump()
Dumps this object's specification to System.out.
|
void |
dump(java.lang.String prefix)
Dumps this object's specification to System.out prefixing
each line with the given string.
|
ASNObject[] |
getChildren() |
ASNObject |
getComponent(java.lang.String aName)
Returns a child component of an ASN.1 construct given its
full name.
|
java.lang.Object |
getDefaultValue()
Similar to getValue() but operates on the default value
of this ASN.1 object if such a value is/was defined in
the specifications.
|
int |
getID() |
java.lang.String |
getName() |
ASNObject |
getParent() |
Tag |
getTag()
Returns a reference to an instance of this ASN.1 object's
Tag . |
java.lang.Object |
getValue()
Returns the Java Object containing the current value of this
ASN.1 object.
|
boolean |
isOptional()
Returns true if this ASN.1 object is optional, false
otherwise.
|
void |
setDefaultValue(java.lang.Object defaultValue)
Similar to setValue() but operates on the default value
of this ASN.1 object if such a value is/was defined in
the specifications.
|
void |
setOptional(boolean flag)
Sets the optional flag for this ASN.1 object to the
designated value.
|
void |
setTag(Tag tag)
Sets the tag of this ASN.1 object to be the designated
|
void |
setValue(java.lang.Object value)
Sets the value of this component to a native Java instance.
|
jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent
ASNObject getParent()
ASNObject[] getChildren()
int getID()
java.lang.String getName()
ASNObject getComponent(java.lang.String aName)
ASNObject
instance:
"certificateInfo.signature.algorithm"
void setTag(Tag tag)
Tag
.Tag
Tag getTag()
Tag
.Tag
.Tag
boolean isOptional()
void setOptional(boolean flag)
void setValue(java.lang.Object value)
The mapping between ASN.1 types and Java types is given below:
java.lang.Object getValue()
setValue()
method.setValue(java.lang.Object)
void setDefaultValue(java.lang.Object defaultValue)
defaultValue
- The Java object instance representing
the default value of this ASN.1 object.java.lang.Object getDefaultValue()
void dump()
void dump(java.lang.String prefix)
prefix
- A string that will prefix each new line
of the output.java.lang.Object accept(ParserVisitor visitor, java.lang.Object data) throws java.io.IOException
visitor
- An instance that implements the ParserVisitor
interface.java.io.IOException
- If an exception occurs during
the application of the Visitor method.ParserVisitor