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, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setUserData
private 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 Element
public String getNodeName()
getNodeName
in interface Node
public String getLocalName()
getLocalName
in interface Node
getLocalName
in class AbstractAmetysNode
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
getParentNode
in class AbstractAmetysNode
public NamedNodeMap getAttributes()
getAttributes
in interface Node
getAttributes
in class AbstractAmetysNode
public String getAttribute(String name)
getAttribute
in interface Element
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS
in interface Element
DOMException
public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS
in interface Element
DOMException
public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class AbstractAmetysNode
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS
in interface Element
DOMException
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
protected abstract Map<String,AmetysAttribute> _lookupAttributes()
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS
in interface Element
DOMException
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException