|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.NodeImpl org.apache.axis.message.MessageElement
MessageElement is the base type of nodes of the SOAP message parse tree. Note: it was made Serializable to help users of Apache SOAP who had exploited the serializability of the DOM tree to migrate to Axis.
Field Summary | |
java.util.ArrayList |
namespaces
|
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 | |
MessageElement()
No-arg constructor for building messages? |
|
MessageElement(org.w3c.dom.CharacterData text)
construct a text element. |
|
MessageElement(org.w3c.dom.Element elem)
create a node through a deep copy of the passed in element. |
|
MessageElement(Name eltName)
construct using a Name implementation, |
|
MessageElement(QName name)
constructor declaring the qualified name of the node |
|
MessageElement(QName name,
java.lang.Object value)
constructor declaring the qualified name of the node and its value |
|
MessageElement(java.lang.String namespace,
java.lang.String localPart)
constructor |
|
MessageElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.Object value)
constructor binding the internal object value field to the value parameter |
|
MessageElement(java.lang.String localPart,
java.lang.String prefix,
java.lang.String namespace)
constructor. |
|
MessageElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
org.apache.axis.encoding.DeserializationContext context)
Advanced constructor used for deserialization. |
Method Summary | |
SOAPElement |
addAttribute(Name attrName,
java.lang.String value)
add a new attribute |
void |
addAttribute(java.lang.String namespace,
java.lang.String localName,
QName value)
add an attribute to the qname vector. |
void |
addAttribute(java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
add a normal CDATA/text attribute. |
void |
addAttribute(java.lang.String attrPrefix,
java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
add an attribute. |
void |
addChild(MessageElement el)
Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement. |
SOAPElement |
addChildElement(Name childName)
add the child element |
SOAPElement |
addChildElement(SOAPElement element)
The added child must be an instance of MessageElement rather than an abitrary SOAPElement otherwise a (wrapped) ClassCastException will be thrown. |
SOAPElement |
addChildElement(java.lang.String localName)
add a child element in the message element's own namespace |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefixName)
add a child element |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String childPrefix,
java.lang.String uri)
add a child element |
void |
addMapping(Mapping map)
add a new namespace/prefix mapping |
SOAPElement |
addNamespaceDeclaration(java.lang.String prefix,
java.lang.String uri)
create a Mapping mapping and add to our namespace list. |
SOAPElement |
addTextNode(java.lang.String s)
add a text node to the document. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
void |
detachAllChildren()
remove all children. |
boolean |
equals(java.lang.Object obj)
equality test. |
java.util.Iterator |
getAllAttributes()
Get an interator to all the attributes of the node. |
org.w3c.dom.Document |
getAsDocument()
get the message element as a document. |
org.w3c.dom.Element |
getAsDOM()
create a DOM from the message element, by serializing and deserializing the element |
java.lang.String |
getAsString()
get the message element as a string. |
java.lang.String |
getAttribute(java.lang.String attrName)
get an attribute by name |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String attrName)
Deprecated. this is not implemented |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespace,
java.lang.String localName)
Deprecated. not implemented! |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
get the attribute with namespace/local name match. |
org.xml.sax.Attributes |
getAttributesEx()
get the attributes |
java.lang.String |
getAttributeValue(Name attrName)
Get the value of an attribute whose namespace and local name are described. |
java.lang.String |
getAttributeValue(java.lang.String localName)
get the value of an attribute |
MessageElement |
getChildElement(QName qname)
Convenience method to get the first matching child for a given QName. |
java.util.Iterator |
getChildElements()
get an iterator over the children This iterator may get confused if changes are made to the children while the iteration is in progress. |
java.util.Iterator |
getChildElements(Name childName)
get an iterator over child elements |
java.util.Iterator |
getChildElements(QName qname)
get an iterator over child elements |
java.util.List |
getChildren()
get a list of children |
org.xml.sax.Attributes |
getCompleteAttributes()
Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations. |
org.apache.axis.encoding.DeserializationContext |
getDeserializationContext()
Retrieve the DeserializationContext associated with this MessageElement |
Name |
getElementName()
get the full name of the element |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespace,
java.lang.String localName)
|
java.lang.String |
getEncodingStyle()
Get the encoding style. |
SOAPEnvelope |
getEnvelope()
get our current envelope |
org.apache.axis.encoding.Deserializer |
getFixupDeserializer()
|
java.lang.String |
getHref()
get a saved href |
java.lang.String |
getID()
get a saved ID |
int |
getLength()
The number of nodes in the list. |
java.lang.String |
getName()
get the local name of this element |
java.util.Iterator |
getNamespacePrefixes()
get an iterator of the prefixes. |
java.lang.String |
getNamespaceURI(java.lang.String searchPrefix)
map from a prefix to a namespace. |
java.lang.Object |
getObjectValue()
Returns value of the node as an object of registered type. |
java.lang.Object |
getObjectValue(java.lang.Class cls)
Returns value of the node as an object of registered type. |
org.w3c.dom.Document |
getOwnerDocument()
The Document object associated with this node. |
java.lang.String |
getPrefix(java.lang.String searchNamespaceURI)
get the prefix for a given namespace URI |
QName |
getQName()
get the fully qualified name of this element |
MessageElement |
getRealElement()
get the 'real' element -will follow hrefs. |
SAX2EventRecorder |
getRecorder()
get the event recorder |
java.lang.String |
getTagName()
|
QName |
getType()
get the element's type. |
java.lang.String |
getValue()
Get the value of the doc as a string. |
java.lang.Object |
getValueAsType(QName type)
|
java.lang.Object |
getValueAsType(QName type,
java.lang.Class cls)
This is deserialization logic mixed in to our element class. |
java.util.Iterator |
getVisibleNamespacePrefixes()
get an iterator over visible prefixes. |
boolean |
hasAttribute(java.lang.String attrName)
test for an attribute existing |
boolean |
hasAttributeNS(java.lang.String namespace,
java.lang.String localName)
Test for an attribute |
boolean |
isRoot()
get the is-root flag |
org.w3c.dom.Node |
item(int index)
get a child node |
void |
output(org.apache.axis.encoding.SerializationContext outputContext)
This is the public output() method, which will always simply use the recorded SAX stream for this element if it is available. |
void |
publishContents(org.xml.sax.ContentHandler handler)
replay the sax events to a SAX content handles |
void |
publishToHandler(org.xml.sax.ContentHandler handler)
replay the sax events to a handler |
boolean |
removeAttribute(Name attrName)
remove an element |
void |
removeAttribute(java.lang.String attrName)
remove a named attribute. |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
remove a an attribue |
void |
removeAttributeNS(java.lang.String namespace,
java.lang.String localName)
Remove an attribute. |
void |
removeContents()
remove all chidlren. |
boolean |
removeNamespaceDeclaration(java.lang.String namespacePrefix)
remove a namespace declaration. |
void |
setAllAttributes(org.xml.sax.Attributes attrs)
set all the attributes of this instance |
void |
setAttribute(java.lang.String name,
java.lang.String value)
set or update an attribute. |
void |
setAttribute(java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
Set an attribute, adding the attribute if it isn't already present in this element, and changing the value if it is. |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
Deprecated. this is not implemented |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
set an attribute as a node |
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
set an attribute or alter an existing one |
void |
setContentsIndex(int index)
set the index point of our content's starting in the event recording |
void |
setEncodingStyle(java.lang.String encodingStyle)
Sets the encoding style for this SOAPElement
object to one specified. |
void |
setEndIndex(int endIndex)
record the end index of the SAX recording. |
void |
setEnvelope(SOAPEnvelope env)
bind a a new soap envelope. |
void |
setFixupDeserializer(org.apache.axis.encoding.Deserializer dser)
|
void |
setName(java.lang.String name)
set the local part of this element's name |
void |
setNamespaceURI(java.lang.String nsURI)
set the namespace URI of the element |
void |
setNSMappings(java.util.ArrayList namespaces)
set a new namespace mapping list |
void |
setObjectValue(java.lang.Object newValue)
Sets value of this node to an Object. |
void |
setQName(QName qName)
set the name and namespace of this element |
void |
setRecorder(SAX2EventRecorder rec)
set the event recorder |
void |
setType(QName qname)
set the element's type |
void |
setValue(java.lang.String value)
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. |
java.lang.String |
toString()
Generate a string representation by serializing our contents This is not a lightweight operation, and is repeated whenever you call this method. |
Methods inherited from class org.apache.axis.message.NodeImpl |
appendChild, detachNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentElement, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isDirty, isSupported, normalize, recycleNode, removeChild, replaceChild, setDirty, setNodeValue, setOwnerDocument, setParentElement, setPrefix |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, recycleNode, setParentElement |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Field Detail |
public java.util.ArrayList namespaces
Constructor Detail |
public MessageElement()
public MessageElement(java.lang.String namespace, java.lang.String localPart)
namespace
- namespace of elementlocalPart
- local namepublic MessageElement(java.lang.String localPart, java.lang.String prefix, java.lang.String namespace)
localPart
- local nameprefix
- prefixnamespace
- namespacepublic MessageElement(Name eltName)
Name
implementation,
eltName
- MessageElement(String, String, String)
public MessageElement(java.lang.String namespace, java.lang.String localPart, java.lang.Object value)
namespace
- namespace of the elementlocalPart
- local namevalue
- value of the nodepublic MessageElement(QName name)
name
- naming informationpublic MessageElement(QName name, java.lang.Object value)
name
- naming informationvalue
- value of the nodepublic MessageElement(org.w3c.dom.Element elem)
elem
- name to copy frompublic MessageElement(org.w3c.dom.CharacterData text)
text
- text data. This is not copied; it is referred to in the MessageElement.public MessageElement(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context) throws AxisFault
DeserializationContext.registerElementByID(String, MessageElement)
;a new recorder is
created if needed.
#typeQName
field appropriately.
#href
field is set if there is a relevant href value
namespace
- namespace namespace of elementlocalPart
- local name local name of elementprefix
- prefix prefix of elementattributes
- attributes to save as our attributescontext
- deserialization context for this message element
AxisFault
- if the encoding style is not recognized/supportedMethod Detail |
public org.apache.axis.encoding.DeserializationContext getDeserializationContext()
public void setFixupDeserializer(org.apache.axis.encoding.Deserializer dser)
public org.apache.axis.encoding.Deserializer getFixupDeserializer()
public void setEndIndex(int endIndex)
endIndex
- end valuepublic boolean isRoot()
public java.lang.String getID()
public java.lang.String getHref()
public org.xml.sax.Attributes getAttributesEx()
NullAttributes.singleton
it is nullpublic org.w3c.dom.Node cloneNode(boolean deep)
parentNode
is null
.).
Element
copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it
contains unless it is a deep clone, since the text is contained in a
child Text
node. Cloning an Attribute
directly, as opposed to be cloned as part of an Element
cloning operation, returns a specified attribute (
specified
is true
). Cloning any other type
of node simply returns a copy of this node.
EntityReference
clone are readonly
. In addition, clones of unspecified Attr
nodes are
specified. And, cloning Document
,
DocumentType
, Entity
, and
Notation
nodes is implementation dependent.
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class NodeImpl
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 void setAllAttributes(org.xml.sax.Attributes attrs)
attrs
- a new attributes listpublic void detachAllChildren()
public org.xml.sax.Attributes getCompleteAttributes()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public QName getQName()
public void setQName(QName qName)
qName
- qualified namepublic void setNamespaceURI(java.lang.String nsURI)
nsURI
- new namespace URIpublic QName getType()
public void setType(QName qname)
qname
- public SAX2EventRecorder getRecorder()
public void setRecorder(SAX2EventRecorder rec)
rec
- public java.lang.String getEncodingStyle()
getEncodingStyle
in interface SOAPElement
setEncodingStyle(java.lang.String)
public void removeContents()
removeContents
in interface SOAPElement
public java.util.Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes
in interface SOAPElement
public void setEncodingStyle(java.lang.String encodingStyle) throws SOAPException
SOAPElement
object to one specified. The semantics of a null value,
as above in getEncodingStyle() are to just use the parent's value,
but null here means set to "".
setEncodingStyle
in interface SOAPElement
encodingStyle
- a String
giving the encoding style
java.lang.IllegalArgumentException
- if
there was a problem in the encoding style being set.
SOAPException
getEncodingStyle()
public void addChild(MessageElement el) throws SOAPException
SOAPException
public java.util.List getChildren()
public void setContentsIndex(int index)
index
- index value of the first event of our recorder.public void setNSMappings(java.util.ArrayList namespaces)
namespaces
- public java.lang.String getPrefix(java.lang.String searchNamespaceURI)
searchNamespaceURI
- namespace
public java.lang.String getNamespaceURI(java.lang.String searchPrefix)
getNamespaceURI
in interface SOAPElement
searchPrefix
-
public java.lang.Object getObjectValue()
public java.lang.Object getObjectValue(java.lang.Class cls) throws java.lang.Exception
cls
- Class that contains top level deserializer metadata
java.lang.Exception
public void setObjectValue(java.lang.Object newValue) throws SOAPException
Note that this method will log an error and no-op if there are any children in the MessageElement or if the MessageElement was constructed from XML.
newValue
- node's value or null.
SOAPException
public java.lang.Object getValueAsType(QName type) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getValueAsType(QName type, java.lang.Class cls) throws java.lang.Exception
MessageElement(String, String, String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)
type
- type to look up a deserializer for.cls
- class to use for looking up the deserializer. This takes precedence over the type field.
java.lang.Exception
public void addAttribute(java.lang.String namespace, java.lang.String localName, QName value)
namespace
- localName
- value
- public void addAttribute(java.lang.String namespace, java.lang.String localName, java.lang.String value)
namespace
- namespace URIlocalName
- local anmevalue
- valuepublic void addAttribute(java.lang.String attrPrefix, java.lang.String namespace, java.lang.String localName, java.lang.String value)
attrPrefix
- prefix.namespace
- namespace URIlocalName
- value
- public void setAttribute(java.lang.String namespace, java.lang.String localName, java.lang.String value)
public java.lang.String getAttributeValue(java.lang.String localName)
localName
-
public void setEnvelope(SOAPEnvelope env)
env
- public SOAPEnvelope getEnvelope()
public MessageElement getRealElement()
public org.w3c.dom.Document getAsDocument() throws java.lang.Exception
java.lang.Exception
getAsString()
public java.lang.String getAsString() throws java.lang.Exception
java.lang.Exception
- if anything went wrongpublic org.w3c.dom.Element getAsDOM() throws java.lang.Exception
java.lang.Exception
getAsString()
,
getAsDocument()
public void publishToHandler(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
handler
-
org.xml.sax.SAXException
public void publishContents(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
handler
-
org.xml.sax.SAXException
public final void output(org.apache.axis.encoding.SerializationContext outputContext) throws java.lang.Exception
output
in class NodeImpl
outputContext
- the SerializationContext we will write to.
java.lang.Exception
public java.lang.String toString()
Object.toString()
operation invoked instead.
public void addMapping(Mapping map)
map
- new mapping to addpublic SOAPElement addChildElement(Name childName) throws SOAPException
addChildElement
in interface SOAPElement
childName
- uri, prefix and local name of the element to add
SOAPException
SOAPElement.addChildElement(javax.xml.soap.Name)
public SOAPElement addChildElement(java.lang.String localName) throws SOAPException
addChildElement
in interface SOAPElement
localName
-
SOAPException
SOAPElement.addChildElement(String)
public SOAPElement addChildElement(java.lang.String localName, java.lang.String prefixName) throws SOAPException
addChildElement
in interface SOAPElement
localName
- prefixName
-
SOAPException
SOAPElement.addChildElement(String, String)
public SOAPElement addChildElement(java.lang.String localName, java.lang.String childPrefix, java.lang.String uri) throws SOAPException
addChildElement
in interface SOAPElement
localName
- childPrefix
- uri
-
SOAPException
SOAPElement.addChildElement(String, String, String)
public SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement
in interface SOAPElement
element
- the SOAPElement
to be added as a
new child
SOAPException
- if there was an error in adding this
element as a childSOAPElement.addChildElement(javax.xml.soap.SOAPElement)
public SOAPElement addTextNode(java.lang.String s) throws SOAPException
addTextNode
in interface SOAPElement
s
- a String
object with the textual content to be added
SOAPException
- if there is an error in creating the
new Text
objectSOAPElement.addTextNode(String)
public SOAPElement addAttribute(Name attrName, java.lang.String value) throws SOAPException
addAttribute
in interface SOAPElement
attrName
- name of the attributevalue
- a string value
SOAPException
SOAPElement.addAttribute(javax.xml.soap.Name, String)
public SOAPElement addNamespaceDeclaration(java.lang.String prefix, java.lang.String uri) throws SOAPException
Mapping
mapping and add to our namespace list.
addNamespaceDeclaration
in interface SOAPElement
prefix
- uri
-
SOAPException
- for any RuntimeException
caughtSOAPElement.addNamespaceDeclaration(String, String)
public java.lang.String getAttributeValue(Name attrName)
getAttributeValue
in interface SOAPElement
attrName
- qualified name of the attribute
SOAPElement.getAttributeValue(javax.xml.soap.Name)
public java.util.Iterator getAllAttributes()
getAllAttributes
in interface SOAPElement
SOAPElement.getAllAttributes()
public java.util.Iterator getNamespacePrefixes()
getNamespacePrefixes
in interface SOAPElement
SOAPElement.getNamespacePrefixes()
public Name getElementName()
getElementName
in interface SOAPElement
SOAPElement.getElementName()
public boolean removeAttribute(Name attrName)
removeAttribute
in interface SOAPElement
attrName
- name of the element
SOAPElement.removeAttribute(javax.xml.soap.Name)
public boolean removeNamespaceDeclaration(java.lang.String namespacePrefix)
removeNamespaceDeclaration
in interface SOAPElement
namespacePrefix
-
SOAPElement.removeNamespaceDeclaration(String)
public java.util.Iterator getChildElements()
getChildElements
in interface SOAPElement
SOAPElement.getChildElements()
public MessageElement getChildElement(QName qname)
qname
-
SOAPElement.getChildElements()
public java.util.Iterator getChildElements(QName qname)
qname
- namespace/element name of parts to find.
This iterator is not (currently) susceptible to change in the element
list during its lifetime, though changes in the contents of the elements
are picked up.
public java.util.Iterator getChildElements(Name childName)
getChildElements
in interface SOAPElement
childName
- namespace/element name of parts to find.
This iterator is not (currently) susceptible to change in the element
list during its lifetime, though changes in the contents of the elements
are picked up.
SOAPElement.getChildElements(javax.xml.soap.Name)
public java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
Element.getTagName()
public void removeAttribute(java.lang.String attrName) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
attrName
- name of the attributes
org.w3c.dom.DOMException
Element.removeAttribute(String)
public boolean hasAttribute(java.lang.String attrName)
hasAttribute
in interface org.w3c.dom.Element
attrName
- name of attribute (or null)
Element.hasAttribute(String)
public java.lang.String getAttribute(java.lang.String attrName)
getAttribute
in interface org.w3c.dom.Element
attrName
- of attribute
Element.getAttribute(String)
public void removeAttributeNS(java.lang.String namespace, java.lang.String localName) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
namespace
- namespace of attrlocalName
- local name
org.w3c.dom.DOMException
Element.removeAttributeNS(String, String)
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
name
- attribute namevalue
- attribute value
org.w3c.dom.DOMException
Element.setAttribute(String, String)
public boolean hasAttributeNS(java.lang.String namespace, java.lang.String localName)
hasAttributeNS
in interface org.w3c.dom.Element
namespace
- localName
-
Element.hasAttributeNS(String, String)
public org.w3c.dom.Attr getAttributeNode(java.lang.String attrName)
getAttributeNode
in interface org.w3c.dom.Element
attrName
-
Element.getAttributeNode(String)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
oldAttr
-
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
newAttr
-
org.w3c.dom.DOMException
Element.setAttributeNode(org.w3c.dom.Attr)
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
newAttr
-
org.w3c.dom.DOMException
Element.setAttributeNodeNS(org.w3c.dom.Attr)
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
getElementsByTagName
in interface org.w3c.dom.Element
tagName
- tag to look for.
Element.getElementsByTagName(String)
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- namespacelocalName
- name
Element.getAttributeNS(String, String)
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- namepsacequalifiedName
- qualified name of the attribuevalue
- value
org.w3c.dom.DOMException
Element.setAttributeNS(String, String, String)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespace, java.lang.String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
namespace
- namespacelocalName
- local name
Element.getAttributeNS(String, String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespace, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Element
namespace
- namespacelocalName
- local name of element
Element.getElementsByTagNameNS(String, String)
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
index
- index value
NodeList.item(int)
public int getLength()
length-1
inclusive.
getLength
in interface org.w3c.dom.NodeList
NodeList.getLength()
public boolean equals(java.lang.Object obj)
obj
-
toString()
public java.lang.String getValue()
getAsDOM()
so is a heavyweight operation.
getValue
in interface Node
getValue
in class NodeImpl
;
public void setValue(java.lang.String value)
Node
setValue
in interface Node
setValue
in class NodeImpl
value
- the text to setpublic org.w3c.dom.Document getOwnerDocument()
NodeImpl
Document
object associated with this node. This is
also the Document
object used to create new nodes. When
this node is a Document
or a DocumentType
which is not used with any Document
yet, this is
null
.
getOwnerDocument
in interface org.w3c.dom.Node
getOwnerDocument
in class NodeImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |