|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.attoparser.AbstractAttoHandler
org.attoparser.markup.AbstractBasicMarkupAttoHandler
org.attoparser.markup.AbstractDetailedMarkupAttoHandler
org.attoparser.markup.xml.AbstractDetailedXmlAttoHandler
public abstract class AbstractDetailedXmlAttoHandler
Constructor Summary | |
---|---|
AbstractDetailedXmlAttoHandler()
|
Method Summary | |
---|---|
void |
handleAutoCloseElementEnd(int line,
int col)
Called for signaling the end of an auto-close element, created for balancing an unclosed tag. |
void |
handleAutoCloseElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called for signaling the start of an auto-close element (a synthetic close tag), created for balancing an unclosed tag. |
void |
handleCloseElementEnd(int line,
int col)
Called when the end of a close element (a close tag) is found. |
void |
handleCloseElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when the start of a close element (a close tag) is found. |
void |
handleDocumentEnd(long endTimeNanos,
long totalTimeNanos,
int line,
int col,
MarkupParsingConfiguration documentRestrictions)
Called when document parsing ends. |
void |
handleDocumentStart(long startTimeNanos,
int line,
int col,
MarkupParsingConfiguration documentRestrictions)
Called when document parsing starts. |
void |
handleOpenElementEnd(int line,
int col)
Called when the end of an open element (an open tag) is found. |
void |
handleOpenElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when an open element (an open tag) is found. |
void |
handleStandaloneElementEnd(int line,
int col)
Called when the end of a standalone element (a minimized tag) is found |
void |
handleStandaloneElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when a standalone element (a minimized tag) is found. |
void |
handleXmlCloseElementEnd(int line,
int col)
Called when the end of a close element (a close tag) is found. |
void |
handleXmlCloseElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when a close element (a close tag) is found. |
void |
handleXmlDocumentEnd(long endTimeNanos,
long totalTimeNanos,
int line,
int col)
|
void |
handleXmlDocumentStart(long startTimeNanos,
int line,
int col)
|
void |
handleXmlOpenElementEnd(int line,
int col)
Called when the end of an open element (an open tag) is found. |
void |
handleXmlOpenElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when an open element (an open tag) is found. |
void |
handleXmlStandaloneElementEnd(int line,
int col)
Called when the end of a standalone element (a minimized tag) is found. |
void |
handleXmlStandaloneElementStart(char[] buffer,
int nameOffset,
int nameLen,
int line,
int col)
Called when a standalone element (a minimized tag) is found. |
Methods inherited from class org.attoparser.markup.AbstractDetailedMarkupAttoHandler |
---|
handleAttribute, handleCloseElement, handleDocType, handleDocType, handleDocumentEnd, handleDocumentStart, handleInnerWhiteSpace, handleOpenElement, handleStandaloneElement, handleUnmatchedCloseElementEnd, handleUnmatchedCloseElementStart, handleXmlDeclaration, handleXmlDeclarationDetail |
Methods inherited from class org.attoparser.markup.AbstractBasicMarkupAttoHandler |
---|
handleCDATASection, handleComment, handleProcessingInstruction, handleStructure |
Methods inherited from class org.attoparser.AbstractAttoHandler |
---|
getEndTimeNanos, getStartTimeNanos, getTotalTimeNanos, handleDocumentEnd, handleDocumentStart, handleText |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.attoparser.markup.IAttributeSequenceHandling |
---|
handleAttribute, handleInnerWhiteSpace |
Constructor Detail |
---|
public AbstractDetailedXmlAttoHandler()
Method Detail |
---|
public final void handleDocumentStart(long startTimeNanos, int line, int col, MarkupParsingConfiguration documentRestrictions) throws AttoParseException
AbstractDetailedMarkupAttoHandler
Called when document parsing starts.
handleDocumentStart
in class AbstractDetailedMarkupAttoHandler
startTimeNanos
- the starting time, in nanoseconds.documentRestrictions
- the document restrictions being applied.
AttoParseException
public final void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col, MarkupParsingConfiguration documentRestrictions) throws AttoParseException
AbstractDetailedMarkupAttoHandler
Called when document parsing ends.
handleDocumentEnd
in class AbstractDetailedMarkupAttoHandler
endTimeNanos
- the parsing end time, in nanoseconds.totalTimeNanos
- the difference between parsing start and end times.documentRestrictions
- the document restrictions being applied.
AttoParseException
public final void handleStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedElementHandling
Called when a standalone element (a minimized tag) is found. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleStandaloneElementStart
in interface IDetailedElementHandling
handleStandaloneElementStart
in class AbstractDetailedMarkupAttoHandler
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public final void handleStandaloneElementEnd(int line, int col) throws AttoParseException
IDetailedElementHandling
Called when the end of a standalone element (a minimized tag) is found
handleStandaloneElementEnd
in interface IDetailedElementHandling
handleStandaloneElementEnd
in class AbstractDetailedMarkupAttoHandler
line
- the line in the original document where the element ending structure appears.col
- the column in the original document where the element ending structure appears.
AttoParseException
public final void handleOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedElementHandling
Called when an open element (an open tag) is found. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleOpenElementStart
in interface IDetailedElementHandling
handleOpenElementStart
in class AbstractDetailedMarkupAttoHandler
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public final void handleOpenElementEnd(int line, int col) throws AttoParseException
IDetailedElementHandling
Called when the end of an open element (an open tag) is found.
handleOpenElementEnd
in interface IDetailedElementHandling
handleOpenElementEnd
in class AbstractDetailedMarkupAttoHandler
line
- the line in the original document where the element ending structure appears.col
- the column in the original document where the element ending structure appears.
AttoParseException
public final void handleCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedElementHandling
Called when the start of a close element (a close tag) is found. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleCloseElementStart
in interface IDetailedElementHandling
handleCloseElementStart
in class AbstractDetailedMarkupAttoHandler
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public final void handleCloseElementEnd(int line, int col) throws AttoParseException
IDetailedElementHandling
Called when the end of a close element (a close tag) is found.
handleCloseElementEnd
in interface IDetailedElementHandling
handleCloseElementEnd
in class AbstractDetailedMarkupAttoHandler
line
- the line in the original document where the element ending structure appears.col
- the column in the original document where the element ending structure appears.
AttoParseException
public final void handleAutoCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedElementHandling
Called for signaling the start of an auto-close element (a synthetic close tag), created for balancing an unclosed tag. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleAutoCloseElementStart
in interface IDetailedElementHandling
handleAutoCloseElementStart
in class AbstractDetailedMarkupAttoHandler
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public final void handleAutoCloseElementEnd(int line, int col) throws AttoParseException
IDetailedElementHandling
Called for signaling the end of an auto-close element, created for balancing an unclosed tag.
handleAutoCloseElementEnd
in interface IDetailedElementHandling
handleAutoCloseElementEnd
in class AbstractDetailedMarkupAttoHandler
line
- the line in the original document where the element ending structure appears.col
- the column in the original document where the element ending structure appears.
AttoParseException
public void handleXmlDocumentStart(long startTimeNanos, int line, int col) throws AttoParseException
AttoParseException
public void handleXmlDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) throws AttoParseException
AttoParseException
public void handleXmlStandaloneElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when a standalone element (a minimized tag) is found. The name of the element is also reported.
An example standalone element: <metainfo action-type="interop"/>
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleXmlStandaloneElementStart
in interface IDetailedXmlElementHandling
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public void handleXmlStandaloneElementEnd(int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when the end of a standalone element (a minimized tag) is found.
handleXmlStandaloneElementEnd
in interface IDetailedXmlElementHandling
line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public void handleXmlOpenElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when an open element (an open tag) is found. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleXmlOpenElementStart
in interface IDetailedXmlElementHandling
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public void handleXmlOpenElementEnd(int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when the end of an open element (an open tag) is found.
handleXmlOpenElementEnd
in interface IDetailedXmlElementHandling
line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public void handleXmlCloseElementStart(char[] buffer, int nameOffset, int nameLen, int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when a close element (a close tag) is found. The name of the element is also reported.
Artifacts are reported using the document buffer directly, and this buffer should not be considered to be immutable, so reported structures should be copied if they need to be stored (either by copying len chars from the buffer char[] starting in offset or by creating a String from it using the same specification).
Implementations of this handler should never modify the document buffer.
handleXmlCloseElementStart
in interface IDetailedXmlElementHandling
buffer
- the document buffer (not copied)nameOffset
- the offset (position in buffer) where the element name appears.nameLen
- the length (in chars) of the element name.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
public void handleXmlCloseElementEnd(int line, int col) throws AttoParseException
IDetailedXmlElementHandling
Called when the end of a close element (a close tag) is found.
handleXmlCloseElementEnd
in interface IDetailedXmlElementHandling
line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |