Interface IMicroNodeWithChildren

    • Method Detail

      • 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