Enhydra 3.1 API

org.apache.xalan.xslt
Class UnImplNode

java.lang.Object
  |
  +--org.apache.xalan.xslt.UnImplNode
Direct Known Subclasses:
ElemTemplateElement, ResultTreeFrag, Stylesheet

public class UnImplNode
extends java.lang.Object
implements Element, NodeList

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


Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
UnImplNode()
           
 
Method Summary
 Node appendChild(Node newChild)
          Unimplemented.
 Node cloneNode(boolean deep)
          Unimplemented.
 java.lang.String getAttribute(java.lang.String name)
          Unimplemented.
 Attr getAttributeNode(java.lang.String name)
          Retrieves an attribute node by name.
 Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
          Unimplemented.
 java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
          Unimplemented.
 NamedNodeMap getAttributes()
          Unimplemented.
 NodeList getChildNodes()
          Unimplemented.
 NodeList getElementsByTagName(java.lang.String name)
          Unimplemented.
 NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
          Unimplemented.
 Node getFirstChild()
          Unimplemented.
 Node getLastChild()
          Unimplemented.
 int getLength()
          Unimplemented.
 java.lang.String getLocalName()
          Unimplemented.
 java.lang.String getNamespaceURI()
          Unimplemented.
 Node getNextSibling()
          Unimplemented.
 java.lang.String getNodeName()
          Unimplemented.
 short getNodeType()
          Unimplemented.
 java.lang.String getNodeValue()
          Unimplemented.
 Document getOwnerDocument()
          Unimplemented.
 Node getParentNode()
          Unimplemented.
 java.lang.String getPrefix()
          Unimplemented.
 Node getPreviousSibling()
          Unimplemented.
 java.lang.String getTagName()
          Unimplemented.
 boolean hasAttribute(java.lang.String name)
          Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
 boolean hasAttributeNS(java.lang.String name, java.lang.String x)
          Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.
 boolean hasAttributes()
          Introduced in DOM Level 2.
 boolean hasChildNodes()
          Unimplemented.
 Node insertBefore(Node newChild, Node refChild)
          Unimplemented.
 boolean isSupported(java.lang.String feature, java.lang.String version)
          Unimplemented.
 Node item(int index)
          Unimplemented.
 void normalize()
          Unimplemented.
 void removeAttribute(java.lang.String name)
          Unimplemented.
 Attr removeAttributeNode(Attr oldAttr)
          Unimplemented.
 void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
          Unimplemented.
 Node removeChild(Node oldChild)
          Unimplemented.
 Node replaceChild(Node newChild, Node oldChild)
          Unimplemented.
 void setAttribute(java.lang.String name, java.lang.String value)
          Unimplemented.
 Attr setAttributeNode(Attr newAttr)
          Unimplemented.
 Attr setAttributeNodeNS(Attr newAttr)
          Unimplemented.
 void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
          Unimplemented.
 void setNodeValue(java.lang.String nodeValue)
          Unimplemented.
 void setPrefix(java.lang.String prefix)
          Unimplemented.
 boolean supports(java.lang.String feature, java.lang.String version)
          Unimplemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnImplNode

public UnImplNode()
Method Detail

appendChild

public Node appendChild(Node newChild)
                 throws DOMException
Unimplemented.
Tags copied from interface: Node
Parameters:
newChild - The node to add. If it is a DocumentFragment object, the entire contents of the document fragment are moved into the child list of this node
Returns:
The node added.
Throws:
DOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to append is one of this node's ancestors.
WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the node being appended is readonly.

hasChildNodes

public boolean hasChildNodes()
Unimplemented.
Tags copied from interface: Node
Returns:
true if the node has any children, false if the node has no children.

getNodeType

public short getNodeType()
Unimplemented.

getParentNode

public Node getParentNode()
Unimplemented.

getChildNodes

public NodeList getChildNodes()
Unimplemented.

getFirstChild

public Node getFirstChild()
Unimplemented.

getLastChild

public Node getLastChild()
Unimplemented.

getNextSibling

public Node getNextSibling()
Unimplemented.

getLength

public int getLength()
Unimplemented.
Specified by:
getLength in interface NodeList

item

public Node item(int index)
Unimplemented.
Specified by:
item in interface NodeList
Tags copied from interface: NodeList
Parameters:
index - Index into the collection.
Returns:
The node at the index th position in the NodeList , or null if that is not a valid index.

getOwnerDocument

public Document getOwnerDocument()
Unimplemented.

getTagName

public java.lang.String getTagName()
Unimplemented.
Specified by:
getTagName in interface Element

getNodeName

public java.lang.String getNodeName()
Unimplemented.

normalize

public void normalize()
Unimplemented.

getElementsByTagName

public NodeList getElementsByTagName(java.lang.String name)
Unimplemented.
Specified by:
getElementsByTagName in interface Element
Tags copied from interface: Element
Parameters:
name - The name of the tag to match on. The special value "*" matches all tags.
Returns:
A list of matching Element nodes.

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
Unimplemented.
Specified by:
removeAttributeNode in interface Element
Tags copied from interface: Element
Parameters:
oldAttr - The Attr node to remove from the attribute list.
Returns:
The Attr node that was removed.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldAttr is not an attribute of the element.

setAttributeNode

public Attr setAttributeNode(Attr newAttr)
                      throws DOMException
Unimplemented.
Specified by:
setAttributeNode in interface Element
Tags copied from interface: Element
Parameters:
newAttr - The Attr node to add to the attribute list.
Returns:
If the newAttr attribute replaces an existing attribute, the replaced Attr node is returned, otherwise null is returned.
Throws:
DOMException - WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.

getAttributeNode

public Attr getAttributeNode(java.lang.String name)
Description copied from interface: Element
Retrieves an attribute node by name.
To retrieve an attribute node by qualified name and namespace URI, use the getAttributeNodeNS method.
Specified by:
getAttributeNode in interface Element
Tags copied from interface: Element
Parameters:
name - The name (nodeName ) of the attribute to retrieve.
Returns:
The Attr node with the specified name ( nodeName ) or null if there is no such attribute.

removeAttribute

public void removeAttribute(java.lang.String name)
                     throws DOMException
Unimplemented.
Specified by:
removeAttribute in interface Element
Tags copied from interface: Element
Parameters:
name - The name of the attribute to remove.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
                  throws DOMException
Unimplemented.
Specified by:
setAttribute in interface Element
Tags copied from interface: Element
Parameters:
name - The name of the attribute to create or alter.
value - Value to set in string form.
Throws:
DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Unimplemented.
Specified by:
getAttribute in interface Element
Tags copied from interface: Element
Parameters:
name - The name of the attribute to retrieve.
Returns:
The Attr value as a string, or the empty string if that attribute does not have a specified or default value.

hasAttribute

public boolean hasAttribute(java.lang.String name)
Description copied from interface: Element
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.
Specified by:
hasAttribute in interface Element
Tags copied from interface: Element
Parameters:
name - The name of the attribute to look for.
Returns:
true if an attribute with the given name is specified on this element or has a default value, false otherwise.

hasAttributeNS

public boolean hasAttributeNS(java.lang.String name,
                              java.lang.String x)
Description copied from interface: Element
Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise. HTML-only DOM implementations do not need to implement this method.
Specified by:
hasAttributeNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the attribute to look for.
localName - The local name of the attribute to look for.
Returns:
true if an attribute with the given local name and namespace URI is specified or has a default value on this element, false otherwise.

hasAttributes

public boolean hasAttributes()
Introduced in DOM Level 2.
Tags copied from interface: Node
Returns:
true if this node has any attributes, false otherwise.

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
                                       java.lang.String localName)
Unimplemented.
Specified by:
getElementsByTagNameNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the elements to match on. The special value "*" matches all namespaces.
localName - The local name of the elements to match on. The special value "*" matches all local names.
Returns:
A new NodeList object containing all the matched Elements .

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr newAttr)
                        throws DOMException
Unimplemented.
Specified by:
setAttributeNodeNS in interface Element
Tags copied from interface: Element
Parameters:
newAttr - The Attr node to add to the attribute list.
Returns:
If the newAttr attribute replaces an existing attribute with the same local name and namespace URI , the replaced Attr node is returned, otherwise null is returned.
Throws:
DOMException - WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.

getAttributeNodeNS

public Attr getAttributeNodeNS(java.lang.String namespaceURI,
                               java.lang.String localName)
Unimplemented.
Specified by:
getAttributeNodeNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the attribute to retrieve.
localName - The local name of the attribute to retrieve.
Returns:
The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.

removeAttributeNS

public void removeAttributeNS(java.lang.String namespaceURI,
                              java.lang.String localName)
                       throws DOMException
Unimplemented.
Specified by:
removeAttributeNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the attribute to remove.
localName - The local name of the attribute to remove.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.

setAttributeNS

public void setAttributeNS(java.lang.String namespaceURI,
                           java.lang.String qualifiedName,
                           java.lang.String value)
                    throws DOMException
Unimplemented.
Specified by:
setAttributeNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the attribute to create or alter.
qualifiedName - The qualified name of the attribute to create or alter.
value - The value to set in string form.
Throws:
DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null or an empty string, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace", if the qualifiedName has a prefix that is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/", or if the qualifiedName is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/".

getAttributeNS

public java.lang.String getAttributeNS(java.lang.String namespaceURI,
                                       java.lang.String localName)
Unimplemented.
Specified by:
getAttributeNS in interface Element
Tags copied from interface: Element
Parameters:
namespaceURI - The namespace URI of the attribute to retrieve.
localName - The local name of the attribute to retrieve.
Returns:
The Attr value as a string, or an null if that attribute does not have a specified or default value. This is different from getAttribute which never return null .

getPreviousSibling

public Node getPreviousSibling()
Unimplemented.

cloneNode

public Node cloneNode(boolean deep)
Unimplemented.
Tags copied from interface: Node
Parameters:
deep - If true , recursively clone the subtree under the specified node; if false , clone only the node itself (and its attributes, if it is an Element ).
Returns:
The duplicate node.

getNodeValue

public java.lang.String getNodeValue()
                              throws DOMException
Unimplemented.
Tags copied from interface: Node
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

setNodeValue

public void setNodeValue(java.lang.String nodeValue)
                  throws DOMException
Unimplemented.

getAttributes

public NamedNodeMap getAttributes()
Unimplemented.

insertBefore

public Node insertBefore(Node newChild,
                         Node refChild)
                  throws DOMException
Unimplemented.
Tags copied from interface: Node
Parameters:
newChild - The node to insert.
refChild - The reference node, i.e., the node before which the new node must be inserted.
Returns:
The node being inserted.
Throws:
DOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to insert is one of this node's ancestors.
WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the node being inserted is readonly.
NOT_FOUND_ERR: Raised if refChild is not a child of this node.

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
                  throws DOMException
Unimplemented.
Tags copied from interface: Node
Parameters:
newChild - The new node to put in the child list.
oldChild - The node being replaced in the list.
Returns:
The node replaced.
Throws:
DOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to put in is one of this node's ancestors.
WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the new node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.

removeChild

public Node removeChild(Node oldChild)
                 throws DOMException
Unimplemented.
Tags copied from interface: Node
Parameters:
oldChild - The node being removed.
Returns:
The node removed.
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldChild is not a child of this node.

supports

public boolean supports(java.lang.String feature,
                        java.lang.String version)
Unimplemented.
Tags copied from interface: Node
Parameters:
feature - The name of the feature to test. This is the same name which can be passed to the method hasFeature on DOMImplementation .
version - 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 .
Returns:
Returns true if the specified feature is supported on this node, false otherwise.

isSupported

public boolean isSupported(java.lang.String feature,
                           java.lang.String version)
Unimplemented.

getNamespaceURI

public java.lang.String getNamespaceURI()
Unimplemented.

getPrefix

public java.lang.String getPrefix()
Unimplemented.
Tags copied from interface: Node
Throws:
DOMException - INVALID_CHARACTER_ERR: Raised if the specified prefix contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NAMESPACE_ERR: Raised if the specified prefix is malformed, if the namespaceURI of this node is null , if the specified prefix is "xml" and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace", if this node is an attribute and the specified prefix is "xmlns" and the namespaceURI of this node is different from "http://www.w3.org/2000/xmlns/", or if this node is an attribute and the qualifiedName of this node is "xmlns" .

setPrefix

public void setPrefix(java.lang.String prefix)
               throws DOMException
Unimplemented.

getLocalName

public java.lang.String getLocalName()
Unimplemented.

Enhydra 3.1 API