|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.message.MessageElement
Inner Class Summary | |
protected static class |
MessageElement.QNameAttr
|
Field Summary | |
protected boolean |
_isDirty
|
protected boolean |
_isRoot
|
protected org.xml.sax.Attributes |
attributes
|
protected DeserializationContext |
context
|
protected org.w3c.dom.Element |
elementRep
|
protected java.lang.String |
encodingStyle
Our encoding style, if any |
protected int |
endEventIndex
|
protected java.lang.String |
href
|
protected java.lang.String |
id
|
protected static org.apache.commons.logging.Log |
log
|
protected SOAPEnvelope |
message
|
protected java.lang.String |
name
|
java.util.ArrayList |
namespaces
|
protected java.lang.String |
namespaceURI
|
protected MessageElement |
parent
|
protected java.lang.String |
prefix
|
protected java.util.Vector |
qNameAttrs
|
protected SAX2EventRecorder |
recorder
|
protected int |
startContentsIndex
|
protected int |
startEventIndex
|
protected org.w3c.dom.Text |
textRep
|
protected QName |
typeQName
|
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.Element elem)
|
|
MessageElement(Name eltName)
|
|
MessageElement(QName name,
java.lang.Object value)
|
|
MessageElement(java.lang.String namespace,
java.lang.String localPart)
|
|
MessageElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.Object value)
|
|
MessageElement(java.lang.String localPart,
java.lang.String prefix,
java.lang.String namespace)
|
|
MessageElement(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
|
|
MessageElement(org.w3c.dom.Text text)
|
Method Summary | |
SOAPElement |
addAttribute(Name name,
java.lang.String value)
Adds an attribute with the specified name and value to this SOAPElement object. |
void |
addAttribute(java.lang.String namespace,
java.lang.String localName,
QName value)
|
void |
addAttribute(java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
|
void |
addAttribute(java.lang.String prefix,
java.lang.String namespace,
java.lang.String localName,
java.lang.String value)
|
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 name)
Creates a new SOAPElement object initialized with the
given Name object and adds the new element to this
SOAPElement object. |
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)
Creates a new SOAPElement object initialized with the
given String object and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix)
Creates a new SOAPElement object initialized with the
specified local name and prefix and adds the new element to this
SOAPElement object. |
SOAPElement |
addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
Creates a new SOAPElement object initialized with the
specified local name, prefix, and URI and adds the new element to this
SOAPElement object. |
void |
addMapping(Mapping map)
|
SOAPElement |
addNamespaceDeclaration(java.lang.String prefix,
java.lang.String uri)
Adds a namespace declaration with the specified prefix and URI to this SOAPElement object. |
SOAPElement |
addTextNode(java.lang.String s)
Text nodes are not supported. |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
org.w3c.dom.Node |
cloneNode(boolean deep)
|
void |
detachNode()
Break the relationship between this element and its parent, if any. |
java.util.Iterator |
getAllAttributes()
Returns an iterator over all of the attribute names in this SOAPElement object. |
org.w3c.dom.Document |
getAsDocument()
|
org.w3c.dom.Element |
getAsDOM()
|
java.lang.String |
getAsString()
|
java.lang.String |
getAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.NamedNodeMap |
getAttributes()
|
org.xml.sax.Attributes |
getAttributesEx()
|
java.lang.String |
getAttributeValue(Name name)
Returns the value of the attribute with the specified name. |
java.lang.String |
getAttributeValue(java.lang.String localName)
|
java.util.Iterator |
getChildElements()
Returns an iterator over all the immediate content of this element. |
java.util.Iterator |
getChildElements(Name name)
Returns an iterator over all the child elements with the specified name. |
org.w3c.dom.NodeList |
getChildNodes()
|
java.util.ArrayList |
getChildren()
|
org.xml.sax.Attributes |
getCompleteAttributes()
Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations. |
Name |
getElementName()
Returns the name of this SOAPElement
object. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getEncodingStyle()
Get the encoding style. |
SOAPEnvelope |
getEnvelope()
|
org.w3c.dom.Node |
getFirstChild()
|
Deserializer |
getFixupDeserializer()
|
java.lang.String |
getHref()
|
java.lang.String |
getID()
|
org.w3c.dom.Node |
getLastChild()
|
java.lang.String |
getLocalName()
|
java.lang.String |
getName()
|
java.util.Iterator |
getNamespacePrefixes()
Returns an iterator of namespace prefixes. |
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the URI of the namespace that has the given prefix. |
org.w3c.dom.Node |
getNextSibling()
|
java.lang.String |
getNodeName()
|
short |
getNodeType()
|
java.lang.String |
getNodeValue()
|
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()
|
SOAPElement |
getParentElement()
Returns the parent element of this Node object. |
org.w3c.dom.Node |
getParentNode()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getPrefix(java.lang.String namespaceURI)
|
org.w3c.dom.Node |
getPreviousSibling()
|
QName |
getQName()
|
MessageElement |
getRealElement()
|
SAX2EventRecorder |
getRecorder()
|
java.lang.String |
getTagName()
|
QName |
getType()
|
java.lang.String |
getValue()
Returns the the value of the immediate child of this Node
object if a child exists and its value is text. |
java.lang.Object |
getValueAsType(QName type)
|
java.lang.Object |
getValueAsType(QName type,
java.lang.Class cls)
|
java.util.Iterator |
getVisibleNamespacePrefixes()
Returns an Iterator over the namespace prefix
String s visible to this element. |
boolean |
hasAttribute(java.lang.String name)
|
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
boolean |
isDirty()
|
boolean |
isRoot()
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
|
protected org.xml.sax.helpers.AttributesImpl |
makeAttributesEditable()
|
void |
normalize()
|
void |
output(SerializationContext context)
This is the public output() method, which will always simply use the recorded SAX stream for this element if it is available. |
protected void |
outputImpl(SerializationContext context)
Subclasses can override |
void |
publishContents(org.xml.sax.ContentHandler handler)
|
void |
publishToHandler(org.xml.sax.ContentHandler handler)
|
void |
recycleNode()
No-opped - Axis does not recycle nodes. |
boolean |
removeAttribute(Name name)
Removes the attribute with the specified name. |
void |
removeAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
|
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
void |
removeChild(MessageElement child)
Remove a child element. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
void |
removeContents()
Detaches all children of this SOAPElement . |
boolean |
removeNamespaceDeclaration(java.lang.String prefix)
Removes the namespace declaration corresponding to the given prefix. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
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)
|
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
|
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
|
void |
setContentsIndex(int index)
|
void |
setDirty(boolean dirty)
|
void |
setEncodingStyle(java.lang.String encodingStyle)
Sets the encoding style for this SOAPElement
object to one specified. |
void |
setEndIndex(int endIndex)
|
void |
setEnvelope(SOAPEnvelope env)
|
void |
setFixupDeserializer(Deserializer dser)
|
void |
setName(java.lang.String name)
|
void |
setNamespaceURI(java.lang.String nsURI)
|
void |
setNodeValue(java.lang.String nodeValue)
|
void |
setNSMappings(java.util.ArrayList namespaces)
|
void |
setObjectValue(java.lang.Object newValue)
Sets value of this node to an Object. |
void |
setParentElement(SOAPElement parent)
Sets the parent of this Node object to the given
SOAPElement object. |
void |
setPrefix(java.lang.String prefix)
|
void |
setQName(QName qName)
|
void |
setRecorder(SAX2EventRecorder rec)
|
void |
setType(QName qname)
|
void |
setValue(java.lang.String s)
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
protected java.lang.String name
protected java.lang.String prefix
protected java.lang.String namespaceURI
protected transient org.xml.sax.Attributes attributes
protected java.lang.String id
protected java.lang.String href
protected boolean _isRoot
protected SOAPEnvelope message
protected boolean _isDirty
protected transient DeserializationContext context
protected transient QName typeQName
protected java.util.Vector qNameAttrs
protected transient SAX2EventRecorder recorder
protected int startEventIndex
protected int startContentsIndex
protected int endEventIndex
protected org.w3c.dom.Element elementRep
protected org.w3c.dom.Text textRep
protected MessageElement parent
public java.util.ArrayList namespaces
protected java.lang.String encodingStyle
Constructor Detail |
public MessageElement()
public MessageElement(java.lang.String namespace, java.lang.String localPart)
public MessageElement(java.lang.String localPart, java.lang.String prefix, java.lang.String namespace)
public MessageElement(Name eltName)
public MessageElement(java.lang.String namespace, java.lang.String localPart, java.lang.Object value)
public MessageElement(QName name, java.lang.Object value)
public MessageElement(org.w3c.dom.Element elem)
public MessageElement(org.w3c.dom.Text text)
public MessageElement(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext context) throws AxisFault
Method Detail |
public void setFixupDeserializer(Deserializer dser)
public Deserializer getFixupDeserializer()
public void setEndIndex(int endIndex)
public boolean isDirty()
public void setDirty(boolean dirty)
public boolean isRoot()
public java.lang.String getID()
public java.lang.String getHref()
public org.xml.sax.Attributes getAttributesEx()
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface org.w3c.dom.Node
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
public org.xml.sax.Attributes getCompleteAttributes()
public java.lang.String getName()
public void setName(java.lang.String name)
public QName getQName()
public void setQName(QName qName)
public java.lang.String getPrefix()
getPrefix
in interface org.w3c.dom.Node
public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
public void setPrefix(java.lang.String prefix)
setPrefix
in interface org.w3c.dom.Node
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public void normalize()
normalize
in interface org.w3c.dom.Node
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
public void setNamespaceURI(java.lang.String nsURI)
public QName getType()
public void setType(QName qname)
public SAX2EventRecorder getRecorder()
public void setRecorder(SAX2EventRecorder rec)
public java.lang.String getEncodingStyle()
getEncodingStyle
in interface SOAPElement
public void removeContents()
SOAPElement
SOAPElement
.
This method is useful for rolling back the construction of partially
completed SOAPHeaders
and SOAPBodys
in
reparation for sending a fault when an error condition is detected. It is
also useful for recycling portions of a document within a SOAP message.
removeContents
in interface SOAPElement
public java.util.Iterator getVisibleNamespacePrefixes()
SOAPElement
Iterator
over the namespace prefix
String
s visible to this element. The prefixes returned by
this iterator can be passed to the method getNamespaceURI()
to retrieve the URI of each namespace.getVisibleNamespacePrefixes
in interface SOAPElement
javax.xml.soap.SOAPElement
SOAPElement
objectpublic 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 stylejava.lang.IllegalArgumentException
- if
there was a problem in the encoding style being set.getEncodingStyle()
public void addChild(MessageElement el) throws SOAPException
public void removeChild(MessageElement child)
public java.util.ArrayList getChildren()
public void setContentsIndex(int index)
public void setNSMappings(java.util.ArrayList namespaces)
public java.lang.String getPrefix(java.lang.String namespaceURI)
public java.lang.String getNamespaceURI(java.lang.String prefix)
SOAPElement
getNamespaceURI
in interface SOAPElement
javax.xml.soap.SOAPElement
prefix
- a String
giving
the prefix of the namespace for which to searchString
with the uri of the namespace
that has the given prefixpublic java.lang.Object getObjectValue()
public java.lang.Object getObjectValue(java.lang.Class cls) throws java.lang.Exception
cls
- Class that contains top level deserializer metadatapublic 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.public java.lang.Object getValueAsType(QName type) throws java.lang.Exception
public java.lang.Object getValueAsType(QName type, java.lang.Class cls) throws java.lang.Exception
public void addAttribute(java.lang.String namespace, java.lang.String localName, QName value)
protected org.xml.sax.helpers.AttributesImpl makeAttributesEditable()
public void addAttribute(java.lang.String namespace, java.lang.String localName, java.lang.String value)
public void addAttribute(java.lang.String prefix, java.lang.String namespace, java.lang.String localName, java.lang.String 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)
public void setEnvelope(SOAPEnvelope env)
public SOAPEnvelope getEnvelope()
public MessageElement getRealElement()
public org.w3c.dom.Document getAsDocument() throws java.lang.Exception
public java.lang.String getAsString() throws java.lang.Exception
public org.w3c.dom.Element getAsDOM() throws java.lang.Exception
public void publishToHandler(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
public void publishContents(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
public final void output(SerializationContext context) throws java.lang.Exception
context
- the SerializationContext we will write to.protected void outputImpl(SerializationContext context) throws java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void addMapping(Mapping map)
public java.lang.String getValue()
Node
object if a child exists and its value is text.getValue
in interface Node
String
with the text of the immediate child of
this Node
object if (1) there is a child and
(2) the child is a Text
object;
null
otherwisepublic void setParentElement(SOAPElement parent) throws SOAPException
Node
Node
object to the given
SOAPElement
object.setParentElement
in interface Node
javax.xml.soap.Node
parent
- the SOAPElement
object to be set as
the parent of this Node
objectSOAPException
- if there is a problem in setting the
parent to the given elementgetParentElement()
public SOAPElement getParentElement()
Node
Node
object.
This method can throw an UnsupportedOperationException
if the tree is not kept in memory.getParentElement
in interface Node
javax.xml.soap.Node
SOAPElement
object that is the parent of
this Node
object or null
if this
Node
object is rootjava.lang.UnsupportedOperationException
- if the whole tree is not kept in memorysetParentElement(javax.xml.soap.SOAPElement)
public void detachNode()
detachNode
in interface Node
public void recycleNode()
recycleNode
in interface Node
public void setValue(java.lang.String s)
Node
setValue
in interface Node
javax.xml.soap.Node
value
- the text to setjava.lang.IllegalStateException
- if the node is not a Text node and
either has more than one child node or has a child node that
is not a Text nodepublic SOAPElement addChildElement(Name name) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
given Name
object and adds the new element to this
SOAPElement
object.addChildElement
in interface SOAPElement
javax.xml.soap.SOAPElement
name
- a Name
object with the XML name for the
new elementSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
given String
object and adds the new element to this
SOAPElement
object.addChildElement
in interface SOAPElement
javax.xml.soap.SOAPElement
localName
- a String
giving the local name for
the elementSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName, java.lang.String prefix) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
specified local name and prefix and adds the new element to this
SOAPElement
object.addChildElement
in interface SOAPElement
javax.xml.soap.SOAPElement
localName
- a String
giving the local name for
the new elementprefix
- a String
giving the namespace prefix for
the new elementSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(java.lang.String localName, java.lang.String prefix, java.lang.String uri) throws SOAPException
SOAPElement
SOAPElement
object initialized with the
specified local name, prefix, and URI and adds the new element to this
SOAPElement
object.addChildElement
in interface SOAPElement
javax.xml.soap.SOAPElement
localName
- a String
giving the local name for
the new elementprefix
- a String
giving the namespace prefix for
the new elementuri
- a String
giving the URI of the namespace
to which the new element belongsSOAPElement
object that was createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement
in interface SOAPElement
javax.xml.soap.SOAPElement
element
- the SOAPElement
to be added as a
new childSOAPException
- if there was an error in adding this
element as a childpublic SOAPElement addTextNode(java.lang.String s) throws SOAPException
addTextNode
in interface SOAPElement
javax.xml.soap.SOAPElement
text
- a String
object with the textual content to be addedSOAPElement
object into which
the new Text
object was insertedSOAPException
- if there is an error in creating the
new Text
objectpublic SOAPElement addAttribute(Name name, java.lang.String value) throws SOAPException
SOAPElement
SOAPElement
object.
addAttribute
in interface SOAPElement
javax.xml.soap.SOAPElement
name
- a Name
object with the name of the attributevalue
- a String
giving the value of the attributeSOAPElement
object into which the attribute was
insertedSOAPException
- if there is an error in creating the
Attributepublic SOAPElement addNamespaceDeclaration(java.lang.String prefix, java.lang.String uri) throws SOAPException
SOAPElement
SOAPElement
object.
addNamespaceDeclaration
in interface SOAPElement
javax.xml.soap.SOAPElement
prefix
- a String
giving the prefix of the namespaceuri
- a String
giving
the prefix of the namespaceSOAPElement
object into which this
namespace declaration was inserted.SOAPException
- if there is an error in creating the
namespacepublic java.lang.String getAttributeValue(Name name)
SOAPElement
getAttributeValue
in interface SOAPElement
javax.xml.soap.SOAPElement
name
- a Name
object with
the name of the attributeString
giving the value of the
specified attributepublic java.util.Iterator getAllAttributes()
SOAPElement
SOAPElement
object. The iterator can be
used to get the attribute names, which can then be passed to
the method getAttributeValue
to retrieve the
value of each attribute.getAllAttributes
in interface SOAPElement
javax.xml.soap.SOAPElement
public java.util.Iterator getNamespacePrefixes()
SOAPElement
getNamespaceURI
to retrieve
the URI of each namespace.getNamespacePrefixes
in interface SOAPElement
javax.xml.soap.SOAPElement
SOAPElement
objectpublic Name getElementName()
SOAPElement
SOAPElement
object.getElementName
in interface SOAPElement
javax.xml.soap.SOAPElement
Name
object with the name of this
SOAPElement
objectpublic boolean removeAttribute(Name name)
SOAPElement
removeAttribute
in interface SOAPElement
javax.xml.soap.SOAPElement
name
- the Name
object with
the name of the attribute to be removedtrue
if the attribute was removed
successfully; false
if it was notpublic boolean removeNamespaceDeclaration(java.lang.String prefix)
SOAPElement
removeNamespaceDeclaration
in interface SOAPElement
javax.xml.soap.SOAPElement
prefix
- a String
giving
the prefix for which to searchtrue
if the namespace declaration was
removed successfully; false
if it was
notpublic java.util.Iterator getChildElements()
SOAPElement
Text
objects as well
as SOAPElement
objects.getChildElements
in interface SOAPElement
javax.xml.soap.SOAPElement
SOAPElement
objectpublic java.util.Iterator getChildElements(Name name)
SOAPElement
getChildElements
in interface SOAPElement
javax.xml.soap.SOAPElement
name
- a Name
object with
the name of the child elements to be returnedIterator
object over all the elements
in this SOAPElement
object with the
specified namepublic java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
public boolean hasAttribute(java.lang.String name)
hasAttribute
in interface org.w3c.dom.Element
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
hasAttributeNS
in interface org.w3c.dom.Element
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Element
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNS
in interface org.w3c.dom.Element
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
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |