|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDetailedElementHandling
Handler feature interface to be implemented by IAttoHandler
implementations
that offer detailed reporting of elements (markup tags).
Method Summary | |
---|---|
void |
handleCloseElementEnd(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the end of a close element (a close tag) is found. |
void |
handleCloseElementName(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the name of a close element (a close tag) is found. |
void |
handleCloseElementStart(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the start of a close element (a close tag) is found. |
void |
handleOpenElementEnd(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the end of an open element (an open tag) is found. |
void |
handleOpenElementName(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the name of an open element (an open tag) is found. |
void |
handleOpenElementStart(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the start of an open element (an open tag) is found. |
void |
handleStandaloneElementEnd(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the end of a standalone element (a minimized tag) is found. |
void |
handleStandaloneElementName(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the name of a standalone element (a minimized tag) is found. |
void |
handleStandaloneElementStart(char[] buffer,
int offset,
int len,
int line,
int col)
Called when the start of a standalone element (a minimized tag) is found. |
Methods inherited from interface org.attoparser.markup.IAttributeSequenceHandling |
---|
handleAttribute, handleAttributeSeparator |
Method Detail |
---|
void handleStandaloneElementStart(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the start of a standalone element (a minimized tag) is found. This "start" is considered to be the "<" symbol the element starts with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleStandaloneElementName(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the name of a standalone element (a minimized tag) is found. E.g., the "element name" of an element like <img src="images/logo.png" /> would be "img".
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleStandaloneElementEnd(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the end of a standalone element (a minimized tag) is found. This "end" is considered to be the ">" symbol the element ends with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleOpenElementStart(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the start of an open element (an open tag) is found. This "start" is considered to be the "<" symbol the element starts with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleOpenElementName(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the name of an open element (an open tag) is found. E.g., the "element name" of an element like <div class="basic"> would be "div".
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleOpenElementEnd(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the end of an open element (an open tag) is found. This "end" is considered to be the ">" symbol the element ends with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleCloseElementStart(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the start of a close element (a close tag) is found. This "start" is considered to be the "<" symbol the element starts with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleCloseElementName(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the name of a close element (a close tag) is found. E.g., the "element name" of an element like </div> would be "div".
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.line
- the line in the original document where this artifact starts.col
- the column in the original document where this artifact starts.
AttoParseException
void handleCloseElementEnd(char[] buffer, int offset, int len, int line, int col) throws AttoParseException
Called when the end of a close element (a close tag) is found. This "end" is considered to be the ">" symbol the element ends with.
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.
buffer
- the document buffer (not copied)offset
- the offset (position in buffer) where the artifact starts.len
- the length (in chars) of the artifact, starting in offset.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 |