org.apache.axis.message
public class MessageElement extends NodeImpl implements SOAPElement, java.io.Serializable, org.w3c.dom.NodeList, java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MessageElement.QNameAttr
class that represents a qname in a the qNameAttrs vector.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_isRoot |
protected DeserializationContext |
context |
protected java.lang.String |
encodingStyle
Our encoding style, if any
|
protected int |
endEventIndex |
protected Deserializer |
fixupDeserializer
!!! TODO : Make sure this handles multiple targets
|
protected java.lang.String |
href |
protected java.lang.String |
id |
protected static org.apache.commons.logging.Log |
log |
protected SOAPEnvelope |
message |
java.util.ArrayList |
namespaces |
protected java.util.Vector |
qNameAttrs |
protected SAX2EventRecorder |
recorder |
protected int |
startContentsIndex |
protected int |
startEventIndex |
protected QName |
typeQName |
_isDirty, attributes, children, document, name, namespaceURI, parent, prefix, textRepATTRIBUTE_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 and Description |
|---|
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,
DeserializationContext context)
Advanced constructor used for deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
childDeepCloned(NodeImpl oldNode,
NodeImpl newNode) |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes.
|
protected java.lang.Object |
cloning()
protected clone method (not public)
copied status
-------------------
protected String name ; Y
protected String prefix ; Y
protected String namespaceURI ; Y
protected transient Attributes attributes Y
protected String id; Y?
protected String href; Y?
protected boolean _isRoot = true; Y?
protected SOAPEnvelope message = null; N?
protected transient DeserializationContext context; Y?
protected transient QName typeQName = null; Y?
protected Vector qNameAttrs = null; Y?
protected transient SAX2EventRecorder recorder = null; N?
protected int startEventIndex = 0; N?
protected int startContentsIndex = 0; N?
protected int endEventIndex = -1; N?
protected CharacterData textRep = null; Y?
protected MessageElement parent = null; N
public ArrayList namespaces = null; Y
protected String encodingStyle = null; N?
private Object objectValue = null; N?
|
void |
detachAllChildren()
remove all children.
|
boolean |
equals(java.lang.Object obj)
equality test.
|
protected MessageElement |
findElement(java.util.Vector vec,
java.lang.String namespace,
java.lang.String localPart) |
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.
|
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) |
protected org.w3c.dom.NodeList |
getElementsNS(org.w3c.dom.Element parentElement,
java.lang.String namespace,
java.lang.String localName)
helper method for recusively getting the element that has namespace URI and localname
|
java.lang.String |
getEncodingStyle()
Get the encoding style.
|
SOAPEnvelope |
getEnvelope()
get our current envelope
|
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.
|
protected java.lang.String |
getValueDOM() |
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(SerializationContext outputContext)
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 outputContext)
override point -output to a serialization context.
|
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(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.
|
appendChild, compareDocumentPosition, convertAttrSAXtoDOM, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTextContent, getUserData, hasAttributes, hasChildNodes, initializeChildren, insertBefore, isDefaultNamespace, isDirty, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, makeAttributesEditable, normalize, recycleNode, removeChild, replaceChild, setDirty, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setOwnerDocument, setParent, setParentElement, setPrefix, setTextContent, setUserDataclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdetachNode, getParentElement, recycleNode, setParentElementgetSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprotected static org.apache.commons.logging.Log log
protected java.lang.String id
protected java.lang.String href
protected boolean _isRoot
protected SOAPEnvelope message
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
public java.util.ArrayList namespaces
protected java.lang.String encodingStyle
protected Deserializer fixupDeserializer
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,
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 elementAxisFault - if the encoding style is not recognized/supportedpublic DeserializationContext getDeserializationContext()
public void setFixupDeserializer(Deserializer dser)
public 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.protected java.lang.Object cloning()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic 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 SOAPElementsetEncodingStyle(java.lang.String)public void removeContents()
removeContents in interface SOAPElementpublic java.util.Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes in interface SOAPElementpublic 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 SOAPElementencodingStyle - a String
giving the encoding stylejava.lang.IllegalArgumentException - if
there was a problem in the encoding style being set.SOAPExceptiongetEncodingStyle()public void addChild(MessageElement el) throws SOAPException
SOAPExceptionpublic 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 - namespacepublic java.lang.String getNamespaceURI(java.lang.String searchPrefix)
getNamespaceURI in interface SOAPElementsearchPrefix - 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 metadatajava.lang.Exceptionpublic 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.SOAPExceptionpublic java.lang.Object getValueAsType(QName type) throws java.lang.Exception
java.lang.Exceptionpublic 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.Exceptionpublic 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.ExceptiongetAsString()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.ExceptiongetAsString(),
getAsDocument()public void publishToHandler(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
handler - org.xml.sax.SAXExceptionpublic void publishContents(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
handler - org.xml.sax.SAXExceptionpublic final void output(SerializationContext outputContext) throws java.lang.Exception
protected void outputImpl(SerializationContext outputContext) throws java.lang.Exception
outputContext - destination.java.lang.Exception - if something went wrong.public java.lang.String toString()
Object.toString() operation invoked instead.toString in class java.lang.Objectpublic void addMapping(Mapping map)
map - new mapping to addpublic SOAPElement addChildElement(Name childName) throws SOAPException
addChildElement in interface SOAPElementchildName - uri, prefix and local name of the element to addSOAPExceptionSOAPElement.addChildElement(javax.xml.soap.Name)public SOAPElement addChildElement(java.lang.String localName) throws SOAPException
addChildElement in interface SOAPElementlocalName - SOAPExceptionSOAPElement.addChildElement(String)public SOAPElement addChildElement(java.lang.String localName, java.lang.String prefixName) throws SOAPException
addChildElement in interface SOAPElementlocalName - prefixName - SOAPExceptionSOAPElement.addChildElement(String, String)public SOAPElement addChildElement(java.lang.String localName, java.lang.String childPrefix, java.lang.String uri) throws SOAPException
addChildElement in interface SOAPElementlocalName - childPrefix - uri - SOAPExceptionSOAPElement.addChildElement(String, String, String)public SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement in interface SOAPElementelement - the SOAPElement to be added as a
new childSOAPException - 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 SOAPElements - a String object with the textual content to be addedSOAPException - 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 SOAPElementattrName - name of the attributevalue - a string valueSOAPExceptionSOAPElement.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 SOAPElementprefix - uri - SOAPException - for any RuntimeException caughtSOAPElement.addNamespaceDeclaration(String, String)public java.lang.String getAttributeValue(Name attrName)
getAttributeValue in interface SOAPElementattrName - qualified name of the attributeSOAPElement.getAttributeValue(javax.xml.soap.Name)public java.util.Iterator getAllAttributes()
getAllAttributes in interface SOAPElementSOAPElement.getAllAttributes()public java.util.Iterator getNamespacePrefixes()
getNamespacePrefixes in interface SOAPElementSOAPElement.getNamespacePrefixes()public Name getElementName()
getElementName in interface SOAPElementSOAPElement.getElementName()public boolean removeAttribute(Name attrName)
removeAttribute in interface SOAPElementattrName - name of the elementSOAPElement.removeAttribute(javax.xml.soap.Name)public boolean removeNamespaceDeclaration(java.lang.String namespacePrefix)
removeNamespaceDeclaration in interface SOAPElementnamespacePrefix - SOAPElement.removeNamespaceDeclaration(String)public java.util.Iterator getChildElements()
getChildElements in interface SOAPElementSOAPElement.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 SOAPElementchildName - 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.ElementElement.getTagName()public void removeAttribute(java.lang.String attrName)
throws org.w3c.dom.DOMException
removeAttribute in interface org.w3c.dom.ElementattrName - name of the attributesorg.w3c.dom.DOMExceptionElement.removeAttribute(String)public boolean hasAttribute(java.lang.String attrName)
hasAttribute in interface org.w3c.dom.ElementattrName - name of attribute (or null)Element.hasAttribute(String)public java.lang.String getAttribute(java.lang.String attrName)
getAttribute in interface org.w3c.dom.ElementattrName - of attributeElement.getAttribute(String)public void removeAttributeNS(java.lang.String namespace,
java.lang.String localName)
throws org.w3c.dom.DOMException
removeAttributeNS in interface org.w3c.dom.Elementnamespace - namespace of attrlocalName - local nameorg.w3c.dom.DOMExceptionElement.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.Elementname - attribute namevalue - attribute valueorg.w3c.dom.DOMExceptionElement.setAttribute(String, String)public boolean hasAttributeNS(java.lang.String namespace,
java.lang.String localName)
hasAttributeNS in interface org.w3c.dom.Elementnamespace - localName - Element.hasAttributeNS(String, String)public org.w3c.dom.Attr getAttributeNode(java.lang.String attrName)
getAttributeNode in interface org.w3c.dom.ElementattrName - 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.ElementoldAttr - org.w3c.dom.DOMExceptionpublic org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
throws org.w3c.dom.DOMException
setAttributeNode in interface org.w3c.dom.ElementnewAttr - org.w3c.dom.DOMExceptionElement.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.ElementnewAttr - org.w3c.dom.DOMExceptionElement.setAttributeNodeNS(org.w3c.dom.Attr)public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
getElementsByTagName in interface org.w3c.dom.ElementtagName - 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.ElementnamespaceURI - namespacelocalName - nameElement.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.ElementnamespaceURI - namepsacequalifiedName - qualified name of the attribuevalue - valueorg.w3c.dom.DOMExceptionElement.setAttributeNS(String, String, String)public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespace,
java.lang.String localName)
getAttributeNodeNS in interface org.w3c.dom.Elementnamespace - namespacelocalName - local nameElement.getAttributeNS(String, String)public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespace,
java.lang.String localName)
getElementsByTagNameNS in interface org.w3c.dom.Elementnamespace - namespacelocalName - local name of elementElement.getElementsByTagNameNS(String, String)protected org.w3c.dom.NodeList getElementsNS(org.w3c.dom.Element parentElement,
java.lang.String namespace,
java.lang.String localName)
parentElement - parent elementnamespace - namespacelocalName - local name of elementpublic org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NodeListindex - index valueNodeList.item(int)public int getLength()
length-1 inclusive.getLength in interface org.w3c.dom.NodeListNodeList.getLength()protected MessageElement findElement(java.util.Vector vec, java.lang.String namespace, java.lang.String localPart)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - toString()public java.lang.String getValue()
getAsDOM() so is a heavyweight operation.protected java.lang.String getValueDOM()
public void setValue(java.lang.String value)
NodeImplpublic org.w3c.dom.Document getOwnerDocument()
NodeImplDocument 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.NodegetOwnerDocument in class NodeImplCopyright ? 2005 Apache Web Services Project. All Rights Reserved.