Interface TablePropertiesHelper

    • Method Detail

      • isTableBody

        boolean isTableBody​(AuthorElement node)
        Checks if the given node represents a table body element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table body element.
      • isTableHead

        boolean isTableHead​(AuthorElement node)
        Checks if the given node represents a table head element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table head element.
      • isTableFoot

        boolean isTableFoot​(AuthorElement node)
        Checks if the given node represents a table foot element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table foot element.
      • isTableRow

        boolean isTableRow​(AuthorElement node)
        Checks if the given node represents a table row element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table row element.
      • isTableCell

        boolean isTableCell​(AuthorElement node)
        Checks if the given node represents a table cell element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table cell element.
      • isTableColspec

        boolean isTableColspec​(AuthorElement node)
        Checks if the given node represents a table colspec element.
        Parameters:
        node - The node to be checked.
        Returns:
        true if the given node is a table colspec element.
      • allowsFooter

        boolean allowsFooter()
        true if the current table allows footer element.
        Returns:
        true if the table allows footer.
      • getFirstChildOfTypeFromParentWithType

        AuthorElement getFirstChildOfTypeFromParentWithType​(AuthorElement currentRow,
                                                            int childType,
                                                            int parentType)
        Obtain the first row child of the parent which has the given type. The type could be one of TYPE_HEADED, TYPE_BODY, TYPE_FOOTER.
        Parameters:
        currentRow - The current row element.
        childType - The type of the child that is needed.
        parentType - The type for the parent which will contain the returned row element.
        Returns:
        The first row from the parent or null if a parent with the given type is not found or if it does not contain any rows.
      • getElementTag

        java.lang.String getElementTag​(int elementType)
        Obtain the element name.
        Parameters:
        elementType - The type of the element.
        Returns:
        the element tag.
      • getElementName

        java.lang.String getElementName​(int elementType)
        Parameters:
        elementType - The element type.
        Returns:
        The element name.