Package com.helger.xml.microdom
Interface IMicroNodeWithChildren
- 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>,IMicroNode
- All Known Subinterfaces:
IMicroContainer,IMicroDocument,IMicroElement
- All Known Implementing Classes:
AbstractMicroNodeWithChildren,MicroContainer,MicroDocument,MicroElement
A special marker interface that is implemented by classes, that really
support having children!
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiongetClone()Get the concatenated text content of all directIMicroTextchild nodes of this element.default StringGet the concatenated text content of all directIMicroTextchild nodes of this element.<DSTTYPE> DSTTYPEgetTextContentWithConversion(Class<DSTTYPE> aDstClass) Get the concatenated text content of all directIMicroTextchild nodes of this element.Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildrenMethods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursiveMethods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getChildAtIndexMethods 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, 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 Details
-
getTextContent
Get the concatenated text content of all directIMicroTextchild nodes of this element.- Returns:
nullif the element contains no text node as child
-
getTextContentTrimmed
Get the concatenated text content of all directIMicroTextchild nodes of this element. After concatenation, all leading and trailing spaces are removed.- Returns:
nullif the element contains no text node as child
-
getTextContentWithConversion
Get the concatenated text content of all directIMicroTextchild nodes of this element. The value is converted via theTypeConverterto the desired destination class.- Type Parameters:
DSTTYPE- The destination type to convert the String textContent to.- Parameters:
aDstClass- The destination class to which the text content should be converted.- Returns:
nullif the element contains no text node as child
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroNode>
-