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
Modifier and TypeMethodDescriptionDeprecated.This functionality is needed from the CSS style matcher, so it will eventually move there.booleanhasPseudoClass(String name) Checks if a pseudo class is set on the element.booleanChecks if the element is empty (no content, or elements, may have PIs and Comments).booleanDeprecated.voidremovePseudoClass(String name) Removes a pseudo class from the element.voidsetPseudoClass(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, isDescendentOfMethods inherited from interface ro.sync.ecss.extensions.api.node.AuthorParentNode
getContentNodes, getParentElement
-
Method Details
-
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.Check if this element is the first child element of the parent.- Returns:
- Returns true if element is the first child in parent.
-
getLocalName
String getLocalName()- Returns:
- The element local name.
-
hasPseudoClass
Checks if a pseudo class is set on the element.- Parameters:
name- The name of the pseudo class. Let say :hover, :active, etc..- Returns:
trueif the pseudo class is set on the element.
-
setPseudoClass
Sets a pseudo class on the element. Warning: Use this only when the element is from anAuthorDocumentFragmentand not from the currentAuthorDocumentcontent.
All operations on nodes from the document model must be done using theAuthorDocumentControllermethods.
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
Removes a pseudo class from the element. Warning: Use this only when the element is from anAuthorDocumentFragmentand not from the currentAuthorDocumentcontent.
All operations on nodes from the document model must be done using theAuthorDocumentControllermethods.
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
-