@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorElement
extends AuthorElementBaseInterface
NODE_NAME_CDATA, NODE_NAME_COMMENT, NODE_NAME_DOCUMENT, NODE_NAME_PI, 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| Modifier and Type | Method and Description |
|---|---|
AttrValue |
getAttribute(java.lang.String name)
Returns the value of an attribute with the given name.
|
java.lang.String |
getAttributeAtIndex(int index)
Returns the name of the attribute at the specified index.
|
java.lang.String |
getAttributeNamespace(java.lang.String attributePrefix)
Get an attribute's namespace.
|
int |
getAttributesCount()
Returns the number of the element attributes.
|
AuthorNode |
getChild(java.lang.String childLocalName)
Deprecated.
Use
getElementsByLocalName(String)[0] instead. |
AuthorElement[] |
getElementsByLocalName(java.lang.String localName)
Gets the children elements having the specified local name.
|
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this element.
|
java.lang.String |
getNamespace() |
void |
removeAttribute(java.lang.String qName)
Removes the given attribute from the element list of attributes.
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. |
void |
setAttribute(java.lang.String qName,
AttrValue attributeValue)
Sets the value of an attribute for this 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. |
void |
setName(java.lang.String newName)
Sets the qualified name of this 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. |
getBeforeElement, hasPseudoClass, isEmptyCSS3, isFirstChildElement, removePseudoClass, setPseudoClassgetContentNodes, getParentElementgetDisplayName, getEndOffset, getName, getNamespaceContext, getOwnerDocument, getParent, getStartOffset, getTextContent, getType, getXMLBaseURL, isDescendentOfAttrValue getAttribute(java.lang.String name)
null.name - Name of the attribute.AttrValue, or null if the attribute does not exist.java.lang.String getNamespace()
getNamespace in interface AuthorNodejava.lang.String getLocalName()
getLocalName in interface AuthorElementBaseInterface@Deprecated AuthorNode getChild(java.lang.String childLocalName)
getElementsByLocalName(String)[0] instead.childLocalName - The local name of the searched children.null if not found.AuthorElement[] getElementsByLocalName(java.lang.String localName)
localName - The local name of the searched children.AuthorElements) having the
specified local name or an empty array if none found.
if not found.int getAttributesCount()
java.lang.String getAttributeAtIndex(int index)
throws java.lang.ArrayIndexOutOfBoundsException
Note: the attributes are not given in document order.
index - The index of the searched attribute, 0 based.null if the attribute was not set correctly.java.lang.ArrayIndexOutOfBoundsException - if the specified index is not in range.void setAttribute(java.lang.String qName,
AttrValue attributeValue)
AuthorDocumentFragment and not from
the current AuthorDocument content.AuthorDocumentController methods.qName - The qualified name of the attribute to be set.attributeValue - The AttrValue to set. Must not be null.void setName(java.lang.String newName)
throws java.lang.IllegalArgumentException
AuthorDocumentFragment and not from
the current AuthorDocument content.AuthorDocumentController methods.newName - The new qualified name to be set.java.lang.IllegalArgumentException - When the given name is not a valid qualified name.void removeAttribute(java.lang.String qName)
AuthorDocumentFragment and not from
the current AuthorDocument content.AuthorDocumentController methods.qName - The qualified name of the attribute to remove.java.lang.String getAttributeNamespace(java.lang.String attributePrefix)
attributePrefix - Prefix of attribute.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.