Package org.apache.axiom.ts.soap
Class SOAPSpec
- java.lang.Object
-
- org.apache.axiom.testing.multiton.Multiton
-
- org.apache.axiom.ts.soap.SOAPSpec
-
public abstract class SOAPSpec extends org.apache.axiom.testing.multiton.MultitonDescribes the characteristics of a given SOAP version.
-
-
Method Summary
-
-
-
Method Detail
-
getName
public final String getName()
-
getAltSpec
public abstract SOAPSpec getAltSpec()
Get theSOAPSpecinstance for the other SOAP version. This is useful when constructing test cases that test SOAP version mismatches.- Returns:
- the
SOAPSpecinstance for the other SOAP version
-
getContentType
public final String getContentType()
-
getEnvelopeNamespaceURI
public final String getEnvelopeNamespaceURI()
-
getEnvelopeQName
public final QName getEnvelopeQName()
-
getHeaderQName
public final QName getHeaderQName()
-
getBodyQName
public final QName getBodyQName()
-
getFaultQName
public final QName getFaultQName()
-
getFaultCodeQName
public final QName getFaultCodeQName()
-
getFaultValueQName
public final QName getFaultValueQName()
-
getFaultSubCodeQName
public final QName getFaultSubCodeQName()
-
getFaultReasonQName
public final QName getFaultReasonQName()
-
getFaultTextQName
public final QName getFaultTextQName()
-
getFaultNodeQName
public final QName getFaultNodeQName()
-
getFaultRoleQName
public final QName getFaultRoleQName()
-
getFaultDetailQName
public final QName getFaultDetailQName()
-
getBooleanLiterals
public final BooleanLiteral[] getBooleanLiterals()
Get the boolean literals recognized by this SOAP version. While SOAP 1.2 refers to thexs:booleantype and therefore recognizestrue,false,1and0, SOAP 1.1 only recognizes1and0.- Returns:
- an array with the recognized boolean literals
-
getInvalidBooleanLiterals
public final String[] getInvalidBooleanLiterals()
Produce a representative list of strings that are not valid lexical representations of booleans as defined by this SOAP version. The list in particular contains:- Boolean literals allowed by the other SOAP version, but that are not valid in this SOAP version.
- A variant of a valid boolean literal that uses a different case and that is not valid, unless no such variant exists.
- The string
"invalid".
- Returns:
- an array of invalid boolean literals
-
getCanonicalRepresentation
public abstract String getCanonicalRepresentation(boolean value)
Get the canonical representation for the given boolean value as specified by this SOAP version.- Parameters:
value- the boolean value- Returns:
- the canonical representation
-
getNextRoleURI
public final String getNextRoleURI()
-
getSenderFaultCode
public final QName getSenderFaultCode()
-
getReceiverFaultCode
public final QName getReceiverFaultCode()
-
getSchema
public final Schema getSchema()
-
isAllowsElementsAfterBody
public final boolean isAllowsElementsAfterBody()
-
-