cryptix.asn1.lang
public interface ASNObject extends Node
This interface extends cryptix.asn1.lang.node
which is generated by the JavaCC
tool.
See Also:
$Revision: 1.1 $
Copyright ©1997, 1998, 1999
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
Method Summary | |
---|---|
Object | accept(ParserVisitor visitor, Object data)
Accepts a visitor.
|
void | dump() Dumps this object's specification to System.out. |
void | dump(String prefix)
Dumps this object's specification to System.out prefixing
each line with the given string.
|
ASNObject[] | getChildren() |
ASNObject | getComponent(String aName)
Returns a child component of an ASN.1 construct given its
full name. |
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() |
String | getName() |
ASNObject | getParent() |
Tag | getTag()
Returns a reference to an instance of this ASN.1 object's
Tag .
|
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(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.
param flag The new value of the optional flag. |
void | setTag(Tag tag)
Sets the tag of this ASN.1 object to be the designated
Tag . |
void | setValue(Object value)
Sets the value of this component to a native Java instance. The mapping between ASN.1 types and Java types is given below:
|
Parameters: visitor An instance that implements the ParserVisitor interface.
Throws: IOException If an exception occurs during the application of the Visitor method.
See Also: ParserVisitor
Parameters: prefix A string that will prefix each new line of the output.
ASNObject
instance:
"certificateInfo.signature.algorithm"
Returns: A child component of this ASN.1 object given its dotted name.
Returns: The name associated with this ASN.1 object.
Tag
.
Returns: A reference to an instance of this ASN.1 object's
Tag
.
See Also: Tag
setValue()
method.
Returns: The value of this component as a native Java object.
See Also: ASNObject
Returns: True if this ASN.1 object is optional, false otherwise.
Parameters: defaultValue The Java object instance representing the default value of this ASN.1 object.
Tag
.See Also: Tag
The mapping between ASN.1 types and Java types is given below: