Interface AuthorElementBaseInterface

  • All Superinterfaces:
    AuthorNode, AuthorParentNode
    All Known Subinterfaces:
    AuthorElement

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface AuthorElementBaseInterface
    extends AuthorParentNode
    Element represents a tag in an XML document. The element is mapped into the content by two sentinel characters (the node positions point to them), having the '\0' character code. This is needed for easily moving the caret between two adjacent elements.
    Since:
    13.2
    • Method Detail

      • getBeforeElement

        @Deprecated
        AuthorElementBaseInterface getBeforeElement()
        Deprecated.
        This functionality is needed from the CSS style matcher, so it will eventually move there. Will be removed in 17.0 or later.
        Returns:
        The before sibling if any.
      • isFirstChildElement

        @Deprecated
        boolean isFirstChildElement()
        Deprecated.
        Check if this element is the first child element of the parent.
        Returns:
        Returns true if element is the first child in parent.
      • getLocalName

        java.lang.String getLocalName()
        Returns:
        The element local name.
      • hasPseudoClass

        boolean hasPseudoClass​(java.lang.String name)
        Checks if a pseudo class is set on the element.
        Parameters:
        name - The name of the pseudo class. Let say :hover, :active, etc..
        Returns:
        true if the pseudo class is set on the element.
      • setPseudoClass

        void setPseudoClass​(java.lang.String name)
        Sets a pseudo class on the element. Warning: Use this only when the element is from an AuthorDocumentFragment and not from the current AuthorDocument content.
        All operations on nodes from the document model must be done using the AuthorDocumentController methods.
        If the element is part of the edited document, an java.lang.UnsupportedOperationException is thrown.
        Parameters:
        name - The name of the pseudo class. Let say :hover, :active, etc..
      • removePseudoClass

        void removePseudoClass​(java.lang.String name)
        Removes a pseudo class from the element. Warning: Use this only when the element is from an AuthorDocumentFragment and not from the current AuthorDocument content.
        All operations on nodes from the document model must be done using the AuthorDocumentController methods.
        If the element is part of the edited document, an java.lang.UnsupportedOperationException is thrown.
        Parameters:
        name - The name of the pseudo class. Let say :hover, :active, etc..
      • isEmptyCSS3

        boolean isEmptyCSS3()
        Checks if the element is empty (no content, or elements, may have PIs and Comments).
        Returns:
        true if the element is empty as defined here: http://www.w3.org/TR/css3-selectors/#empty-pseudo