Class AbstractDocumentTypeHelper

    • Constructor Detail

      • AbstractDocumentTypeHelper

        public AbstractDocumentTypeHelper()
    • Method Detail

      • isElement

        protected boolean isElement​(AuthorNode node,
                                    java.lang.String elemLocalName)
        Test if a given node is an element and has the a specific local name.
        Parameters:
        node - The AuthorNode to be checked.
        elemLocalName - The local name of the element.
        Returns:
        true if the given AuthorNode is an element and its local name matches the given string.
      • getTableCellElementNames

        protected abstract java.lang.String[] getTableCellElementNames()
        Returns the possible local names of the elements that represents a table cell.
        Returns:
        The local names of the elements that represents a table cell. Not null.
      • getTableRowElementNames

        protected abstract java.lang.String[] getTableRowElementNames()
        Return the possible local names of the elements that represent a table row.
        Returns:
        The local names of the elements that represent a table row.
      • getTableElementLocalName

        protected abstract java.lang.String[] getTableElementLocalName()
        Returns the possible local names of the elements that represents a table.
        Returns:
        The local names of the elements that represents a table.
      • getAllowedCellAttributesToCopy

        public java.lang.String[] getAllowedCellAttributesToCopy()
        Get a list of allowed cell attributes to copy when creating a new row based on an older one.
        Returns:
        a list of allowed cell attributes to copy when creating a new row. If it returns null, the list of ignored attributes will be used by default.
      • isContentReference

        public boolean isContentReference​(AuthorNode node)
        Check if this node references another node which should replace it entirely. This is used in the tables to replace conreffed table rows entirely
        Parameters:
        node - The node
        Returns:
        true if this node references another node which should replace it entirely.
      • isColspec

        public boolean isColspec​(AuthorNode node)
        Check if a node is a colspec node.
        Specified by:
        isColspec in interface AuthorTableHelper
        Parameters:
        node - The node.
        Returns:
        true if a node is a colspec node.