org.apache.xml.dtm.ref.dom2dtm

Class DOM2DTMdefaultNamespaceDeclarationNode

Implemented Interfaces:
Attr

public class DOM2DTMdefaultNamespaceDeclarationNode
extends Object
implements Attr

This is a kluge to let us shove a declaration for xml: into the DOM2DTM model. Basically, it creates a proxy node in DOM space to carry the additional information. This is _NOT_ a full DOM implementation, and shouldn't be one since it sits alongside the DOM rather than becoming part of the DOM model. (This used to be an internal class within DOM2DTM. Moved out because I need to perform an instanceof operation on it to support a temporary workaround in DTMManagerDefault.) %REVIEW% What if the DOM2DTM was built around a DocumentFragment and there isn't a single root element? I think this fails that case... %REVIEW% An alternative solution would be to create the node _only_ in DTM space, but given how DOM2DTM is currently written I think this is simplest.

Method Summary

Node
appendChild(Node a)
Node
cloneNode(boolean deep)
short
compareDocumentPosition(Node other)
NamedNodeMap
getAttributes()
String
getBaseURI()
NodeList
getChildNodes()
Object
getFeature(String feature, String version)
Node
getFirstChild()
int
getHandleOfNode()
Non-DOM method, part of the temporary kluge %REVIEW% This would be a pruning problem, but since it will always be added to the root element and we prune on elements, we shouldn't have to worry.
Node
getLastChild()
String
getLocalName()
String
getName()
String
getNamespaceURI()
Node
getNextSibling()
String
getNodeName()
short
getNodeType()
String
getNodeValue()
Document
getOwnerDocument()
Element
getOwnerElement()
Node
getParentNode()
String
getPrefix()
Node
getPreviousSibling()
TypeInfo
getSchemaTypeInfo()
boolean
getSpecified()
String
getTextContent()
Object
getUserData(String key)
String
getValue()
boolean
hasAttributes()
boolean
hasChildNodes()
Node
insertBefore(Node a, Node b)
boolean
isDefaultNamespace(String namespaceURI)
boolean
isEqualNode(Node arg)
boolean
isId()
boolean
isSameNode(Node other)
boolean
isSupported(String feature, String version)
String
lookupNamespaceURI(String prefix)
String
lookupPrefix(String namespaceURI)
void
normalize()
Node
removeChild(Node a)
Node
replaceChild(Node a, Node b)
void
setNodeValue(String value)
void
setPrefix(String value)
void
setTextContent(String textContent)
Object
setUserData(String key, Object data, UserDataHandler handler)
void
setValue(String value)

Method Details

appendChild

public Node appendChild(Node a)

cloneNode

public Node cloneNode(boolean deep)

compareDocumentPosition

public short compareDocumentPosition(Node other)
            throws DOMException

getAttributes

public NamedNodeMap getAttributes()

getBaseURI

public String getBaseURI()

getChildNodes

public NodeList getChildNodes()

getFeature

public Object getFeature(String feature,
                         String version)

getFirstChild

public Node getFirstChild()

getHandleOfNode

public int getHandleOfNode()
Non-DOM method, part of the temporary kluge %REVIEW% This would be a pruning problem, but since it will always be added to the root element and we prune on elements, we shouldn't have to worry.

getLastChild

public Node getLastChild()

getLocalName

public String getLocalName()

getName

public String getName()

getNamespaceURI

public String getNamespaceURI()

getNextSibling

public Node getNextSibling()

getNodeName

public String getNodeName()

getNodeType

public short getNodeType()

getNodeValue

public String getNodeValue()

getOwnerDocument

public Document getOwnerDocument()

getOwnerElement

public Element getOwnerElement()

getParentNode

public Node getParentNode()

getPrefix

public String getPrefix()

getPreviousSibling

public Node getPreviousSibling()

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()

getSpecified

public boolean getSpecified()

getTextContent

public String getTextContent()
            throws DOMException

getUserData

public Object getUserData(String key)

getValue

public String getValue()

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

insertBefore

public Node insertBefore(Node a,
                         Node b)

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)

isEqualNode

public boolean isEqualNode(Node arg)

isId

public boolean isId()

isSameNode

public boolean isSameNode(Node other)

isSupported

public boolean isSupported(String feature,
                           String version)

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)

lookupPrefix

public String lookupPrefix(String namespaceURI)

normalize

public void normalize()

removeChild

public Node removeChild(Node a)

replaceChild

public Node replaceChild(Node a,
                         Node b)

setNodeValue

public void setNodeValue(String value)

setPrefix

public void setPrefix(String value)

setTextContent

public void setTextContent(String textContent)
            throws DOMException

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)

setValue

public void setValue(String value)

Copyright B) 2004 Apache XML Project. All Rights Reserved.