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对象的
DetailEntrys。
|
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, setEncodingStyledetachNode, getParentElement, getValue, recycleNode, setParentElement, setValuegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, 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, setUserDataDetailEntry 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对象的
DetailEntrys。
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.