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

public interface IMicroNodeWithChildren extends IMicroNode
A special marker interface that is implemented by classes, that really support having children!
Author:
Philip Helger
  • Method Details

    • getTextContent

      @Nullable String getTextContent()
      Get the concatenated text content of all direct IMicroText child nodes of this element.
      Returns:
      null if the element contains no text node as child
    • getTextContentTrimmed

      @Nullable default String getTextContentTrimmed()
      Get the concatenated text content of all direct IMicroText child nodes of this element. After concatenation, all leading and trailing spaces are removed.
      Returns:
      null if the element contains no text node as child
    • getTextContentWithConversion

      @Nullable <DSTTYPE> DSTTYPE getTextContentWithConversion(@Nonnull Class<DSTTYPE> aDstClass)
      Get the concatenated text content of all direct IMicroText child nodes of this element. The value is converted via the TypeConverter to 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:
      null if the element contains no text node as child
    • getClone

      Specified by:
      getClone in interface com.helger.commons.lang.ICloneable<IMicroNode>