Package org.apache.axis2.saaj
Class DetailImpl
java.lang.Object
org.apache.axis2.saaj.ProxyNode<T,S>
org.apache.axis2.saaj.NodeImpl<Element,T>
org.apache.axis2.saaj.SOAPElementImpl<T>
org.apache.axis2.saaj.SOAPFaultElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
org.apache.axis2.saaj.DetailImpl
- All Implemented Interfaces:
jakarta.xml.soap.Detail,jakarta.xml.soap.Node,jakarta.xml.soap.SOAPElement,jakarta.xml.soap.SOAPFaultElement,Element,Node
public class DetailImpl
extends SOAPFaultElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
implements jakarta.xml.soap.Detail
A container for
DetailEntry objects. DetailEntry objects give detailed
error information that is application-specific and related to the SOAPBody object
that contains it.
A Detail object, which is part of a SOAPFault object, can be retrieved
using the method SOAPFault.getDetail. The Detail interface provides two
methods. One creates a new DetailEntry object and also automatically adds it to the
Detail object. The second method gets a list of the DetailEntry objects
contained in a Detail object.
The following code fragment, in which sf is a SOAPFault object, gets its
Detail object (d), adds a new DetailEntry object to d,
and then gets a list of all the DetailEntry objects in d. The code also
creates a Name object to pass to the method addDetailEntry. The
variable se, used to create the Name object, is a SOAPEnvelope
object. Detail d = sf.getDetail(); Name name = se.createName("GetLastTradePrice", "WOMBAT",
"http://www.wombat.org/trader"); d.addDetailEntry(name); Iterator it = d.getDetailEntries();
-
Field Summary
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPElementaddAttribute(QName qname, String value) jakarta.xml.soap.SOAPElementaddChildElement(QName qname) jakarta.xml.soap.DetailEntryaddDetailEntry(jakarta.xml.soap.Name name) Creates a newDetailEntryobject with the given name and adds it to thisDetailobject.jakarta.xml.soap.DetailEntryaddDetailEntry(QName qname) Creates a new DetailEntry object with the given name and adds it to this Detail object.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.getAttributeValue(QName qname) getChildElements(QName qname) Gets a list of the detail entries in thisDetailobject.booleanremoveAttribute(QName qname) jakarta.xml.soap.SOAPElementsetElementQName(QName newName) Methods inherited from class org.apache.axis2.saaj.SOAPElementImpl
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, clone, copyContents, getAllAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributeValue, getChildElements, getChildElements, getElementName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getTagName, getValue, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeContents, removeNamespaceDeclaration, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setValue, toStringMethods inherited from class org.apache.axis2.saaj.NodeImpl
detachNode, getParentElement, setParentElementMethods inherited from class org.apache.axis2.saaj.ProxyNode
appendChild, appendElement, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOMTarget, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSchemaTypeInfo, getTarget, getTextContent, getType, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, replaceChild, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setType, setUserData, toSAAJNodeListMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, setIdAttributeNSMethods inherited from interface jakarta.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValueMethods 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, setUserDataMethods inherited from interface jakarta.xml.soap.SOAPElement
addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, getAllAttributes, getAttributeValue, getChildElements, getChildElements, getElementName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle
-
Constructor Details
-
DetailImpl
public DetailImpl(org.apache.axiom.soap.SOAPFaultDetail element) - Parameters:
element-
-
-
Method Details
-
addDetailEntry
public jakarta.xml.soap.DetailEntry addDetailEntry(jakarta.xml.soap.Name name) throws jakarta.xml.soap.SOAPException Creates a newDetailEntryobject with the given name and adds it to thisDetailobject.- Specified by:
addDetailEntryin interfacejakarta.xml.soap.Detail- Parameters:
name- aNameobject identifying the newDetailEntryobject- Returns:
- DetailEntry.
- Throws:
jakarta.xml.soap.SOAPException- thrown when there is a problem in adding a DetailEntry object to this Detail object.
-
getDetailEntries
Gets a list of the detail entries in thisDetailobject.- Specified by:
getDetailEntriesin interfacejakarta.xml.soap.Detail- Returns:
- an
Iteratorobject over theDetailEntryobjects in thisDetailobject
-
addDetailEntry
public jakarta.xml.soap.DetailEntry addDetailEntry(QName qname) throws jakarta.xml.soap.SOAPException Creates a new DetailEntry object with the given name and adds it to this Detail object.- Specified by:
addDetailEntryin interfacejakarta.xml.soap.Detail- Parameters:
name- - a Name object identifying the new DetailEntry object- Throws:
jakarta.xml.soap.SOAPException- - thrown when there is a problem in adding a DetailEntry object to this Detail object.
-
addAttribute
public jakarta.xml.soap.SOAPElement addAttribute(QName qname, String value) throws jakarta.xml.soap.SOAPException - Specified by:
addAttributein interfacejakarta.xml.soap.SOAPElement- Overrides:
addAttributein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>- Throws:
jakarta.xml.soap.SOAPException
-
addChildElement
public jakarta.xml.soap.SOAPElement addChildElement(QName qname) throws jakarta.xml.soap.SOAPException - Specified by:
addChildElementin interfacejakarta.xml.soap.SOAPElement- Overrides:
addChildElementin classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>- Throws:
jakarta.xml.soap.SOAPException
-
createQName
Description copied from class:SOAPElementImplCreates 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.- Specified by:
createQNamein interfacejakarta.xml.soap.SOAPElement- Overrides:
createQNamein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>- Parameters:
localName- - a String containing the local part of the name. prefix - a String containing the prefix for the name.- Returns:
- a QName with the specified localName and prefix, and with a namespace that is associated with the prefix in the context of this SOAPElement. This namespace will be the same as the one that would be returned by getNamespaceURI(String) if it were given prefix as its parameter.
- Throws:
jakarta.xml.soap.SOAPException- - if the QName cannot be created.
-
getAllAttributesAsQNames
- Specified by:
getAllAttributesAsQNamesin interfacejakarta.xml.soap.SOAPElement- Overrides:
getAllAttributesAsQNamesin classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
-
getAttributeValue
- Specified by:
getAttributeValuein interfacejakarta.xml.soap.SOAPElement- Overrides:
getAttributeValuein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
-
getChildElements
- Specified by:
getChildElementsin interfacejakarta.xml.soap.SOAPElement- Overrides:
getChildElementsin classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
-
getElementQName
- Specified by:
getElementQNamein interfacejakarta.xml.soap.SOAPElement- Overrides:
getElementQNamein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.xml.soap.SOAPElement- Overrides:
removeAttributein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>
-
setElementQName
public jakarta.xml.soap.SOAPElement setElementQName(QName newName) throws jakarta.xml.soap.SOAPException - Specified by:
setElementQNamein interfacejakarta.xml.soap.SOAPElement- Overrides:
setElementQNamein classSOAPElementImpl<org.apache.axiom.soap.SOAPFaultDetail>- Throws:
jakarta.xml.soap.SOAPException
-