|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GxContentHandler<A,S,T>
Method Summary | |
---|---|
void |
attribute(S namespaceURI,
S localName,
java.lang.String prefix,
java.util.List<? extends A> data,
SmName<S> type)
Receive notification of an attribute. |
void |
attribute(S namespaceURI,
S localName,
java.lang.String prefix,
java.lang.String value)
Receive notification of an attribute with an untyped value (dm:string-value). |
void |
comment(java.lang.String value)
Receive notification of a comment information item. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement()
Receive notification of the end of an element. |
void |
ignorableWhitespace(java.lang.String value)
Receive notification of ignorable whitespace in element content. |
void |
namespace(java.lang.String prefix,
S namespaceURI)
Receive notification of an namespace in the style of a lexical attribute. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification of a processing instruction. |
void |
startDocument(java.net.URI documentURI)
Receive notification of the beginning of a document. |
void |
startElement(S namespaceURI,
S localName,
java.lang.String prefix,
SmName<S> type)
Receive notification of the beginning of an element. |
void |
text(java.util.List<? extends A> data)
Receive notification of character data. |
void |
text(java.lang.String value)
Receive notification of a text event with an untyped value (dm:string-value). |
Methods inherited from interface java.io.Flushable |
---|
flush |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
void attribute(S namespaceURI, S localName, java.lang.String prefix, java.util.List<? extends A> data, SmName<S> type) throws GxException
namespaceURI
- The namespace-uri part of the attribute name.localName
- The local-name part of the attribute name.prefix
- The prefix part of the attribute name.data
- The value of the attribute.type
- The type annotation for the attribute supplied by validation. May be null
if not
validated.
GxException
void attribute(S namespaceURI, S localName, java.lang.String prefix, java.lang.String value) throws GxException
namespaceURI
- The namespace-uri part of the attribute name.localName
- The local-name part of the attribute name.prefix
- The prefix part of the attribute name.value
- The value of the attribute considered to be an xs:untypedAtomic value.
GxException
void comment(java.lang.String value) throws GxException
The callee will call this method once for each comment.
value
- The content of the comment.
GxException
void endDocument() throws GxException
A callee will invoke this method only once, and it will be the last method invoked.
A SAX parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
GxException
void endElement() throws GxException
A callee will invoke this method at the end of every element in the XML document; there will be a corresponding startElement core for every endElement core (even when the element is empty).
For information on the names, see startElement.
GxException
void ignorableWhitespace(java.lang.String value) throws GxException
Validating Parsers must use this method to report each chunk of whitespace in element content (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models.
SAX parsers may return all contiguous whitespace in a single chunk, or they may split it into several chunks; however, all of the textUntyped in any single core must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
value
- The textUntyped from the XML document.
GxException
void namespace(java.lang.String prefix, S namespaceURI) throws GxException
prefix
- The name of the namespace node.namespaceURI
- The string value of the namespace node.
GxException
void processingInstruction(java.lang.String target, java.lang.String data) throws GxException
The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.
A SAX parser must never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.
target
- The processing instruction target.data
- The processing instruction data, or null if none was supplied. The data does not include any
whitespace separating it from the target.
GxException
void startDocument(java.net.URI documentURI) throws GxException
A callee will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).
documentURI
- The dm:document-uri.
GxException
void startElement(S namespaceURI, S localName, java.lang.String prefix, SmName<S> type) throws GxException
A callee will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement core for every startElement core (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement core.
namespaceURI
- The namespace-uri part of the element name.localName
- The local-name part of the element name.prefix
- The prefix part of the element name.type
- The type annotation of the element provided by validation. May be null
if not validated.
GxException
void text(java.util.List<? extends A> data) throws GxException
data
- The data associated with the text node.
GxException
void text(java.lang.String value) throws GxException
Equivalent to text(java.util.List extends A>)
with an xs:untypedAtomic value.
value
- The value of the text node considered to be an xs:untypedAtomic value.
GxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |