com.sun.tools.ws.processor.modeler.wsdl
Class ModelerUtils

java.lang.Object
  extended by com.sun.tools.ws.processor.modeler.wsdl.ModelerUtils

 class ModelerUtils
extends Object

Utilities to be used by WSDLModeler


Constructor Summary
ModelerUtils()
           
 
Method Summary
static JAXBStructuredType createJAXBStructureType(JAXBType jaxbType)
          This method should be called incase of wrapper style operations.
static Parameter createParameter(String partName, AbstractType jaxbType, Block block)
          Called for non-wrapper style operations.
static List<Parameter> createRpcLitParameters(Message message, Block block, S2JJAXBModel jaxbModel, ErrorReceiverFilter errReceiver)
           
static List<Parameter> createUnwrappedParameters(JAXBType jaxbType, Block block)
          This method uses JAXBStructured type (wrapper style operations) and unwraps it to create list of parameters.
static Parameter getParameter(String paramName, List<Parameter> parameters)
          Get Parameter from the list of parameters.
static boolean isBoundToMimeContent(MessagePart part)
           
static boolean isBoundToSOAPBody(MessagePart part)
           
static boolean isBoundToSOAPHeader(MessagePart part)
           
static boolean isEquivalentLiteralStructures(JAXBStructuredType struct1, JAXBStructuredType struct2)
          Compares two JAXBStructures.
static boolean isUnbound(MessagePart part)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelerUtils

ModelerUtils()
Method Detail

createJAXBStructureType

public static JAXBStructuredType createJAXBStructureType(JAXBType jaxbType)
This method should be called incase of wrapper style operations. This is equivalent to wrapper style schema component or JAXB Mapping object.

Parameters:
jaxbType - JAXBType from which a JAXBStructured type will be created.
Returns:
returns JAXBStructured type

createUnwrappedParameters

public static List<Parameter> createUnwrappedParameters(JAXBType jaxbType,
                                                        Block block)
This method uses JAXBStructured type (wrapper style operations) and unwraps it to create list of parameters.

Parameters:
jaxbType - instance of JAXBType, could be JAXBStructured type.
block - The Block (body/Header/Attachment) to which the created Parameter belong.
Returns:
list of Parameters

createRpcLitParameters

public static List<Parameter> createRpcLitParameters(Message message,
                                                     Block block,
                                                     S2JJAXBModel jaxbModel,
                                                     ErrorReceiverFilter errReceiver)

createParameter

public static Parameter createParameter(String partName,
                                        AbstractType jaxbType,
                                        Block block)
Called for non-wrapper style operations. It returns a Parameter constructed using the JAXBType and the Block.

Parameters:
partName - typically wsdl:part or any name to be given to the parameter
jaxbType - type of Parameter
block - Block to which the parameter belongs to
Returns:
Parameter created.

getParameter

public static Parameter getParameter(String paramName,
                                     List<Parameter> parameters)
Get Parameter from the list of parameters.

Parameters:
paramName -
parameters -
Returns:
the Parameter with name paramName from parameters

isEquivalentLiteralStructures

public static boolean isEquivalentLiteralStructures(JAXBStructuredType struct1,
                                                    JAXBStructuredType struct2)
Compares two JAXBStructures.

Parameters:
struct1 -
struct2 -
Returns:
true if struct1 and struct2 are equivalent.

isBoundToMimeContent

public static boolean isBoundToMimeContent(MessagePart part)
Parameters:
part -
Returns:
true if part is bound to Mime content

isBoundToSOAPBody

public static boolean isBoundToSOAPBody(MessagePart part)
Parameters:
part -
Returns:
true if part is bound to SOAPBody

isBoundToSOAPHeader

public static boolean isBoundToSOAPHeader(MessagePart part)
Parameters:
part -
Returns:
true if part is bound to SOAPHeader

isUnbound

public static boolean isUnbound(MessagePart part)