Interface FormatXMLContentHandlerType<A>
-
- Type Parameters:
A- The type of produced values
- All Known Implementing Classes:
FormatXML1BrandingHandler,FormatXML1BuildHandler,FormatXML1HashHandler,FormatXML1RepositoryHandler,FormatXML1RuntimeHandler,FormatXML1RuntimesHandler,FormatXML1TagHandler,FormatXML1TagsHandler,FormatXML1TopLevelHandler,FormatXMLAbstractContentHandler,FormatXMLMappingHandler
public interface FormatXMLContentHandlerType<A>A content handler that produces values of typeA
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Aget()<B> FormatXMLContentHandlerType<B>map(java.util.function.Function<A,B> f)Applyfto the results of this content handler.voidonCharacters(char[] ch, int start, int length)Text was received.java.util.Optional<A>onElementFinished(java.lang.String namespace, java.lang.String name, java.lang.String qname)An XML element has finished.voidonElementStarted(java.lang.String namespace, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attributes)An XML element has been started.
-
-
-
Method Detail
-
map
<B> FormatXMLContentHandlerType<B> map(java.util.function.Function<A,B> f)
Applyfto the results of this content handler.- Type Parameters:
B- The type of returned values- Parameters:
f- The function- Returns:
- A content handler that produces values of type
B
-
onElementStarted
void onElementStarted(java.lang.String namespace, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXExceptionAn XML element has been started.- Parameters:
namespace- The namespace URIname- The local element nameqname- The fully qualified nameattributes- The attributes- Throws:
org.xml.sax.SAXException- On errors
-
onElementFinished
java.util.Optional<A> onElementFinished(java.lang.String namespace, java.lang.String name, java.lang.String qname) throws org.xml.sax.SAXException
An XML element has finished.- Parameters:
namespace- The namespace URIname- The local element nameqname- The fully qualified name- Returns:
- A value of
Aif the given element finished the content - Throws:
org.xml.sax.SAXException- On errors
-
onCharacters
void onCharacters(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionText was received.- Parameters:
ch- The character bufferstart- The offset of the start of the data in the bufferlength- The length of the data in the buffer- Throws:
org.xml.sax.SAXException- On errors
-
get
A get()
- Returns:
- The completed value
-
-