|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1ElementTracker
public class Asn1ElementTracker
Maintains an element stack so that a full name for the current element can be obtained. This simply pushes/pops elements on/off the element stack when the event handler methods are invoked.
Constructor Summary | |
---|---|
Asn1ElementTracker()
|
Method Summary | |
---|---|
void |
characters(java.lang.String svalue,
short typeCode)
The characters callback method is invoked when content (primitive data) is encountered. |
void |
endElement(java.lang.String name,
int index)
The endElement callback method is invoked when the end of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is detected. |
java.lang.String |
getCurrentElement()
|
void |
startElement(java.lang.String name,
int index)
The startElement callback method is invoked when the start of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Asn1ElementTracker()
Method Detail |
---|
public void characters(java.lang.String svalue, short typeCode)
Asn1NamedEventHandler
characters
in interface Asn1NamedEventHandler
svalue
- Stringified representation of the parsed value.
The representation will be in ASN.1 value format.typeCode
- Identifier specifying the type of the parsed
data variable. The enumerated list of values
that might appear here is provided in the
the Asn1Type class (see the documentation on
this class for a full list of the names).public void endElement(java.lang.String name, int index)
Asn1NamedEventHandler
endElement
in interface Asn1NamedEventHandler
name
- Name of the parsed element.index
- Index of element in array. Only used for
SEQUENCE OF or SET OF elements. Set to
-1 for all others.public void startElement(java.lang.String name, int index)
Asn1NamedEventHandler
startElement
in interface Asn1NamedEventHandler
name
- Name of the parsed element.index
- Index of element in array. Only used for
SEQUENCE OF or SET OF elements. Set to
-1 for all others.public java.lang.String getCurrentElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |