All Packages Class Hierarchy This Package Previous Next Index
Interface com.jclark.xml.parse.base.Application
- public interface Application
This interface is used by the parser to report information to the
application.
In all cases the event argument is valid only until the function
returns;
the parser may reuse the event object to report subsequent events.
- See Also:
- Parser
-
characterData(CharacterDataEvent)
- Reports character data.
-
comment(CommentEvent)
- Reports a comment.
-
endCdataSection(EndCdataSectionEvent)
- Reports the end of a CDATA section.
-
endDocument()
- Reports the end of the document.
-
endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent)
- Reports the end of the document type declaration.
-
endElement(EndElementEvent)
- Reports the end of a element.
-
endEntityReference(EndEntityReferenceEvent)
- Reports the start of an entity reference.
-
endProlog(EndPrologEvent)
- Reports the end of the prolog.
-
markupDeclaration(MarkupDeclarationEvent)
- Reports a markup declaration.
-
processingInstruction(ProcessingInstructionEvent)
- Reports a processing instruction.
-
startCdataSection(StartCdataSectionEvent)
- Reports the start of a CDATA section.
-
startDocument()
- Reports the start of the document.
-
startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent)
- Reports the start of the document type declaration.
-
startElement(StartElementEvent)
- Reports the start of an element.
-
startEntityReference(StartEntityReferenceEvent)
- Reports the start of an entity reference.
startDocument
public abstract void startDocument() throws Exception
- Reports the start of the document.
This is called once per well-formed document before any other methods.
endProlog
public abstract void endProlog(EndPrologEvent event) throws Exception
- Reports the end of the prolog.
Called before the start of the first element.
startElement
public abstract void startElement(StartElementEvent event) throws Exception
- Reports the start of an element.
This includes both start-tags and empty elements.
characterData
public abstract void characterData(CharacterDataEvent event) throws Exception
- Reports character data.
endElement
public abstract void endElement(EndElementEvent event) throws Exception
- Reports the end of a element.
This includes both end-tags and empty elements.
processingInstruction
public abstract void processingInstruction(ProcessingInstructionEvent event) throws Exception
- Reports a processing instruction.
Note that processing instructions can occur before or after the
document element.
endDocument
public abstract void endDocument() throws Exception
- Reports the end of the document.
Called once per well-formed document, after all other methods.
Not called if the document is not well-formed.
comment
public abstract void comment(CommentEvent event) throws Exception
- Reports a comment.
Note that comments can occur before or after the
document element.
startCdataSection
public abstract void startCdataSection(StartCdataSectionEvent event) throws Exception
- Reports the start of a CDATA section.
endCdataSection
public abstract void endCdataSection(EndCdataSectionEvent event) throws Exception
- Reports the end of a CDATA section.
startEntityReference
public abstract void startEntityReference(StartEntityReferenceEvent event) throws Exception
- Reports the start of an entity reference.
This event will be followed by the result of parsing
the entity's replacement text.
This is not called for entity references in attribute values.
endEntityReference
public abstract void endEntityReference(EndEntityReferenceEvent event) throws Exception
- Reports the start of an entity reference.
This event follow's the result of parsing
the entity's replacement text.
This is not called for entity references in attribute values.
startDocumentTypeDeclaration
public abstract void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event) throws Exception
- Reports the start of the document type declaration.
endDocumentTypeDeclaration
public abstract void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event) throws Exception
- Reports the end of the document type declaration.
markupDeclaration
public abstract void markupDeclaration(MarkupDeclarationEvent event) throws Exception
- Reports a markup declaration.
All Packages Class Hierarchy This Package Previous Next Index