|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler com.objsys.asn1j.runtime.Asn1XerSaxHandler
public class Asn1XerSaxHandler
This class extends the DefaultHandler SAX handler class to add items specific to ASN.1 XER encoding.
Field Summary | |
---|---|
protected boolean |
mConsumedStartElement
|
protected int |
mCurrElemID
|
protected int |
mCurrState
|
protected int |
mLevel
|
protected int |
mStartLevel
|
protected java.lang.String |
mXMLElemName
|
protected int |
XERDATA
|
protected int |
XEREND
|
protected int |
XERINIT
|
protected int |
XERSTART
|
protected int |
XERUNKNOWN
|
Constructor Summary | |
---|---|
protected |
Asn1XerSaxHandler()
|
Method Summary | |
---|---|
boolean |
consumeStartElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
This method should be used in preference to invoking startElement directly when a parent SAX handler is delegating to a child SAX handler. |
void |
endGroup()
This event method should be invoked when the group being decoded by this handler is decided to be complete. |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
int |
getState()
|
void |
init(int startLevel)
|
boolean |
isComplete()
Returns true when the SAX handler has finished decoding the group. |
boolean |
isDecodingAsGroup()
Return true if this SAX handler is decoding a group of elements rather than a single element (and possibly its children elements). |
boolean |
matchXMLElemName(java.lang.String elemName)
|
void |
setComplete()
Invoke this method to mark this SAX handler as being complete. |
void |
setLevel(int startLevel)
|
void |
setXMLElemName(java.lang.String value)
|
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int XERUNKNOWN
protected final int XERINIT
protected final int XERSTART
protected final int XERDATA
protected final int XEREND
protected int mCurrState
protected int mCurrElemID
protected int mLevel
protected int mStartLevel
protected java.lang.String mXMLElemName
protected boolean mConsumedStartElement
Constructor Detail |
---|
protected Asn1XerSaxHandler()
Method Detail |
---|
public int getState()
public void init(int startLevel)
public void endGroup() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final boolean consumeStartElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
Asn1XmlSaxUnexpElemExc
- if certain that some other element is
expected.
org.xml.sax.SAXException
public final boolean isComplete()
public final boolean isDecodingAsGroup()
public final void setComplete() throws org.xml.sax.SAXException
java.lang.IllegalStateException
- if mLevel != mStartLevel.
org.xml.sax.SAXException
public void setLevel(int startLevel)
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public boolean matchXMLElemName(java.lang.String elemName)
public void setXMLElemName(java.lang.String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |