org.apache.xalan.templates
Class ElemLiteralResult.Attribute

java.lang.Object
  extended by org.apache.xalan.templates.ElemLiteralResult.Attribute
All Implemented Interfaces:
Attr, Node
Enclosing class:
ElemLiteralResult

public class ElemLiteralResult.Attribute
extends Object
implements Attr


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
ElemLiteralResult.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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElemLiteralResult.Attribute

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

Method Detail

appendChild

public Node appendChild(Node newChild)
                 throws DOMException
Specified by:
appendChild in interface Node
Parameters:
newChild - New node to append to the list of this node's children
Throws:
DOMException
See Also:
Node

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Parameters:
deep - Flag indicating whether to clone deep (clone member variables)
Returns:
Returns a duplicate of this node
See Also:
Node

getAttributes

public NamedNodeMap getAttributes()
Specified by:
getAttributes in interface Node
Returns:
null
See Also:
Node

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface Node
Returns:
a NodeList containing no nodes.
See Also:
Node

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Returns:
null
See Also:
Node

getLastChild

public Node getLastChild()
Specified by:
getLastChild in interface Node
Returns:
null
See Also:
Node

getLocalName

public String getLocalName()
Specified by:
getLocalName in interface Node
Returns:
the local part of the qualified name of this node
See Also:
Node

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface Node
Returns:
The namespace URI of this node, or null if it is unspecified
See Also:
Node

getNextSibling

public Node getNextSibling()
Specified by:
getNextSibling in interface Node
Returns:
null
See Also:
Node

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node
Returns:
The name of the attribute
See Also:
Node

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node
Returns:
The node is an Attr
See Also:
Node

getNodeValue

public String getNodeValue()
                    throws DOMException
Specified by:
getNodeValue in interface Node
Returns:
The value of the attribute
Throws:
DOMException
See Also:
Node

getOwnerDocument

public Document getOwnerDocument()
Specified by:
getOwnerDocument in interface Node
Returns:
null
See Also:
Node

getParentNode

public Node getParentNode()
Specified by:
getParentNode in interface Node
Returns:
the containing element node
See Also:
Node

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface Node
Returns:
The namespace prefix of this node, or null if it is unspecified
See Also:
Node

getPreviousSibling

public Node getPreviousSibling()
Specified by:
getPreviousSibling in interface Node
Returns:
null
See Also:
Node

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface Node
Returns:
false
See Also:
Node

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node
Returns:
false
See Also:
Node

insertBefore

public Node insertBefore(Node newChild,
                         Node refChild)
                  throws DOMException
Specified by:
insertBefore in interface Node
Parameters:
newChild - New child node to insert
refChild - Insert in front of this child
Returns:
null
Throws:
DOMException
See Also:
Node

isSupported

public boolean isSupported(String feature,
                           String version)
Specified by:
isSupported in interface Node
Returns:
Returns false
Since:
DOM Level 2
See Also:
Node

normalize

public void normalize()
Specified by:
normalize in interface Node
See Also:
Node

removeChild

public Node removeChild(Node oldChild)
                 throws DOMException
Specified by:
removeChild in interface Node
Parameters:
oldChild - Child to be removed
Returns:
null
Throws:
DOMException
See Also:
Node

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
                  throws DOMException
Specified by:
replaceChild in interface Node
Parameters:
newChild - Replace existing child with this one
oldChild - Existing child to be replaced
Returns:
null
Throws:
DOMException
See Also:
Node

setNodeValue

public void setNodeValue(String nodeValue)
                  throws DOMException
Specified by:
setNodeValue in interface Node
Parameters:
nodeValue - Value to set this node to
Throws:
DOMException
See Also:
Node

setPrefix

public void setPrefix(String prefix)
               throws DOMException
Specified by:
setPrefix in interface Node
Parameters:
prefix - Prefix to set for this node
Throws:
DOMException
See Also:
Node

getName

public String getName()
Specified by:
getName in interface Attr
Returns:
The name of this attribute

getValue

public String getValue()
Specified by:
getValue in interface Attr
Returns:
The value of this attribute returned as string

getOwnerElement

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

getSpecified

public boolean getSpecified()
Specified by:
getSpecified in interface Attr
Returns:
true

setValue

public void setValue(String value)
              throws DOMException
Specified by:
setValue in interface Attr
Parameters:
value - Value to set this node to
Throws:
DOMException
See Also:
Attr

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Specified by:
getSchemaTypeInfo in interface Attr

isId

public boolean isId()
Specified by:
isId in interface Attr

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
Specified by:
setUserData in interface Node

getUserData

public Object getUserData(String key)
Specified by:
getUserData in interface Node

getFeature

public Object getFeature(String feature,
                         String version)
Specified by:
getFeature in interface Node

isEqualNode

public boolean isEqualNode(Node arg)
Specified by:
isEqualNode in interface Node

lookupNamespaceURI

public String lookupNamespaceURI(String specifiedPrefix)
Specified by:
lookupNamespaceURI in interface Node

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
Specified by:
isDefaultNamespace in interface Node

lookupPrefix

public String lookupPrefix(String namespaceURI)
Specified by:
lookupPrefix in interface Node

isSameNode

public boolean isSameNode(Node other)
Specified by:
isSameNode in interface Node

setTextContent

public void setTextContent(String textContent)
                    throws DOMException
Specified by:
setTextContent in interface Node
Throws:
DOMException

getTextContent

public String getTextContent()
                      throws DOMException
Specified by:
getTextContent in interface Node
Throws:
DOMException

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
Specified by:
compareDocumentPosition in interface Node
Throws:
DOMException

getBaseURI

public String getBaseURI()
Specified by:
getBaseURI in interface Node


Copyright ? 2005 Apache XML Project. All Rights Reserved.