Package com.helger.html.hc
Interface IHCTextNode<IMPLTYPE extends IHCTextNode<IMPLTYPE>>
-
- Type Parameters:
IMPLTYPE- Implementation type
- All Superinterfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,IHCNode,Serializable
- All Known Implementing Classes:
AbstractHCTextNode,HCTextNode
public interface IHCTextNode<IMPLTYPE extends IHCTextNode<IMPLTYPE>> extends IHCNode, com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>
This class represents a text node.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IMPLTYPEappendText(char[] aChars)default IMPLTYPEappendText(char[] aChars, int nOfs, int nLen)IMPLTYPEappendText(String sText)StringgetText()booleanisEscape()default IMPLTYPEprependText(char[] aChars)default IMPLTYPEprependText(char[] aChars, int nOfs, int nLen)IMPLTYPEprependText(String sText)IMPLTYPEsetEscape(boolean bEscape)Enable or disable XML escaping in the final document.default IMPLTYPEsetText(char[] aChars)default IMPLTYPEsetText(char[] aChars, int nOfs, int nLen)IMPLTYPEsetText(String sText)-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChild
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResources
-
-
-
-
Method Detail
-
setText
@Nonnull default IMPLTYPE setText(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
-
prependText
@Nonnull default IMPLTYPE prependText(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
-
appendText
@Nonnull default IMPLTYPE appendText(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
-
setEscape
@Nonnull IMPLTYPE setEscape(boolean bEscape)
Enable or disable XML escaping in the final document. By default all text is escaped (MicroText.DEFAULT_ESCAPE), but for certain special cases (like script elements in HTML), XML escaping must be disabled.- Parameters:
bEscape-trueto enable escaping (default),falseto disable it- Returns:
- this
-
isEscape
boolean isEscape()
- Returns:
trueif XML escaping is enabled,falseif it is disabled
-
-