Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class UnImplNode

extends Object
implements Node, Element, NodeList, Document
Class Inheritance
All Implemented Interfaces
org.w3c.dom.Document, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.Element
Imports
com.sun.org.apache.xml.internal.res.XMLErrorResources, .XMLMessages, org.w3c.dom.Attr, .CDATASection, .Comment, .DOMException, .DOMImplementation, .Document, .DocumentFragment, .DocumentType, .Element, .EntityReference, .NamedNodeMap, .Node, .NodeList, .ProcessingInstruction, .Text, .UserDataHandler, .DOMConfiguration, .TypeInfo

To be subclassed by classes that wish to fake being nodes.

Field Summary

Modifier and TypeField and Description
protected String
actualEncoding

Experimental DOM Level 3 feature: Document actualEncoding

protected String
fDocumentURI

Experimental DOM Level 3 feature: documentURI

private String
private boolean
private String

Constructor Summary

AccessConstructor and Description
public
UnImplNode()

Constructor UnImplNode

Method Summary

Modifier and TypeMethod and Description
public Node
adoptNode(Node
The node to move into this document.
source
)

Implements org.w3c.dom.Document.adoptNode.

NEEDSDOC Method adoptNode NEEDSDOC @param source NEEDSDOC (adoptNode) @return

public Node

Returns:

null
appendChild
(Node
New node to append to the list of this node's children
newChild
)

Implements org.w3c.dom.Node.appendChild.

Unimplemented.

public void
appendData(String
String data to append
arg
)

Unimplemented.

public Node

Returns:

null
cloneNode
(boolean
Flag indicating whether to clone deep (clone member variables)
deep
)

Implements org.w3c.dom.Node.cloneNode.

Unimplemented.

public short

Returns:

Returns how the given node is positioned relatively to this node.
compareDocumentPosition
(Node
The node to compare against this node.
other
)

Implements org.w3c.dom.Node.compareDocumentPosition.

Compares a node with this node with regard to their position in the document.

public Attr

Returns:

null
createAttribute
(String
Attribute name
name
)

Implements org.w3c.dom.Document.createAttribute.

Unimplemented.

public Attr

Returns:

null
createAttributeNS
(String
Namespace URI of the attribute
namespaceURI
,
String
Qualified name of the attribute
qualifiedName
)

Implements org.w3c.dom.Document.createAttributeNS.

Unimplemented.

public CDATASection

Returns:

null
createCDATASection
(String
Data for CDATA section
data
)

Implements org.w3c.dom.Document.createCDATASection.

Unimplemented.

public Comment

Returns:

null
createComment
(String
Data for comment
data
)

Implements org.w3c.dom.Document.createComment.

Unimplemented.

public DocumentFragment
public Element

Returns:

null
createElement
(String
Element tag name
tagName
)

Implements org.w3c.dom.Document.createElement.

Unimplemented.

public Element

Returns:

null
createElementNS
(String
Namespace URI for the element
namespaceURI
,
String
Qualified name of the element
qualifiedName
)

Implements org.w3c.dom.Document.createElementNS.

Unimplemented.

public EntityReference

Returns:

null
createEntityReference
(String
Entity Reference name
name
)

Implements org.w3c.dom.Document.createEntityReference.

Unimplemented.

public ProcessingInstruction

Returns:

null
createProcessingInstruction
(String
Target for Processing instruction
target
,
String
Data for Processing instruction
data
)

Implements org.w3c.dom.Document.createProcessingInstruction.

Unimplemented.

public Text

Returns:

null
createTextNode
(String
Data for text node
data
)

Implements org.w3c.dom.Document.createTextNode.

Unimplemented.

public void
deleteData(int
Start offset of substring to delete.
offset
,
int
The length of the substring to delete.
count
)

Unimplemented.

public void
error(String
Message Key for the error
msg
)

Throw an error.

public void
error(String
Message Key for the error
msg
,
Object[]
Array of arguments to be used in the error message
args
)

Throw an error.

public String
getActualEncoding()

DOM Level 3 WD - Experimental.

public String

Returns:

null
getAttribute
(String
Name of attribute to get
name
)

Implements org.w3c.dom.Element.getAttribute.

Unimplemented.

public Attr

Returns:

null
getAttributeNode
(String
Attribute node name
name
)

Implements org.w3c.dom.Element.getAttributeNode.

Unimplemented.

public Attr

Returns:

null
getAttributeNodeNS
(String
Namespace URI of attribute node to get
namespaceURI
,
String
Local part of qualified name of attribute node to get
localName
)

Implements org.w3c.dom.Element.getAttributeNodeNS.

Unimplemented.

public String

Returns:

null
getAttributeNS
(String
Namespace URI of attribute node to get
namespaceURI
,
String
Local part of qualified name of attribute node to get
localName
)

Implements org.w3c.dom.Element.getAttributeNS.

Unimplemented.

public NamedNodeMap

Returns:

null
getAttributes
()

Implements org.w3c.dom.Node.getAttributes.

Unimplemented.

public String
getBaseURI()

Implements org.w3c.dom.Node.getBaseURI.

The absolute base URI of this node or null if undefined.

public NodeList

Returns:

null
getChildNodes
()

Implements org.w3c.dom.Node.getChildNodes.

Unimplemented.

public DocumentType

Returns:

null
getDoctype
()

Implements org.w3c.dom.Document.getDoctype.

Unimplemented.

public Element

Returns:

null
getDocumentElement
()

Implements org.w3c.dom.Document.getDocumentElement.

Unimplemented.

public String
getDocumentURI()

Implements org.w3c.dom.Document.getDocumentURI.

DOM Level 3 WD - Experimental.

public DOMConfiguration
getDomConfig()

Implements org.w3c.dom.Document.getDomConfig.

The configuration used when Document.normalizeDocument is invoked.

public Element

Returns:

null
getElementById
(String
ID of the element to get
elementId
)

Implements org.w3c.dom.Document.getElementById.

Unimplemented.

public NodeList
public NodeList

Returns:

null
getElementsByTagNameNS
(String
Namespace URI of the element
namespaceURI
,
String
Local part of qualified name of the element
localName
)

Implements org.w3c.dom.Element.getElementsByTagNameNS, org.w3c.dom.Document.getElementsByTagNameNS.

Unimplemented.

public Object

Returns:

Returns an object which implements the specialized APIs of the specified feature and version, if any, or null if there is no object which implements interfaces associated with that feature. If the DOMObject returned by this method implements the Node interface, it must delegate to the primary core Node and not return results inconsistent with the primary core Node such as attributes, childNodes, etc.
getFeature
(String
The name of the feature requested (case-insensitive).
feature
,
String
This is the version number of the feature to test. If the version is null or the empty string, supporting any version of the feature will cause the method to return an object that supports at least one version of the feature.
version
)

Implements org.w3c.dom.Node.getFeature.

This method returns a specialized object which implements the specialized APIs of the specified feature and version.

public Node

Returns:

null
getFirstChild
()

Implements org.w3c.dom.Node.getFirstChild.

Unimplemented.

public DOMImplementation

Returns:

null
getImplementation
()

Implements org.w3c.dom.Document.getImplementation.

Unimplemented.

public String
public Node

Returns:

null
getLastChild
()

Implements org.w3c.dom.Node.getLastChild.

Unimplemented.

public int

Returns:

0
getLength
()

Implements org.w3c.dom.NodeList.getLength.

Unimplemented.

public String

Returns:

null
getLocalName
()

Implements org.w3c.dom.Node.getLocalName.

Unimplemented.

public String

Returns:

null
getNamespaceURI
()

Implements org.w3c.dom.Node.getNamespaceURI.

Unimplemented.

public Node

Returns:

null
getNextSibling
()

Implements org.w3c.dom.Node.getNextSibling.

Unimplemented.

public String

Returns:

null
getNodeName
()

Implements org.w3c.dom.Node.getNodeName.

Unimplemented.

public short

Returns:

0
getNodeType
()

Implements org.w3c.dom.Node.getNodeType.

Unimplemented.

public String

Returns:

null
getNodeValue
()

Implements org.w3c.dom.Node.getNodeValue.

Unimplemented.

public Document

Returns:

null
getOwnerDocument
()

Implements org.w3c.dom.Node.getOwnerDocument.

Unimplemented.

public Element

Returns:

null
getOwnerElement
()

Unimplemented.

public Node

Returns:

null
getParentNode
()

Implements org.w3c.dom.Node.getParentNode.

Unimplemented.

public String

Returns:

null
getPrefix
()

Implements org.w3c.dom.Node.getPrefix.

Unimplemented.

public Node

Returns:

null
getPreviousSibling
()

Implements org.w3c.dom.Node.getPreviousSibling.

Unimplemented.

public TypeInfo

Returns:

TypeInfo
getSchemaTypeInfo
()

Implements org.w3c.dom.Element.getSchemaTypeInfo.

Method getSchemaTypeInfo.

public boolean

Returns:

False
getSpecified
()

Unimplemented.

public boolean
getStandalone()

EXPERIMENTAL!

public boolean
public String

Returns:

null
getTagName
()

Implements org.w3c.dom.Element.getTagName.

Unimplemented.

public String
getTextContent()

Implements org.w3c.dom.Node.getTextContent.

This attribute returns the text content of this node and its descendants.

public Object

Returns:

Returns the DOMObject associated to the given key on this node, or null if there was none.
getUserData
(String
The key the object is associated to.
key
)

Implements org.w3c.dom.Node.getUserData.

Retrieves the object associated to a key on a this node.

public String
getVersion()

EXPERIMENTAL!

public String
getWholeText()

DOM Level 3 WD - Experimental.

public String
getXmlEncoding()

Implements org.w3c.dom.Document.getXmlEncoding.

An attribute specifying, as part of the XML declaration, the encoding of this document.

public boolean
getXmlStandalone()

Implements org.w3c.dom.Document.getXmlStandalone.

An attribute specifying, as part of the XML declaration, whether this document is standalone.

public String
getXmlVersion()

Implements org.w3c.dom.Document.getXmlVersion.

An attribute specifying, as part of the XML declaration, the version number of this document.

public boolean

Returns:

false
hasAttribute
(String
Name of an attribute
name
)

Implements org.w3c.dom.Element.hasAttribute.

Unimplemented.

public boolean

Returns:

false
hasAttributeNS
(String name, String x)

Implements org.w3c.dom.Element.hasAttributeNS.

Unimplemented.

public boolean

Returns:

false
hasAttributes
()

Implements org.w3c.dom.Node.hasAttributes.

Unimplemented.

public boolean

Returns:

false
hasChildNodes
()

Implements org.w3c.dom.Node.hasChildNodes.

Unimplemented.

public Node

Returns:

null
importNode
(Node
The node to import.
importedNode
,
boolean
If true, recursively import the subtree under the specified node; if false, import only the node itself, as explained above. This has no effect on Attr , EntityReference, and Notation nodes.
deep
)

Implements org.w3c.dom.Document.importNode.

Unimplemented.

public Node

Returns:

null
insertBefore
(Node
New child node to insert
newChild
,
Node
Insert in front of this child
refChild
)

Implements org.w3c.dom.Node.insertBefore.

Unimplemented.

public void
insertData(int
Start offset of substring to insert.
offset
,
String
The (sub)string to insert.
arg
)

Unimplemented.

public boolean

Returns:

true if the specified namespaceURI is the default namespace, false otherwise.
isDefaultNamespace
(String
The namespace URI to look for.
namespaceURI
)

Implements org.w3c.dom.Node.isDefaultNamespace.

DOM Level 3: Experimental This method checks if the specified namespaceURI is the default namespace or not.

public boolean

Returns:

If the nodes, and possibly subtrees are equal, true otherwise false.
isEqualNode
(Node
The node to compare equality with.
arg
)

Implements org.w3c.dom.Node.isEqualNode.

Tests whether two nodes are equal.

public boolean
isId()

public boolean

Returns:

Returns true if the nodes are the same, false otherwise.
isSameNode
(Node
The node to test against.
other
)

Implements org.w3c.dom.Node.isSameNode.

Returns whether this node is the same node as the given one.

public boolean

Returns:

Returns false
isSupported
(String
The name of the feature to test. This is the same name which can be passed to the method hasFeature on DOMImplementation.
feature
,
String
This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return true.
version
)

Implements org.w3c.dom.Node.isSupported.

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.

public boolean
isWhitespaceInElementContent()

DOM Level 3 WD - Experimental.

public Node

Returns:

null
item
(int
index of a child of this node in its list of children
index
)

Implements org.w3c.dom.NodeList.item.

Unimplemented.

public String

Returns:

th URI for the namespace
lookupNamespaceURI
(String
The prefix to look for. If this parameter is null, the method will return the default namespace URI if any.
specifiedPrefix
)

Implements org.w3c.dom.Node.lookupNamespaceURI.

DOM Level 3 - Experimental: Look up the namespace URI associated to the given prefix, starting from this node.

public String

Returns:

the prefix for the namespace
lookupPrefix
(String namespaceURI)

Implements org.w3c.dom.Node.lookupPrefix.

DOM Level 3 - Experimental: Look up the prefix associated to the given namespace URI, starting from this node.

public void
normalize()

Implements org.w3c.dom.Node.normalize.

Unimplemented.

public void
normalizeDocument()

Implements org.w3c.dom.Document.normalizeDocument.

DOM Level 3 WD - Experimental Normalize document.

public void
removeAttribute(String
Attribute node name to remove from list of attributes
name
)

Implements org.w3c.dom.Element.removeAttribute.

Unimplemented.

public Attr

Returns:

null
removeAttributeNode
(Attr
Attribute to be removed from this node's list of attributes
oldAttr
)

Implements org.w3c.dom.Element.removeAttributeNode.

Unimplemented.

public void
removeAttributeNS(String
Namespace URI of attribute node to remove
namespaceURI
,
String
Local part of qualified name of attribute node to remove
localName
)

Implements org.w3c.dom.Element.removeAttributeNS.

Unimplemented.

public Node

Returns:

null
removeChild
(Node
Child to be removed
oldChild
)

Implements org.w3c.dom.Node.removeChild.

Unimplemented.

public Node
renameNode(Node
The node to rename.
n
,
String
The new namespace URI.
namespaceURI
,
String
The new qualified name.
name
)

Implements org.w3c.dom.Document.renameNode.

DOM Level 3 WD - Experimental.

public Node

Returns:

null
replaceChild
(Node
Replace existing child with this one
newChild
,
Node
Existing child to be replaced
oldChild
)

Implements org.w3c.dom.Node.replaceChild.

Unimplemented.

public void
replaceData(int
Start offset of substring to replace.
offset
,
int
The length of the substring to replace.
count
,
String
substring to replace with
arg
)

Unimplemented.

public Text
replaceWholeText(String content)

DOM Level 3 WD - Experimental.

public void
setActualEncoding(String value)

DOM Level 3 WD - Experimental.

public void
setAttribute(String
Name of attribute to set
name
,
String
Value of attribute
value
)

Implements org.w3c.dom.Element.setAttribute.

Unimplemented.

public Attr

Returns:

null
setAttributeNode
(Attr
Attribute node to be added to this node's list of attributes
newAttr
)

Implements org.w3c.dom.Element.setAttributeNode.

Unimplemented.

public Attr

Returns:

null
setAttributeNodeNS
(Attr
Attribute to set
newAttr
)

Implements org.w3c.dom.Element.setAttributeNodeNS.

Unimplemented.

public void
setAttributeNS(String
Namespace URI of attribute node to set
namespaceURI
,
String
qualified name of attribute
qualifiedName
,
String
value of attribute
value
)

Implements org.w3c.dom.Element.setAttributeNS.

Unimplemented.

public void
setData(String
data to set for this node
data
)

Set Node data

public void
setDocumentURI(String documentURI)

Implements org.w3c.dom.Document.setDocumentURI.

DOM Level 3 WD - Experimental.

public void
setIdAttribute(boolean id)

NON-DOM: set the type of this attribute to be ID type.

public void
setIdAttribute(String
The name of the attribute.
name
,
boolean
Whether the attribute is a of type ID.
makeId
)

Implements org.w3c.dom.Element.setIdAttribute.

DOM Level 3: register the given attribute node as an ID attribute

public void
setIdAttributeNode(Attr
The attribute node.
at
,
boolean
Whether the attribute is a of type ID.
makeId
)

Implements org.w3c.dom.Element.setIdAttributeNode.

DOM Level 3: register the given attribute node as an ID attribute

public void
setIdAttributeNS(String
The namespace URI of the attribute.
namespaceURI
,
String
The local name of the attribute.
localName
,
boolean
Whether the attribute is a of type ID.
makeId
)

Implements org.w3c.dom.Element.setIdAttributeNS.

DOM Level 3: register the given attribute node as an ID attribute

public void
setInputEncoding(String encoding)

EXPERIMENTAL!

public void
setNodeValue(String
Value to set this node to
nodeValue
)

Implements org.w3c.dom.Node.setNodeValue.

Unimplemented.

public void
setPrefix(String
Prefix to set for this node
prefix
)

Implements org.w3c.dom.Node.setPrefix.

Unimplemented.

public void
setStandalone(boolean standalone)

EXPERIMENTAL!

public void
setStrictErrorChecking(boolean strictErrorChecking)

Implements org.w3c.dom.Document.setStrictErrorChecking.

EXPERIMENTAL!

public void
setTextContent(String textContent)

Implements org.w3c.dom.Node.setTextContent.

This attribute returns the text content of this node and its descendants.

public Object
setUserData(String
The key to associate the object to.
key
,
Object
The object to associate to the given key, or null to remove any existing association to that key.
data
,
UserDataHandler
The handler to associate to that key, or null.
handler
)

Implements org.w3c.dom.Node.setUserData.

Associate an object to a key on this node.

public void
setValue(String
Value to set this node to
value
)

Unimplemented.

public void
setVersion(String version)

EXPERIMENTAL!

public void
setXmlEncoding(String xmlEncoding)

public void
setXmlStandalone(boolean xmlStandalone)

Implements org.w3c.dom.Document.setXmlStandalone.

An attribute specifying, as part of the XML declaration, whether this document is standalone.

public void
setXmlVersion(String xmlVersion)

Implements org.w3c.dom.Document.setXmlVersion.

An attribute specifying, as part of the XML declaration, the version number of this document.

public Text

Returns:

null, unimplemented
splitText
(int
Offset into text to split
offset
)

Unimplemented.

public String

Returns:

null
substringData
(int
Start offset of substring to extract.
offset
,
int
The length of the substring to extract.
count
)

Unimplemented.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait