|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
org.apache.axis2.saaj.NodeImplEx
org.apache.axis2.saaj.SOAPElementImpl
org.apache.axis2.saaj.SOAPBodyImpl
public class SOAPBodyImpl
| Field Summary |
|---|
| Fields inherited from class org.apache.axis2.saaj.SOAPElementImpl |
|---|
element |
| Fields inherited from class org.apache.axis2.saaj.NodeImplEx |
|---|
parentElement |
| Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
| Fields inherited from interface org.w3c.dom.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Fields inherited from interface org.w3c.dom.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Fields inherited from interface org.apache.axiom.om.OMNode |
|---|
DTD_NODE, PI_NODE, SPACE_NODE |
| Constructor Summary | |
|---|---|
SOAPBodyImpl(org.apache.axiom.soap.SOAPBody omSOAPBody)
|
|
| Method Summary | |
|---|---|
SOAPElement |
addAttribute(QName qname,
java.lang.String value)
|
SOAPBodyElement |
addBodyElement(Name name)
Creates a new SOAPBodyElement object with the specified name and adds it to this
SOAPBody object. |
SOAPBodyElement |
addBodyElement(QName qname)
Creates a new SOAPBodyElement object with the specified name and adds it to this
SOAPBody object. |
SOAPElement |
addChildElement(QName qname)
|
SOAPElement |
addChildElement(SOAPElement soapElement)
Add a SOAPElement as a child of this SOAPElement instance. |
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. |
SOAPBodyElement |
addDocument(org.w3c.dom.Document document)
Adds the root node of the DOM Document to this SOAPBody object. |
SOAPFault |
addFault()
Creates a new SOAPFault object and adds it to this SOAPBody
object. |
SOAPFault |
addFault(Name faultCode,
java.lang.String faultString)
Creates a new SOAPFault object and adds it to this SOAPBody object. |
SOAPFault |
addFault(Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
Creates a new SOAPFault object and adds it to this SOAPBody object. |
SOAPFault |
addFault(QName faultcode,
java.lang.String faultString)
|
SOAPFault |
addFault(QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
Creates a new SOAPFault object and adds it to this SOAPBody object. |
SOAPElement |
addTextNode(java.lang.String text)
Creates a new Text object initialized with the given String and
adds it to this SOAPElement object. |
QName |
createQName(java.lang.String localName,
java.lang.String prefix)
Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the context of this SOAPElement. |
org.apache.axiom.om.OMNode |
detach()
|
void |
detachNode()
Removes this Node object from the tree. |
org.w3c.dom.Document |
extractContentAsDocument()
Creates a new DOM org.w3c.dom.Document and sets the first child of this SOAPBody as its document element. |
java.util.Iterator |
getAllAttributesAsQNames()
|
java.lang.String |
getAttributeValue(QName qname)
|
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. |
java.util.Iterator |
getChildElements(QName qname)
|
QName |
getElementQName()
|
SOAPFault |
getFault()
Returns the SOAPFault object in this SOAPBody object. |
boolean |
hasFault()
Indicates whether a SOAPFault object exists in this SOAPBody
object. |
boolean |
removeAttribute(QName qname)
|
SOAPElement |
setElementQName(QName qname)
|
| Methods inherited from class org.apache.axis2.saaj.NodeImplEx |
|---|
getParent, getSchemaTypeInfo, getType, recycleNode, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setType |
| Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
appendChild, build, buildWithAttachments, cloneNode, close, compareDocumentPosition, getBaseURI, getFeature, getLength, getNextOMSibling, getNodeValue, getOMFactory, getPreviousOMSibling, getTextContent, getUserData, hasAttributes, insertBefore, insertSiblingAfter, insertSiblingBefore, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setNodeValue, setOwnerDocument, setPrefix, setPreviousOMSibling, setTextContent, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.xml.soap.SOAPElement |
|---|
addAttribute, addChildElement, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle |
| Methods inherited from interface javax.xml.soap.Node |
|---|
getParentElement, getValue, recycleNode, setParentElement, setValue |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public SOAPBodyImpl(org.apache.axiom.soap.SOAPBody omSOAPBody)
omSOAPBody - | Method Detail |
|---|
public SOAPElement addChildElement(java.lang.String localName)
throws SOAPException
SOAPElementSOAPElement object initialized with the given String
object and adds the new element to this SOAPElement object.
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpllocalName - a String giving the local name for the element
SOAPElement object that was created
SOAPException - if there is an error in creating the SOAPElement object
public SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix)
throws SOAPException
SOAPElementSOAPElement object initialized with the specified local name and
prefix and adds the new element to this SOAPElement object.
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpllocalName - a String giving the local name for the new elementprefix - a String giving the namespace prefix for the new element
SOAPElement object that was created
SOAPException - if there is an error in creating the SOAPElement object
public SOAPElement addChildElement(SOAPElement soapElement)
throws SOAPException
SOAPElementSOAPElement as a child of this SOAPElement instance. The
SOAPElement is expected to be created by a SOAPElementFactory.
Callers should not rely on the element instance being added as is into the XML tree.
Implementations could end up copying the content of the SOAPElement passed into
an instance of a different SOAPElement implementation. For instance if
addChildElement() is called on a SOAPHeader, element
will be copied into an instance of a SOAPHeaderElement.
The fragment rooted in element is either added as a whole or not at all, if
there was an error.
The fragment rooted in element cannot contain elements named "Envelope",
"Header" or "Body" and in the SOAP namespace. Any namespace prefixes present in the fragment
should be fully resolved using appropriate namespace declarations within the fragment
itself.
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImplsoapElement - the SOAPElement to be added as a new child
SOAPException - if there was an error in adding this element as a child
public SOAPElement addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.String uri)
throws SOAPException
SOAPElementSOAPElement object initialized with the specified local name,
prefix, and URI and adds the new element to this SOAPElement object.
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImpllocalName - 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 belongs
SOAPElement object that was created
SOAPException - if there is an error in creating the SOAPElement object
public SOAPFault addFault()
throws SOAPException
SOAPFault object and adds it to this SOAPBody
object.
addFault in interface SOAPBodySOAPFault object
SOAPException - if there is a SOAP errorpublic boolean hasFault()
SOAPFault object exists in this SOAPBody
object.
hasFault in interface SOAPBodytrue if a SOAPFault object exists in this
SOAPBody object; false otherwisepublic SOAPFault getFault()
SOAPFault object in this SOAPBody object.
getFault in interface SOAPBodySOAPFault object in this SOAPBody object
public SOAPBodyElement addBodyElement(Name name)
throws SOAPException
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object.
addBodyElement in interface SOAPBodyname - a Name object with the name for the new SOAPBodyElement
object
SOAPBodyElement object
SOAPException - if a SOAP error occurs
public SOAPFault addFault(Name faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring and localized to locale.
addFault in interface SOAPBodyfaultCode - a Name object giving the fault code to be set; must be one of
the fault codes defined in the SOAP 1.1 specification and of type QNamefaultString - a String giving an explanation of the faultlocale - a Locale object indicating the native language of the
SOAPFault object
SOAPException - if there is a SOAP error
public SOAPFault addFault(Name faultCode,
java.lang.String faultString)
throws SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring.
addFault in interface SOAPBodyfaultCode - a Name object giving the fault code to be set; must be one of
the fault codes defined in the SOAP 1.1 specification and of type QNamefaultString - a String giving an explanation of the fault
SOAPFault object
SOAPException - if there is a SOAP error
public SOAPBodyElement addDocument(org.w3c.dom.Document document)
throws SOAPException
Document to this SOAPBody object.
Calling this method invalidates the document parameter. The client application
should discard all references to this Document and its contents upon calling
addDocument. The behavior of an application that continues to use such
references is undefined.
addDocument in interface SOAPBodydocument - the Document object whose root node will be added to this
SOAPBody
SOAPBodyElement that represents the root node that was added
SOAPException - if the Document cannot be added
public SOAPBodyElement addBodyElement(QName qname)
throws SOAPException
SOAPBodyElement object with the specified name and adds it to this
SOAPBody object.
addBodyElement in interface SOAPBodyqname - a QName object with the name for the new SOAPBodyElement
object
SOAPBodyElement object
SOAPException - if a SOAP error occurs
public SOAPFault addFault(QName faultcode,
java.lang.String faultString)
throws SOAPException
addFault in interface SOAPBodySOAPException
public SOAPFault addFault(QName faultCode,
java.lang.String faultString,
java.util.Locale locale)
throws SOAPException
SOAPFault object and adds it to this SOAPBody object.
The new SOAPFault will have a faultcode element that is set to the
faultCode parameter and a faultstring set to
faultstring and localized to locale.
addFault in interface SOAPBodyfaultCode - a QName object giving the fault code to befaultString - a String giving an explanation of the faultlocale - a Locale object indicating the native language of the
SOAPFault object
SOAPException - if there is a SOAP error
public org.w3c.dom.Document extractContentAsDocument()
throws SOAPException
extractContentAsDocument in interface SOAPBodySOAPException - - if there is not exactly one child SOAPElement of the SOAPBody.public void detachNode()
NodeImplExNode object from the tree. Once removed, this node can be garbage
collected if there are no application references to it.
detachNode in class SOAPElementImplpublic org.apache.axiom.om.OMNode detach()
detach in interface org.apache.axiom.om.OMNodedetach in class SOAPElementImplpublic java.util.Iterator getChildElements(Name name)
SOAPElement
getChildElements in interface SOAPElementgetChildElements in class SOAPElementImplname - a Name object with the name of the child elements to be returned
Iterator object over all the elements in this
SOAPElement object with the specified name
public SOAPElement addAttribute(QName qname,
java.lang.String value)
throws SOAPException
addAttribute in interface SOAPElementaddAttribute in class SOAPElementImplSOAPException
public SOAPElement addChildElement(QName qname)
throws SOAPException
addChildElement in interface SOAPElementaddChildElement in class SOAPElementImplSOAPException
public QName createQName(java.lang.String localName,
java.lang.String prefix)
throws SOAPException
SOAPElementImpl
createQName in interface SOAPElementcreateQName in class SOAPElementImpllocalName - - a String containing the local part of the name. prefix - a String
containing the prefix for the name.
SOAPException - - if the QName cannot be created.public java.util.Iterator getAllAttributesAsQNames()
getAllAttributesAsQNames in interface SOAPElementgetAllAttributesAsQNames in class SOAPElementImplpublic java.lang.String getAttributeValue(QName qname)
getAttributeValue in interface SOAPElementgetAttributeValue in class SOAPElementImplpublic java.util.Iterator getChildElements(QName qname)
getChildElements in interface SOAPElementgetChildElements in class SOAPElementImplpublic QName getElementQName()
getElementQName in interface SOAPElementgetElementQName in class SOAPElementImplpublic boolean removeAttribute(QName qname)
removeAttribute in interface SOAPElementremoveAttribute in class SOAPElementImpl
public SOAPElement setElementQName(QName qname)
throws SOAPException
setElementQName in interface SOAPElementsetElementQName in class SOAPElementImplSOAPExceptionpublic java.util.Iterator getChildElements()
SOAPElementImplText objects as well as SOAPElement objects.
getChildElements in interface SOAPElementgetChildElements in class SOAPElementImplText and SOAPElement contained within this
SOAPElement object
public SOAPElement addTextNode(java.lang.String text)
throws SOAPException
SOAPElementImplText object initialized with the given String and
adds it to this SOAPElement object.
addTextNode in interface SOAPElementaddTextNode in class SOAPElementImpltext - a String object with the textual content to be added
SOAPElement object into which the new Text object was
inserted
SOAPException - if there is an error in creating the new Text object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||