org.apache.axiom.soap
Interface SOAPFaultClassifier
- All Superinterfaces:
- OMContainer, OMElement, OMInformationItem, OMNamedInformationItem, OMNode, OMSerializable
- All Known Subinterfaces:
- SOAPFaultCode, SOAPFaultSubCode
public interface SOAPFaultClassifier
- extends OMElement
Common superinterface for SOAPFaultCode and SOAPFaultSubCode.
This interface enables manipulation of SOAP fault codes and SOAP fault sub
codes using common code.
| Methods inherited from interface org.apache.axiom.om.OMElement |
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
addChild, buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching |
setValue
void setValue(SOAPFaultValue value)
throws SOAPProcessingException
- Fault SubCode contain only one mandatory Value child. This value child contains a QName
- Parameters:
value -
- Throws:
SOAPProcessingException
getValue
SOAPFaultValue getValue()
- Returns:
- Returns SOAPFaultValue.
setValue
void setValue(javax.xml.namespace.QName value)
- Set the value of this fault code or subcode. The effect of this method depends on the SOAP
version. For SOAP 1.1, the method sets the text content of the
SOAPFaultCode element.
For SOAP 1.2, the method ensures that the SOAPFaultCode or SOAPFaultSubCode
element has a child of type SOAPFaultValue child (creating one if necessary) and sets
the text content of that child. In both cases, the method adds an appropriate namespace
declaration if necessary.
- Parameters:
value - the QName for the fault code or subcode value
setSubCode
void setSubCode(SOAPFaultSubCode subCode)
throws SOAPProcessingException
- Fault SubCode can contain an optional SubCode
- Parameters:
subCode -
- Throws:
SOAPProcessingException
getSubCode
SOAPFaultSubCode getSubCode()
- Returns:
- Returns SOAPFaultSubCode.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.