public class DefaultXMLIterationHandler extends Object implements IXMLIterationHandler
IXMLIterationHandler that does nothing.| Constructor and Description |
|---|
DefaultXMLIterationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCDATA(String sText)
CDATA node.
|
void |
onComment(String sComment)
Comment node.
|
void |
onContentElementWhitespace(CharSequence aWhitespaces)
Ignorable whitespace characters.
|
void |
onDocumentStart(EXMLVersion eVersion,
String sEncoding,
boolean bStandalone)
At the very beginning of the document.
|
void |
onDocumentType(String sQualifiedElementName,
String sPublicID,
String sSystemID)
On XML document type.
|
void |
onElementEnd(String sNamespacePrefix,
String sTagName,
boolean bHasChildren)
End of an element.
|
void |
onElementStart(String sNamespacePrefix,
String sTagName,
Map<String,String> aAttrs,
boolean bHasChildren)
Start of an element.
|
void |
onEntityReference(String sEntityRef)
On entity reference.
|
void |
onProcessingInstruction(String sTarget,
String sData)
On processing instruction
|
void |
onText(String sText,
boolean bEscape)
Text node.
|
public void onDocumentStart(@Nullable EXMLVersion eVersion, @Nullable String sEncoding, boolean bStandalone)
IXMLIterationHandleronDocumentStart in interface IXMLIterationHandlereVersion - The XML version to use. If null is passed,
EXMLVersion.DEFAULT will be used.sEncoding - The encoding to be used for this document. It may be
null but it is strongly recommended to write a correct
charset.bStandalone - if true this is a standalone XML document without a
connection to an existing DTD or XML schemapublic void onDocumentType(@Nonnull String sQualifiedElementName, @Nullable String sPublicID, @Nullable String sSystemID)
IXMLIterationHandleronDocumentType in interface IXMLIterationHandlersQualifiedElementName - Qualified name of the root element.sPublicID - Document type public IDsSystemID - Document type system IDpublic void onProcessingInstruction(@Nonnull String sTarget, @Nullable String sData)
IXMLIterationHandleronProcessingInstruction in interface IXMLIterationHandlersTarget - The targetsData - The data (attributes as a string)public void onEntityReference(@Nonnull String sEntityRef)
IXMLIterationHandleronEntityReference in interface IXMLIterationHandlersEntityRef - The reference (without '&' and ';' !!)public void onContentElementWhitespace(@Nullable CharSequence aWhitespaces)
IXMLIterationHandleronContentElementWhitespace in interface IXMLIterationHandleraWhitespaces - The whitespace character sequencepublic void onComment(@Nullable String sComment)
IXMLIterationHandleronComment in interface IXMLIterationHandlersComment - The comment textpublic void onText(@Nullable String sText, boolean bEscape)
IXMLIterationHandleronText in interface IXMLIterationHandlersText - The contained textbEscape - If true the text should be XML masked,
false if not. The false case is especially
interesting for HTML inline JS and CSS code.public void onCDATA(@Nullable String sText)
IXMLIterationHandleronCDATA in interface IXMLIterationHandlersText - The contained textpublic void onElementStart(@Nullable String sNamespacePrefix, @Nonnull String sTagName, @Nullable Map<String,String> aAttrs, boolean bHasChildren)
IXMLIterationHandleronElementStart in interface IXMLIterationHandlersNamespacePrefix - Optional namespace prefix. May be null.sTagName - Tag nameaAttrs - Optional set of attributes.bHasChildren - true if the current element has childrenpublic void onElementEnd(@Nullable String sNamespacePrefix, @Nonnull String sTagName, boolean bHasChildren)
IXMLIterationHandleronElementEnd in interface IXMLIterationHandlersNamespacePrefix - Optional namespace prefix. May be null.sTagName - Tag namebHasChildren - true if the current element has childrenCopyright © 2006–2015 phloc systems. All rights reserved.