| org.apache.axis2.saaj.NodeImplEx org.apache.axis2.saaj.SOAPElementImpl
All known Subclasses: org.apache.axis2.saaj.SOAPFaultElementImpl, org.apache.axis2.saaj.DetailEntryImpl, org.apache.axis2.saaj.SOAPEnvelopeImpl, org.apache.axis2.saaj.SOAPHeaderElementImpl, org.apache.axis2.saaj.SOAPBodyElementImpl, org.apache.axis2.saaj.SOAPHeaderImpl, org.apache.axis2.saaj.SOAPBodyImpl,
Field Summary | |
protected ElementImpl | element |
Method Summary | |
public SOAPElement | addAttribute(Name name, String value) Adds an attribute with the specified name and value to this SOAPElement object. | public SOAPElement | addAttribute(QName qname, String value) | public SOAPElement | addChildElement(Name name) | public SOAPElement | addChildElement(SOAPElement soapElement) | public SOAPElement | addChildElement(String localName, String prefix, String uri) | public SOAPElement | addChildElement(String localName, String prefix) | public SOAPElement | addChildElement(String localName) | public SOAPElement | addChildElement(QName qname) | public SOAPElement | addNamespaceDeclaration(String prefix, String uri) | public SOAPElement | addTextNode(String text) Creates a new Text object initialized with the given String and
adds it to this SOAPElement object. | public QName | createQName(String localName, String prefix) Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the
context of this SOAPElement. | public OMNode | detach() | public void | detachNode() | public void | discard() | public Iterator | getAllAttributes() Returns an iterator over all of the attribute names in this SOAPElement object. | public Iterator | getAllAttributesAsQNames() | public String | getAttribute(String name) | public String | getAttributeNS(String namespaceURI, String localName) | public Attr | getAttributeNode(String name) | public Attr | getAttributeNodeNS(String namespaceURI, String localName) | public String | getAttributeValue(Name name) | public String | getAttributeValue(QName qname) | public NamedNodeMap | getAttributes() Returns the collection of attributes associated with this node, or null if none. | public Iterator | getChildElements() Returns an iterator over all the immediate content of this element. | public Iterator | getChildElements(Name name) | public Iterator | getChildElements(QName qname) | public NodeList | getChildNodes() | public ElementImpl | getElement() | public Name | getElementName() | public QName | getElementQName() | public NodeList | getElementsByTagName(String name) | public NodeList | getElementsByTagNameNS(String namespaceURI, String localName) | public String | getEncodingStyle() | public org.w3c.dom.Node | getFirstChild() | public org.w3c.dom.Node | getLastChild() | public String | getLocalName() | public Iterator | getNamespacePrefixes() | public String | getNamespaceURI() | public String | getNamespaceURI(String prefix) | public org.w3c.dom.Node | getNextSibling() | public String | getNodeName() | public short | getNodeType() | public Document | getOwnerDocument() Find the Document that this Node belongs to (the document in whose context the Node was
created). | public SOAPElement | getParentElement() Returns the parent element of this Node object. | public Node | getParentNode() | public String | getPrefix() | public Node | getPreviousSibling() | public String | getTagName() | public String | getValue() Returns the the value of the immediate child of this Node object if a child
exists and its value is text. | public Iterator | getVisibleNamespacePrefixes() | public boolean | hasAttribute(String name) | public boolean | hasAttributeNS(String namespaceURI, String localName) | public boolean | hasChildNodes() | public void | internalSerialize(javax.xml.stream.XMLStreamWriter writer) | public void | internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) | public boolean | removeAttribute(QName qname) | public boolean | removeAttribute(Name name) | public void | removeAttribute(String name) | public void | removeAttributeNS(String namespaceURI, String localName) | public Attr | removeAttributeNode(Attr attr) | public void | removeContents() | public boolean | removeNamespaceDeclaration(String prefix) | public void | setAttribute(String name, String value) | public void | setAttributeNS(String namespaceURI, String qualifiedName, String value) | public Attr | setAttributeNode(Attr attr) | public Attr | setAttributeNodeNS(Attr attr) | public SOAPElement | setElementQName(QName newName) | public void | setEncodingStyle(String encodingStyle) Sets the encoding style for this SOAPElement object to one specified.
Parameters: encodingStyle - - a String giving the encoding style throws: IllegalArgumentException - - if there was a problem in the encoding style being set. | public void | setParent(OMContainer parentElement) | public void | setParentElement(SOAPElement parent) | public void | setValue(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. |
element | protected ElementImpl element(Code) | | Using a delegate because we can't extend from org.apache.axiom.om.impl.dom.ElementImpl since
this class must extend SNodeImpl
|
SOAPElementImpl | public SOAPElementImpl(ElementImpl element)(Code) | | |
addAttribute | public SOAPElement addAttribute(Name name, String value) throws SOAPException(Code) | | Adds an attribute with the specified name and value to this SOAPElement object.
Parameters: name - a Name object with the name of the attribute Parameters: value - a String giving the value of the attribute the SOAPElement object into which the attribute was inserted throws: SOAPException - if there is an error in creating the Attribute |
addTextNode | public SOAPElement addTextNode(String text) throws SOAPException(Code) | | Creates a new Text object initialized with the given String and
adds it to this SOAPElement object.
Parameters: text - a String object with the textual content to be added the SOAPElement object into which the new Text object wasinserted throws: SOAPException - if there is an error in creating the new Text object |
createQName | public QName createQName(String localName, String prefix) throws SOAPException(Code) | | Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the
context of this SOAPElement. The remaining elements of the new QName are taken directly from
the parameters, localName and prefix.
Parameters: localName - - a String containing the local part of the name. prefix - a Stringcontaining the prefix for the name. a QName with the specified localName and prefix, and with a namespace that isassociated with the prefix in the context of this SOAPElement. This namespace will bethe same as the one that would be returned by getNamespaceURI(String) if it weregiven prefix as its parameter. throws: SOAPException - - if the QName cannot be created. since: SAAJ 1.3 |
detach | public OMNode detach()(Code) | | |
detachNode | public void detachNode()(Code) | | |
discard | public void discard() throws OMException(Code) | | |
getAllAttributes | public Iterator getAllAttributes()(Code) | | Returns an iterator over all of the attribute names in this 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.
an iterator over the names of the attributes |
getAllAttributesAsQNames | public Iterator getAllAttributesAsQNames()(Code) | | |
getAttributes | public NamedNodeMap getAttributes()(Code) | | Returns the collection of attributes associated with this node, or null if none. At this
writing, Element is the only type of node which will ever have attributes.
See Also: org.apache.axiom.om.impl.dom.ElementImpl |
getChildElements | public Iterator getChildElements()(Code) | | Returns an iterator over all the immediate content of this element. This includes
Text objects as well as SOAPElement objects.
an iterator over Text and SOAPElement contained within thisSOAPElement object |
getElement | public ElementImpl getElement()(Code) | | |
getNodeType | public short getNodeType()(Code) | | |
getOwnerDocument | public Document getOwnerDocument()(Code) | | Find the Document that this Node belongs to (the document in whose context the Node was
created). The Node may or may not
|
getPreviousSibling | public Node getPreviousSibling()(Code) | | |
getValue | public String getValue()(Code) | | Returns the the value of the immediate child of this Node object if a child
exists and its value is text.
a 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 otherwise |
getVisibleNamespacePrefixes | public Iterator getVisibleNamespacePrefixes()(Code) | | |
hasChildNodes | public boolean hasChildNodes()(Code) | | |
removeAttribute | public boolean removeAttribute(QName qname)(Code) | | |
removeAttribute | public boolean removeAttribute(Name name)(Code) | | |
removeContents | public void removeContents()(Code) | | |
removeNamespaceDeclaration | public boolean removeNamespaceDeclaration(String prefix)(Code) | | |
setEncodingStyle | public void setEncodingStyle(String encodingStyle) throws SOAPException(Code) | | Sets the encoding style for this SOAPElement object to one specified.
Parameters: encodingStyle - - a String giving the encoding style throws: IllegalArgumentException - - if there was a problem in the encoding style being set. SOAPException - if settingthe encodingStyle is invalid for this SOAPElement. |
setParent | public void setParent(OMContainer parentElement)(Code) | | |
setValue | public void setValue(String value)(Code) | | 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. The value of the immediate child of this node can be
set only if, there is one child node and that node is a Text node, or if there are no
children in which case a child Text node will be created.
Parameters: value - the text to set throws: IllegalStateException - if the node is not a Text node and either has more than onechild node or has a child node that is not a Text node |
|
|