public class ElementImpl extends NamespaceAwareNodeImpl implements Element
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
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 |
---|
ElementImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDomListener(DomListener listener) |
static Element |
createElement(DocumentImpl owner,
String namespaceURI,
String qualifiedName) |
String |
getAttribute(String name)
get the attribute with the given name
|
Attr |
getAttributeNode(String name) |
Attr |
getAttributeNodeNS(String namespaceURI,
String localName) |
String |
getAttributeNS(String namespaceURI,
String localName) |
NamedNodeMap |
getAttributes() |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
short |
getNodeType() |
String |
getNodeValue() |
TypeInfo |
getSchemaTypeInfo() |
boolean |
handleEvent(String eventName)
get the event Handler script for the event e.g.
|
boolean |
hasAttribute(String name) |
boolean |
hasAttributeNS(String namespaceURI,
String localName) |
boolean |
hasAttributes() |
static Element |
importNode(DocumentImpl document,
Element original,
boolean deep) |
void |
removeAttribute(String name) |
Attr |
removeAttributeNode(Attr oldAttr) |
void |
removeAttributeNS(String namespaceURI,
String localName) |
protected void |
reportPropertyChanged(String propertyName) |
void |
setAttribute(String name,
String value) |
Attr |
setAttributeNode(Attr newAttr) |
Attr |
setAttributeNodeNS(Attr newAttr) |
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value) |
void |
setIdAttribute(String name,
boolean isId) |
void |
setIdAttributeNode(Attr idAttr,
boolean isId) |
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId) |
void |
setNodeValue(String nodeValue) |
getLocalName, getNamespaceURI, getNodeName, getTagName, initialize, initialize
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildIfPermitted, getChildNodes, getElementsByTagName, getElementsByTagNames, getFeature, getFirstChild, getJavaPropertyName, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, initialize, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, preOrderIterator, preOrderIterator, preOrderIteratorAfterNode, preOrderIteratorAfterNode, removeChild, replaceChild, setPrefix, setTextContent, setUserData
clearCaches, createAnonymousFunctionName, get, getClassName, has, newScriptingEngine, put
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleScriptException, runScript, supportsScriptLanguage
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementsByTagName, getTagName
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData
public static Element createElement(DocumentImpl owner, String namespaceURI, String qualifiedName)
public void addDomListener(DomListener listener)
protected void reportPropertyChanged(String propertyName)
public short getNodeType()
getNodeType
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class NodeImpl
public NamedNodeMap getAttributes()
getAttributes
in interface Node
getAttributes
in class NodeImpl
public String getAttribute(String name)
getAttribute
in interface Element
name
- - the name of the attribute to getpublic void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
public boolean handleEvent(String eventName)
handleEvent
in interface ScriptingEventHandler
handleEvent
in class ScriptingEngineImpl
eventName
- public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Element
public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS
in interface Element
public static Element importNode(DocumentImpl document, Element original, boolean deep)
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
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
Copyright © 2012. All Rights Reserved.