|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xslt.UnImplNode
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 |
public UnImplNode()
Method Detail |
public Node appendChild(Node newChild) throws DOMException
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 nodenewChild
node, or
if the node to append is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
public boolean hasChildNodes()
true
if the node has any children,
false
if the node has no children.public short getNodeType()
public Node getParentNode()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public Node getNextSibling()
public int getLength()
public Node item(int index)
index
- Index into the collection.index
th position in the
NodeList
, or null
if that is not a valid
index.public Document getOwnerDocument()
public java.lang.String getTagName()
public java.lang.String getNodeName()
public void normalize()
public NodeList getElementsByTagName(java.lang.String name)
name
- The name of the tag to match on. The special value "*"
matches all tags.Element
nodes.public Attr removeAttributeNode(Attr oldAttr) throws DOMException
oldAttr
- The Attr
node to remove from the attribute
list.Attr
node that was removed.oldAttr
is not an
attribute of the element.public Attr setAttributeNode(Attr newAttr) throws DOMException
newAttr
- The Attr
node to add to the attribute list.newAttr
attribute replaces an existing
attribute, the replaced Attr
node is returned,
otherwise null
is returned.newAttr
was created from
a different document than the one that created the element.
newAttr
is already
an attribute of another Element
object. The DOM user
must explicitly clone Attr
nodes to re-use them in
other elements.public Attr getAttributeNode(java.lang.String name)
getAttributeNodeNS
method.name
- The name (nodeName
) of the attribute to
retrieve.Attr
node with the specified name (
nodeName
) or null
if there is no such
attribute.public void removeAttribute(java.lang.String name) throws DOMException
name
- The name of the attribute to remove.public void setAttribute(java.lang.String name, java.lang.String value) throws DOMException
name
- The name of the attribute to create or alter.value
- Value to set in string form.public java.lang.String getAttribute(java.lang.String name)
name
- The name of the attribute to retrieve.Attr
value as a string, or the empty string if
that attribute does not have a specified or default value.public boolean hasAttribute(java.lang.String name)
true
when an attribute with a given name is
specified on this element or has a default value, false
otherwise.name
- The name of the attribute to look for.true
if an attribute with the given name is
specified on this element or has a default value, false
otherwise.public boolean hasAttributeNS(java.lang.String name, java.lang.String x)
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.namespaceURI
- The namespace URI of the attribute to look for.localName
- The local name of the attribute to look for.true
if an attribute with the given local name and
namespace URI is specified or has a default value on this element,
false
otherwise.public boolean hasAttributes()
true
if this node has any attributes,
false
otherwise.public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
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.NodeList
object containing all the matched
Elements
.public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
newAttr
- The Attr
node to add to the attribute list.newAttr
attribute replaces an existing
attribute with the same local name and namespace URI , the
replaced Attr
node is returned, otherwise
null
is returned.newAttr
was created from
a different document than the one that created the element.
newAttr
is already
an attribute of another Element
object. The DOM user
must explicitly clone Attr
nodes to re-use them in
other elements.public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.Attr
node with the specified attribute local
name and namespace URI or null
if there is no such
attribute.public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException
namespaceURI
- The namespace URI of the attribute to remove.localName
- The local name of the attribute to remove.public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws DOMException
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.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/".public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.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
.public Node getPreviousSibling()
public Node cloneNode(boolean deep)
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
).public java.lang.String getNodeValue() throws DOMException
DOMString
variable on the implementation
platform.public void setNodeValue(java.lang.String nodeValue) throws DOMException
public NamedNodeMap getAttributes()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
newChild
- The node to insert.refChild
- The reference node, i.e., the node before which the
new node must be inserted.newChild
node, or
if the node to insert is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
refChild
is not a child
of this node.public Node replaceChild(Node newChild, Node oldChild) throws DOMException
newChild
- The new node to put in the child list.oldChild
- The node being replaced in the list.newChild
node, or
if the node to put in is one of this node's ancestors.
newChild
was created
from a different document than the one that created this node.
oldChild
is not a child
of this node.public Node removeChild(Node oldChild) throws DOMException
oldChild
- The node being removed.oldChild
is not a child
of this node.public boolean supports(java.lang.String feature, java.lang.String version)
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
.true
if the specified feature is supported
on this node, false
otherwise.public boolean isSupported(java.lang.String feature, java.lang.String version)
public java.lang.String getNamespaceURI()
public java.lang.String getPrefix()
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" .public void setPrefix(java.lang.String prefix) throws DOMException
public java.lang.String getLocalName()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |