Package com.helger.xml.serialize.write
Class XMLIndentDeterminatorXML
java.lang.Object
com.helger.xml.serialize.write.XMLIndentDeterminatorXML
- All Implemented Interfaces:
IXMLIndentDeterminator
Implementation of
IXMLIndentDeterminator for real XML. It always uses
the default indent and align mode.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIndentInner(String sParentNamespaceURI, String sParentTagName, String sNamespaceURI, String sTagName, Map<QName, String> aAttrs, boolean bHasChildren, EXMLSerializeIndent eDefaultIndent) Determine the outer indentation mode (after the start tag and before the closing tag).getIndentOuter(String sParentNamespaceURI, String sParentTagName, String sNamespaceURI, String sTagName, Map<QName, String> aAttrs, boolean bHasChildren, EXMLSerializeIndent eDefaultIndent) Determine the outer indentation mode (before the start tag and after the closing tag).inthashCode()toString()
-
Constructor Details
-
XMLIndentDeterminatorXML
public XMLIndentDeterminatorXML()
-
-
Method Details
-
getIndentOuter
@Nonnull public EXMLSerializeIndent getIndentOuter(@Nullable String sParentNamespaceURI, @Nullable String sParentTagName, @Nullable String sNamespaceURI, @Nonnull String sTagName, @Nullable Map<QName, String> aAttrs, boolean bHasChildren, @Nonnull EXMLSerializeIndent eDefaultIndent) Description copied from interface:IXMLIndentDeterminatorDetermine the outer indentation mode (before the start tag and after the closing tag).- Specified by:
getIndentOuterin interfaceIXMLIndentDeterminator- Parameters:
sParentNamespaceURI- Optional namespace URI of the parent element (if any). May benull.sParentTagName- Tag name of the parent element (if any). May benull.sNamespaceURI- Optional namespace URI. May benull.sTagName- Tag name.aAttrs- Optional set of attributes.bHasChildren-trueif the current element has childreneDefaultIndent- The default indentation mode provided by theIXMLWriterSettings. Nevernull.- Returns:
- The indentation mode to be used. May not be
null.
-
getIndentInner
@Nonnull public EXMLSerializeIndent getIndentInner(@Nullable String sParentNamespaceURI, @Nullable String sParentTagName, @Nullable String sNamespaceURI, @Nonnull String sTagName, @Nullable Map<QName, String> aAttrs, boolean bHasChildren, @Nonnull EXMLSerializeIndent eDefaultIndent) Description copied from interface:IXMLIndentDeterminatorDetermine the outer indentation mode (after the start tag and before the closing tag).- Specified by:
getIndentInnerin interfaceIXMLIndentDeterminator- Parameters:
sParentNamespaceURI- Optional namespace URI of the parent element (if any). May benull.sParentTagName- Tag name of the parent element (if any). May benull.sNamespaceURI- Optional namespace URI. May benull.sTagName- Tag name.aAttrs- Optional set of attributes.bHasChildren-trueif the current element has childreneDefaultIndent- The default indentation mode provided by theIXMLWriterSettings. Nevernull.- Returns:
- The indentation mode to be used. May not be
null.
-
equals
-
hashCode
public int hashCode() -
toString
-