org.apache.xerces.dom
Class ElementNSImpl
- Cloneable, Element, EventTarget, Node, NodeList, Serializable, TypeInfo
public class ElementNSImpl
ElementNSImpl inherits from ElementImpl and adds namespace support.
The qualified name is the node name, and we store localName which is also
used in all queries. On the other hand we recompute the prefix when
necessary.
$Id: ElementNSImpl.java 449328 2006-09-23 22:58:23Z mrglavas $- Elena litani, IBM
- Neeraj Bajaj, Sun Microsystems
DOCUMENT_POSITION_CONTAINS , DOCUMENT_POSITION_DISCONNECTED , DOCUMENT_POSITION_FOLLOWING , DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC , DOCUMENT_POSITION_IS_CONTAINED , DOCUMENT_POSITION_PRECEDING , ELEMENT_DEFINITION_NODE , FIRSTCHILD , HASSTRING , ID , IGNORABLEWS , NORMALIZED , OWNED , READONLY , SPECIFIED , SYNCCHILDREN , SYNCDATA , TREE_POSITION_ANCESTOR , TREE_POSITION_DESCENDANT , TREE_POSITION_DISCONNECTED , TREE_POSITION_EQUIVALENT , TREE_POSITION_FOLLOWING , TREE_POSITION_PRECEDING , TREE_POSITION_SAME_NODE , flags , ownerNode |
String | getBaseURI() - DOM Level 3 WD - Experimental.
|
String | getLocalName() - Introduced in DOM Level 2.
|
String | getNamespaceURI() - Introduced in DOM Level 2.
|
String | getPrefix() - Introduced in DOM Level 2.
|
String | getTypeName()
|
String | getTypeNamespace()
|
boolean | isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) - Introduced in DOM Level 2.
|
void | setPrefix(String prefix) - Introduced in DOM Level 2.
|
void | setType(org.apache.xerces.xs.XSTypeDefinition type) - NON-DOM: setting type used by the DOM parser
|
protected void | setValues(CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName) - NON-DOM: resets this node and sets specified values for the node
|
cloneNode , getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getAttributes , getBaseURI , getDefaultAttributes , getElementsByTagName , getElementsByTagNameNS , getNodeName , getNodeType , getSchemaTypeInfo , getTagName , getTypeName , getTypeNamespace , getXercesAttribute , hasAttribute , hasAttributeNS , hasAttributes , isDerivedFrom , isEqualNode , normalize , reconcileDefaultAttributes , removeAttribute , removeAttributeNS , removeAttributeNode , setAttribute , setAttributeNS , setAttributeNode , setAttributeNodeNS , setIdAttribute , setIdAttributeNS , setIdAttributeNode , setOwnerDocument , setReadOnly , setXercesAttributeNode , setupDefaultAttributes , synchronizeData |
cloneNode , getChildNodes , getChildNodesUnoptimized , getFirstChild , getLastChild , getLength , getOwnerDocument , getTextContent , hasChildNodes , insertBefore , isEqualNode , item , normalize , removeChild , replaceChild , setOwnerDocument , setReadOnly , setTextContent , synchronizeChildren |
addEventListener , appendChild , changed , changes , cloneNode , compareDocumentPosition , compareTreePosition , dispatchEvent , getAttributes , getBaseURI , getChildNodes , getContainer , getFeature , getFirstChild , getLastChild , getLength , getLocalName , getNamespaceURI , getNextSibling , getNodeName , getNodeNumber , getNodeType , getNodeValue , getOwnerDocument , getParentNode , getPrefix , getPreviousSibling , getReadOnly , getTextContent , getUserData , getUserData , getUserDataRecord , hasAttributes , hasChildNodes , insertBefore , isDefaultNamespace , isEqualNode , isSameNode , isSupported , item , lookupNamespaceURI , lookupPrefix , needsSyncChildren , normalize , removeChild , removeEventListener , replaceChild , setNodeValue , setOwnerDocument , setPrefix , setReadOnly , setTextContent , setUserData , setUserData , synchronizeData , toString |
localName
protected String localName
DOM2: localName.
namespaceURI
protected String namespaceURI
DOM2: Namespace URI.
ElementNSImpl
protected ElementNSImpl()
ElementNSImpl
protected ElementNSImpl(CoreDocumentImpl ownerDocument,
String value)
ElementNSImpl
protected ElementNSImpl(CoreDocumentImpl ownerDocument,
String namespaceURI,
String qualifiedName)
throws DOMException
DOM2: Constructor for Namespace implementation.
ElementNSImpl
protected ElementNSImpl(CoreDocumentImpl ownerDocument,
String namespaceURI,
String qualifiedName,
String localName)
throws DOMException
getBaseURI
public String getBaseURI()
DOM Level 3 WD - Experimental.
Retrieve baseURI
- getBaseURI in interface ElementImpl
getLocalName
public String getLocalName()
Introduced in DOM Level 2.
Returns the local part of the qualified name of this node.
- getLocalName in interface NodeImpl
getNamespaceURI
public String getNamespaceURI()
Introduced in DOM Level 2.
The namespace URI of this node, or null if it is unspecified.
This is not a computed value that is the result of a namespace lookup based on
an examination of the namespace declarations in scope. It is merely the
namespace URI given at creation time.
For nodes created with a DOM Level 1 method, such as createElement
from the Document interface, this is null.
- getNamespaceURI in interface NodeImpl
getPrefix
public String getPrefix()
Introduced in DOM Level 2.
The namespace prefix of this node, or null if it is unspecified.
For nodes created with a DOM Level 1 method, such as createElement
from the Document interface, this is null.
- getPrefix in interface NodeImpl
isDerivedFrom
public boolean isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
int derivationMethod)
Introduced in DOM Level 2.
Checks if a type is derived from another by restriction. See:
http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-isDerivedFrom
- isDerivedFrom in interface ElementImpl
typeNamespaceArg
- The namspace of the ancestor type declarationtypeNameArg
- The name of the ancestor type declarationderivationMethod
- The derivation method
- boolean True if the type is derived by restriciton for the
reference type
setPrefix
public void setPrefix(String prefix)
throws DOMException
Introduced in DOM Level 2.
Note that setting this attribute changes the nodeName attribute, which holds the
qualified name, as well as the tagName and name attributes of the Element
and Attr interfaces, when applicable.
- setPrefix in interface NodeImpl
prefix
- The namespace prefix of this node, or null(empty string) if it is unspecified.
setType
public void setType(org.apache.xerces.xs.XSTypeDefinition type)
NON-DOM: setting type used by the DOM parser
setValues
protected void setValues(CoreDocumentImpl ownerDocument,
String namespaceURI,
String qualifiedName,
String localName)
NON-DOM: resets this node and sets specified values for the node
ownerDocument
- namespaceURI
- qualifiedName
- localName
-
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.