org.apache.xalan.templates

Class ElemLiteralResult.Attribute

Enclosing Class:
ElemLiteralResult
Implemented Interfaces:
Attr

public class ElemLiteralResult.Attribute
extends java.lang.Object
implements Attr

Constructor Summary

Attribute(AVT avt, Element elem)
Construct a Attr.

Method Summary

Node
appendChild(Node newChild)
Node
cloneNode(boolean deep)
short
compareDocumentPosition(Node other)
NamedNodeMap
getAttributes()
String
getBaseURI()
NodeList
getChildNodes()
Object
getFeature(String feature, String version)
Node
getFirstChild()
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 newChild, Node refChild)
boolean
isDefaultNamespace(String namespaceURI)
boolean
isEqualNode(Node arg)
boolean
isId()
boolean
isSameNode(Node other)
boolean
isSupported(String feature, String version)
String
lookupNamespaceURI(String specifiedPrefix)
String
lookupPrefix(String namespaceURI)
void
normalize()
Node
removeChild(Node oldChild)
Node
replaceChild(Node newChild, Node oldChild)
void
setNodeValue(String nodeValue)
void
setPrefix(String prefix)
void
setTextContent(String textContent)
Object
setUserData(String key, Object data, UserDataHandler handler)
void
setValue(String value)

Constructor Details

Attribute

public Attribute(AVT avt,
                 Element elem)
Construct a Attr.

Method Details

appendChild

public Node appendChild(Node newChild)
            throws DOMException
Parameters:
newChild - New node to append to the list of this node's children
See Also:
org.w3c.dom.Node

cloneNode

public Node cloneNode(boolean deep)
Parameters:
deep - Flag indicating whether to clone deep (clone member variables)
Returns:
Returns a duplicate of this node
See Also:
org.w3c.dom.Node

compareDocumentPosition

public short compareDocumentPosition(Node other)
            throws DOMException

getAttributes

public NamedNodeMap getAttributes()
Returns:
null
See Also:
org.w3c.dom.Node

getBaseURI

public String getBaseURI()

getChildNodes

public NodeList getChildNodes()
Returns:
a NodeList containing no nodes.
See Also:
org.w3c.dom.Node

getFeature

public Object getFeature(String feature,
                         String version)

getFirstChild

public Node getFirstChild()
Returns:
null
See Also:
org.w3c.dom.Node

getLastChild

public Node getLastChild()
Returns:
null
See Also:
org.w3c.dom.Node

getLocalName

public String getLocalName()
Returns:
the local part of the qualified name of this node
See Also:
org.w3c.dom.Node

getName

public String getName()
Returns:
The name of this attribute

getNamespaceURI

public String getNamespaceURI()
Returns:
The namespace URI of this node, or null if it is unspecified
See Also:
org.w3c.dom.Node

getNextSibling

public Node getNextSibling()
Returns:
null
See Also:
org.w3c.dom.Node

getNodeName

public String getNodeName()
Returns:
The name of the attribute
See Also:
org.w3c.dom.Node

getNodeType

public short getNodeType()
Returns:
The node is an Attr
See Also:
org.w3c.dom.Node

getNodeValue

public String getNodeValue()
            throws DOMException
Returns:
The value of the attribute
See Also:
org.w3c.dom.Node

getOwnerDocument

public Document getOwnerDocument()
Returns:
null
See Also:
org.w3c.dom.Node

getOwnerElement

public Element getOwnerElement()
Returns:
The Element node this attribute is attached to or null if this attribute is not in use

getParentNode

public Node getParentNode()
Returns:
the containing element node
See Also:
org.w3c.dom.Node

getPrefix

public String getPrefix()
Returns:
The namespace prefix of this node, or null if it is unspecified
See Also:
org.w3c.dom.Node

getPreviousSibling

public Node getPreviousSibling()
Returns:
null
See Also:
org.w3c.dom.Node

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()

getSpecified

public boolean getSpecified()
Returns:
true

getTextContent

public String getTextContent()
            throws DOMException

getUserData

public Object getUserData(String key)

getValue

public String getValue()
Returns:
The value of this attribute returned as string

hasAttributes

public boolean hasAttributes()
Returns:
false
See Also:
org.w3c.dom.Node

hasChildNodes

public boolean hasChildNodes()
Returns:
false
See Also:
org.w3c.dom.Node

insertBefore

public Node insertBefore(Node newChild,
                         Node refChild)
            throws DOMException
Parameters:
newChild - New child node to insert
refChild - Insert in front of this child
Returns:
null
See Also:
org.w3c.dom.Node

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)
Returns:
Returns false
Since:
DOM Level 2
See Also:
org.w3c.dom.Node

lookupNamespaceURI

public String lookupNamespaceURI(String specifiedPrefix)

lookupPrefix

public String lookupPrefix(String namespaceURI)

normalize

public void normalize()
See Also:
org.w3c.dom.Node

removeChild

public Node removeChild(Node oldChild)
            throws DOMException
Parameters:
oldChild - Child to be removed
Returns:
null
See Also:
org.w3c.dom.Node

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
            throws DOMException
Parameters:
newChild - Replace existing child with this one
oldChild - Existing child to be replaced
Returns:
null
See Also:
org.w3c.dom.Node

setNodeValue

public void setNodeValue(String nodeValue)
            throws DOMException
Parameters:
nodeValue - Value to set this node to
See Also:
org.w3c.dom.Node

setPrefix

public void setPrefix(String prefix)
            throws DOMException
Parameters:
prefix - Prefix to set for this node
See Also:
org.w3c.dom.Node

setTextContent

public void setTextContent(String textContent)
            throws DOMException

setUserData

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

setValue

public void setValue(String value)
            throws DOMException
Parameters:
value - Value to set this node to
See Also:
org.w3c.dom.Attr

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