org.idoox.wasp.wsdl
Class SOAPMethodInfo.FaultPartInfos

java.lang.Object
  extended byorg.idoox.wasp.wsdl.SOAPMethodInfo.FaultPartInfos
Enclosing class:
SOAPMethodInfo

public static class SOAPMethodInfo.FaultPartInfos
extends java.lang.Object

This class represents container for information about faults of an operation.

See Also:
SOAPMethodInfo.faultsInfo

Constructor Summary
SOAPMethodInfo.FaultPartInfos()
          Constructs empty instance.
SOAPMethodInfo.FaultPartInfos(BindingOperation operation, Schema schema)
          Creates new instance that is filled with passed information.
 
Method Summary
 java.util.Set getEncodings()
          Returns set of all encodings defined on parts.
 SOAPMethodInfo.FaultPartInfo getFaultPart(SOAPElement partElement)
          Returns fault that corresponds to the "incoming" element.
 SOAPMethodInfo.FaultPartInfo getFaultPart(java.lang.String javaType)
          Returns part whose javaType equals to the required one.
 SOAPMethodInfo.FaultPartInfo getFaultPart(Type schemaType)
          Returns fault part of the specified schema type.
 SOAPMethodInfo.FaultPartInfo getFaultPartForException(java.lang.String exceptionName)
          Returns part that corresponds to "local" name of exception.
 SOAPMethodInfo.FaultPartInfo[] getFaultParts()
          Returns all parts.
 void setCorrectSchema(Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPMethodInfo.FaultPartInfos

public SOAPMethodInfo.FaultPartInfos()
Constructs empty instance.


SOAPMethodInfo.FaultPartInfos

public SOAPMethodInfo.FaultPartInfos(BindingOperation operation,
                                     Schema schema)
                              throws WSDLException,
                                     SchemaException
Creates new instance that is filled with passed information.

Parameters:
operation - WSDL binding operation
schema - XML Schema representation
Throws:
WSDLException - if there is a problem in reading WSDL
SchemaException - if manipulation with supplied schema causes exception
See Also:
SOAPMethodInfo.fillFaultPartInfos(javax.wsdl.BindingOperation, org.idoox.xml.schema.Schema)
Method Detail

getFaultPart

public SOAPMethodInfo.FaultPartInfo getFaultPart(java.lang.String javaType)
Returns part whose javaType equals to the required one.

Parameters:
javaType - java type - name of exception - package + class name
Returns:
part whose javaType equals to the required one
See Also:
FaultPartInfo#javaType

getFaultPartForException

public SOAPMethodInfo.FaultPartInfo getFaultPartForException(java.lang.String exceptionName)
Returns part that corresponds to "local" name of exception.

Parameters:
exceptionName - name of an exception (e.g. "MyException" - without package name)
Returns:
returns part that corresponds to "local" name of exception

getFaultPart

public SOAPMethodInfo.FaultPartInfo getFaultPart(Type schemaType)
Returns fault part of the specified schema type.

Parameters:
schemaType - schema type
Returns:
returns fault part of the specified schema type

getFaultPart

public SOAPMethodInfo.FaultPartInfo getFaultPart(SOAPElement partElement)
Returns fault that corresponds to the "incoming" element.

Parameters:
partElement - incoming element
Returns:
fault that corresponds to the "incoming" element

getEncodings

public java.util.Set getEncodings()
Returns set of all encodings defined on parts.

Returns:
set of all encodings defined on parts

getFaultParts

public SOAPMethodInfo.FaultPartInfo[] getFaultParts()
Returns all parts.

Returns:
all parts

setCorrectSchema

public void setCorrectSchema(Schema schema)
                      throws SchemaException
Throws:
SchemaException