In this level of inheritance, contract is as follows.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract State | |
| public final void | endDocument()
Implements org. |
| public final void | endElement(String
the Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed namespaceURI, String the local name (without prefix), or the
empty string if Namespace processing is not being
performed localName, String the qualified XML name (with prefix), or the
empty string if qualified names are not available qName)Implements org. |
| protected void | |
| protected boolean | |
| public void | startElement(String
the Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed namespaceURI, String the local name (without prefix), or the
empty string if Namespace processing is not being
performed localName, String the qualified name (with prefix), or the
empty string if qualified names are not available qName, Attributes the attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object. The value of this object after
startElement returns is undefined atts)Implements org. |
| SimpleState | back to summary |
|---|---|
| public SimpleState() | |
| createChildState | back to summary |
|---|---|
| protected abstract State createChildState(StartTagInfo tag) creates appropriate child state object for this element | |
| endDocument | back to summary |
|---|---|
| public final void endDocument() Implements org. Doc from org. Receive notification of the end of a document. This method is invoked by the parser to signal it has reached the end of the document after successfully completing the parsing process. After the event, the parser will return the control to the application. | |
| endElement | back to summary |
|---|---|
| public final void endElement(String namespaceURI, String localName, String qName) Implements org. Doc from org. Receive notification of the end of an element. The SAX parser will invoke this method at the end of every
element in the XML document; there will be a corresponding
For information on the names, see startElement.
| |
| endSelf | back to summary |
|---|---|
| protected void endSelf() this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job | |
| isGrammarElement | back to summary |
|---|---|
| protected boolean isGrammarElement(StartTagInfo tag) checks if this element belongs to the grammar. | |
| startElement | back to summary |
|---|---|
| public void startElement(String namespaceURI, String localName, String qName, Attributes atts) Implements org. Doc from org. Receive notification of the beginning of an element. The Parser will invoke this method at the beginning of every
element in the XML document; there will be a corresponding
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties:
Note that the attribute list provided will contain only
attributes with explicit values (specified or defaulted):
#IMPLIED attributes will be omitted. The attribute list
will contain attributes used for Namespace declarations
(xmlns* attributes) only if the
Like
| |