Package com.helger.xml.microdom
Interface IMicroText
-
- All Superinterfaces:
com.helger.commons.lang.ICloneable<IMicroNode>,com.helger.commons.hierarchy.IHasChildren<IMicroNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IMicroNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IMicroNode>,com.helger.commons.hierarchy.IHasParent<IMicroNode>,IMicroDataAware,IMicroNode,Serializable
- All Known Implementing Classes:
MicroText
public interface IMicroText extends IMicroNode, IMicroDataAware
Represents a text node.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMicroTextgetClone()booleanisElementContentWhitespace()Check whether the text node consists solely of whitespaces.booleanisEscape()-
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, getChildAtIndex
-
Methods inherited from interface com.helger.xml.microdom.IMicroDataAware
appendData, appendData, appendData, getData, prependData, prependData, prependData, setData
-
Methods inherited from interface com.helger.xml.microdom.IMicroNode
appendCDATA, appendCDATA, appendCDATA, appendCDATAWithConversion, appendChild, appendChildren, appendChildren, appendComment, appendComment, appendComment, appendCommentWithConversion, appendContainer, appendElement, appendElement, appendEntityReference, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendProcessingInstruction, appendText, appendText, appendText, appendTextWithConversion, containsAnyChild, detachFromParent, findParentElement, getAllChildren, getAllChildrenRecursive, getAllEventTargets, getAllEventTargets, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeValue, getParent, getParentElementWithName, getParentElementWithName, getPreviousSibling, getType, hasParent, insertAfter, insertAtIndex, insertBefore, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isEqualContent, isProcessingInstruction, isText, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, replaceChild, unregisterEventTarget
-
-
-
-
Method Detail
-
isElementContentWhitespace
boolean isElementContentWhitespace()
Check whether the text node consists solely of whitespaces. This may be helpful in detecting XML that has been indented :)- Returns:
trueif the text node consists solely of whitespaces (blank, tab etc.).
-
isEscape
boolean isEscape()
- Returns:
trueif the content of this text node should be masked, andfalseif not. By default a text node should always be masked.
-
getClone
@Nonnull IMicroText getClone()
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroNode>
-
-