Package ro.sync.ecss.extensions.api
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
-
-
Field Summary
-
Fields inherited from interface ro.sync.ecss.extensions.api.node.AuthorNode
NODE_NAME_CDATA, NODE_NAME_COMMENT, NODE_NAME_DOCUMENT, NODE_NAME_PI, NODE_NAME_REFERENCE, NODE_TYPE_CDATA, NODE_TYPE_COMMENT, NODE_TYPE_DOCUMENT, NODE_TYPE_ELEMENT, NODE_TYPE_PI, NODE_TYPE_PSEUDO_DOCTYPE, NODE_TYPE_PSEUDO_ELEMENT, NODE_TYPE_REFERENCE, NODE_TYPE_TEXT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AuthorElementBaseInterface
getBeforeElement()
Deprecated.This functionality is needed from the CSS style matcher, so it will eventually move there.java.lang.String
getLocalName()
boolean
hasPseudoClass(java.lang.String name)
Checks if a pseudo class is set on the element.boolean
isEmptyCSS3()
Checks if the element is empty (no content, or elements, may have PIs and Comments).boolean
isFirstChildElement()
Deprecated.void
removePseudoClass(java.lang.String name)
Removes a pseudo class from the element.void
setPseudoClass(java.lang.String name)
Sets a pseudo class on the element.-
Methods inherited from interface ro.sync.ecss.extensions.api.node.AuthorNode
getContentIterator, getDisplayName, getEndOffset, getName, getNamespace, getNamespaceContext, getOwnerDocument, getParent, getStartOffset, getTextContent, getType, getXMLBaseURL, isDescendentOf
-
Methods inherited from interface ro.sync.ecss.extensions.api.node.AuthorParentNode
getContentNodes, getParentElement
-
-
-
-
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 anAuthorDocumentFragment
and not from the currentAuthorDocument
content.
All operations on nodes from the document model must be done using theAuthorDocumentController
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 anAuthorDocumentFragment
and not from the currentAuthorDocument
content.
All operations on nodes from the document model must be done using theAuthorDocumentController
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
-
-