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,Serializable
- All Known Subinterfaces:
IMicroContainer,IMicroDocument,IMicroElement
- All Known Implementing Classes:
AbstractMicroNodeWithChildren,MicroContainer,MicroDocument,MicroElement
public interface IMicroNodeWithChildren extends IMicroNode
A special marker interface that is implemented by classes, that really support having children!- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IMicroNodeWithChildrengetClone()StringgetTextContent()Get the concatenated text content of all directIMicroTextchild nodes of this element.default StringgetTextContentTrimmed()Get 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, 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.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
-
getTextContent
@Nullable String getTextContent()
Get the concatenated text content of all directIMicroTextchild nodes of this element.- Returns:
nullif the element contains no text node as child
-
getTextContentTrimmed
@Nullable default String 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
@Nullable <DSTTYPE> DSTTYPE getTextContentWithConversion(@Nonnull Class<DSTTYPE> aDstClass)
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
@Nonnull IMicroNodeWithChildren getClone()
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroNode>
-
-