public abstract class AbstractAmetysElement extends AbstractAmetysNode implements Element
Element.| Modifier and Type | Field and Description |
|---|---|
private Map<String,AmetysAttribute> |
_attsMap |
protected Element |
_parent
The parent Element or null if none.
|
private String |
_tagName |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
AbstractAmetysElement()
Constructor.
|
AbstractAmetysElement(Element parent)
Constructor.
|
AbstractAmetysElement(String tagName)
Constructor.
|
AbstractAmetysElement(String tagName,
Element parent)
Constructor.
|
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprivate Map<String,AmetysAttribute> _attsMap
public AbstractAmetysElement()
public AbstractAmetysElement(String tagName)
tagName - the tag name.public AbstractAmetysElement(Element parent)
parent - the parent Element, if any.public AbstractAmetysElement(String tagName, Element parent)
tagName - the tag name.parent - the parent Element, if any.public String getTagName()
getTagName in interface Elementpublic String getNodeName()
getNodeName in interface Nodepublic String getLocalName()
getLocalName in interface NodegetLocalName in class AbstractAmetysNodepublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface NodegetParentNode in class AbstractAmetysNodepublic NamedNodeMap getAttributes()
getAttributes in interface NodegetAttributes in class AbstractAmetysNodepublic String getAttribute(String name)
getAttribute in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS in interface ElementDOMExceptionpublic Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS in interface ElementDOMExceptionpublic boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class AbstractAmetysNodepublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS in interface ElementDOMExceptionpublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionprotected abstract Map<String,AmetysAttribute> _lookupAttributes()
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Elementpublic NodeList getElementsByTagName(String name)
getElementsByTagName in interface Elementpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS in interface ElementDOMExceptionpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionpublic Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionpublic void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMException