public interface Detail extends SOAPFaultElement
DetailEntry
对象的容器。
DetailEntry
对象提供详细的错误信息,应用具体的
SOAPBody
对象包含有关。
一个Detail
对象,这是一个SOAPFault
对象的一部分,可以使用的方法SOAPFault.getDetail
检索。的Detail
接口提供了两个方法。创建一个新DetailEntry
对象并自动将其添加到Detail
对象。第二种方法被包含在一个Detail
对象列表的DetailEntry
对象。
下面的代码片段,其中顺丰是SOAPFault
对象,获取其Detail
对象(D),增加了一个新的DetailEntry
对象D,然后得到一个列表中的所有对象的DetailEntry
D.代码创建了一Name
对象传递给方法addDetailEntry
。变东南方,用来创建Name
对象,是一个SOAPEnvelope
对象。
细节a getdetail() SF;名称= SE。createname(“getlasttradeprice”、“袋熊”,“HTTP:/ / www.wombat。org /贸易商”);d.adddetailentry(名称);迭代器它= D getdetailentries();
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
Modifier and Type | Method and Description |
---|---|
DetailEntry |
addDetailEntry(Name name)
创建一个新的名字和
DetailEntry 对象添加到这个
Detail 对象。
|
DetailEntry |
addDetailEntry(QName qname)
创建一个新的属性和
DetailEntry 对象添加到这个
Detail 对象。
|
Iterator |
getDetailEntries()
获取一个迭代器的所有在这
Detail 对象的
DetailEntry s。
|
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setElementQName, setEncodingStyle
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
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
DetailEntry addDetailEntry(Name name) throws SOAPException
DetailEntry
对象添加到这个
Detail
对象。
name
-
Name
目标识别新
DetailEntry
对象
SOAPException
-扔在这个细节对象中添加一个detailentry对象问题。
addDetailEntry(QName qname)
DetailEntry addDetailEntry(QName qname) throws SOAPException
DetailEntry
对象添加到这个
Detail
对象。此方法是首选的一个使用名称。
qname
-
QName
目标识别新
DetailEntry
对象
SOAPException
-扔在这个细节对象中添加一个detailentry对象问题。
addDetailEntry(Name name)
Iterator getDetailEntries()
Detail
对象的
DetailEntry
s。
Detail
对象对象对象
DetailEntry
Iterator
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.