Apache CXF API

org.apache.cxf.tools.corba.processors.wsdl
Class WSDLToCorbaHelper

java.lang.Object
  extended by org.apache.cxf.tools.corba.processors.wsdl.WSDLToCorbaHelper

public class WSDLToCorbaHelper
extends Object


Field Summary
protected static CorbaPrimitiveMap CORBAPRIMITIVEMAP
           
protected static String[] DISCRIMINATORTYPES
           
static String IDL_VERSION
           
protected static Logger LOG
           
static String REPO_STRING
           
protected static Set<String> SUPPORTEDDISTYPES
           
 
Constructor Summary
WSDLToCorbaHelper()
           
 
Method Summary
protected  QName checkPrefix(QName schematypeName)
           
 CorbaType convertSchemaToCorbaType(org.apache.ws.commons.schema.XmlSchemaType stype, QName defaultName, org.apache.ws.commons.schema.XmlSchemaType parent, org.apache.ws.commons.schema.XmlSchemaAnnotation annotation, boolean anonymous)
           
protected  CorbaType createArray(QName name, QName schematypeName, QName arrayType, Long maxOccurs, Long minOccurs, boolean anonymous)
          Create a CORBA Array or Sequence based on min and max Occurs If minOccurs == maxOccurs == 1 then log warning and return null.
protected  CorbaType createArray(QName name, QName schematypeName, QName arrayType, QName elName, Long maxOccurs, Long minOccurs, boolean anonymous)
          Create a CORBA Array or Sequence based on min and max Occurs If minOccurs == maxOccurs == 1 then log warning and return null.
protected  CorbaType createNillableUnion(QName name, QName schemaType, QName membertype, boolean isQualified)
           
 QName createQName(String name, String namespaceName, String prefix)
           
 QName createQNameCorbaNamespace(String name)
           
 QName createQNameTargetNamespace(String name)
           
 QName createQNameXmlSchemaNamespace(String name)
           
protected  Union createUnion(QName name, org.apache.ws.commons.schema.XmlSchemaChoice choice, QName defaultName, QName schematypeName)
           
 String getIdlNamespace()
           
 org.apache.ws.commons.schema.XmlSchemaType getSchemaType(QName name)
           
 SchemaCollection getXMLSchemaList()
           
protected  boolean isDuplicate(CorbaType corbaTypeImpl)
           
protected  CorbaType isDuplicateException(CorbaType corbaTypeImpl)
           
 boolean isLiteralArray(org.apache.ws.commons.schema.XmlSchemaComplexType type)
           
protected  boolean isSchemaTypeException(org.apache.ws.commons.schema.XmlSchemaType stype)
           
protected  org.apache.ws.commons.schema.XmlSchemaType lookUpType(javax.wsdl.Part part)
           
protected  CorbaType processAllType(org.apache.ws.commons.schema.XmlSchemaAll seq, QName defaultName, QName schematypeName)
           
protected  List<MemberType> processAttributesAsMembers(List<org.apache.ws.commons.schema.XmlSchemaAttributeOrGroupRef> list, String uri)
           
protected  Struct processComplexContentStruct(org.apache.ws.commons.schema.XmlSchemaComplexContent complex, QName defaultName, Struct corbaStruct, QName schematypeName)
           
protected  MemberType processComplexContentStructChoice(org.apache.ws.commons.schema.XmlSchemaChoice choice, QName schematypeName, QName defaultName)
           
protected  List<MemberType> processContainerAsMembers(org.apache.ws.commons.schema.XmlSchemaParticle particle, QName defaultName, QName schemaTypeName)
           
protected  CorbaType processSequenceType(org.apache.ws.commons.schema.XmlSchemaSequence seq, QName defaultName, QName schemaTypeName)
           
protected  Struct processSimpleContentStruct(org.apache.ws.commons.schema.XmlSchemaSimpleContent simpleContent, QName defaultName, Struct corbaStruct, QName schematypeName)
           
protected static boolean queryBinding(javax.wsdl.Definition definition, QName bqname)
           
 void setIdlNamespace(String ns)
           
 void setTypeMap(TypeMappingType map)
           
 void setWsdlDefinition(javax.wsdl.Definition defn)
           
 void setXMLSchemaList(SchemaCollection list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPO_STRING

public static final String REPO_STRING
See Also:
Constant Field Values

IDL_VERSION

public static final String IDL_VERSION
See Also:
Constant Field Values

LOG

protected static final Logger LOG

DISCRIMINATORTYPES

protected static final String[] DISCRIMINATORTYPES

SUPPORTEDDISTYPES

protected static final Set<String> SUPPORTEDDISTYPES

CORBAPRIMITIVEMAP

protected static final CorbaPrimitiveMap CORBAPRIMITIVEMAP
Constructor Detail

WSDLToCorbaHelper

public WSDLToCorbaHelper()
Method Detail

setTypeMap

public void setTypeMap(TypeMappingType map)

setIdlNamespace

public void setIdlNamespace(String ns)

getIdlNamespace

public String getIdlNamespace()

setXMLSchemaList

public void setXMLSchemaList(SchemaCollection list)

getXMLSchemaList

public SchemaCollection getXMLSchemaList()

setWsdlDefinition

public void setWsdlDefinition(javax.wsdl.Definition defn)

convertSchemaToCorbaType

public CorbaType convertSchemaToCorbaType(org.apache.ws.commons.schema.XmlSchemaType stype,
                                          QName defaultName,
                                          org.apache.ws.commons.schema.XmlSchemaType parent,
                                          org.apache.ws.commons.schema.XmlSchemaAnnotation annotation,
                                          boolean anonymous)
                                   throws Exception
Throws:
Exception

processContainerAsMembers

protected List<MemberType> processContainerAsMembers(org.apache.ws.commons.schema.XmlSchemaParticle particle,
                                                     QName defaultName,
                                                     QName schemaTypeName)
                                              throws Exception
Throws:
Exception

getSchemaType

public org.apache.ws.commons.schema.XmlSchemaType getSchemaType(QName name)
                                                         throws Exception
Throws:
Exception

processSequenceType

protected CorbaType processSequenceType(org.apache.ws.commons.schema.XmlSchemaSequence seq,
                                        QName defaultName,
                                        QName schemaTypeName)
                                 throws Exception
Throws:
Exception

processAllType

protected CorbaType processAllType(org.apache.ws.commons.schema.XmlSchemaAll seq,
                                   QName defaultName,
                                   QName schematypeName)
                            throws Exception
Throws:
Exception

processAttributesAsMembers

protected List<MemberType> processAttributesAsMembers(List<org.apache.ws.commons.schema.XmlSchemaAttributeOrGroupRef> list,
                                                      String uri)
                                               throws Exception
Throws:
Exception

lookUpType

protected org.apache.ws.commons.schema.XmlSchemaType lookUpType(javax.wsdl.Part part)

isSchemaTypeException

protected boolean isSchemaTypeException(org.apache.ws.commons.schema.XmlSchemaType stype)

isLiteralArray

public boolean isLiteralArray(org.apache.ws.commons.schema.XmlSchemaComplexType type)

createArray

protected CorbaType createArray(QName name,
                                QName schematypeName,
                                QName arrayType,
                                Long maxOccurs,
                                Long minOccurs,
                                boolean anonymous)
Create a CORBA Array or Sequence based on min and max Occurs If minOccurs == maxOccurs == 1 then log warning and return null. Else if minOccurs is equal to maxOccurs then create an Array. Else create a Sequence


createArray

protected CorbaType createArray(QName name,
                                QName schematypeName,
                                QName arrayType,
                                QName elName,
                                Long maxOccurs,
                                Long minOccurs,
                                boolean anonymous)
Create a CORBA Array or Sequence based on min and max Occurs If minOccurs == maxOccurs == 1 then log warning and return null. Else if minOccurs is equal to maxOccurs then create an Array. Else create a Sequence


processSimpleContentStruct

protected Struct processSimpleContentStruct(org.apache.ws.commons.schema.XmlSchemaSimpleContent simpleContent,
                                            QName defaultName,
                                            Struct corbaStruct,
                                            QName schematypeName)
                                     throws Exception
Throws:
Exception

processComplexContentStruct

protected Struct processComplexContentStruct(org.apache.ws.commons.schema.XmlSchemaComplexContent complex,
                                             QName defaultName,
                                             Struct corbaStruct,
                                             QName schematypeName)
                                      throws Exception
Throws:
Exception

processComplexContentStructChoice

protected MemberType processComplexContentStructChoice(org.apache.ws.commons.schema.XmlSchemaChoice choice,
                                                       QName schematypeName,
                                                       QName defaultName)
                                                throws Exception
Throws:
Exception

createNillableUnion

protected CorbaType createNillableUnion(QName name,
                                        QName schemaType,
                                        QName membertype,
                                        boolean isQualified)

createUnion

protected Union createUnion(QName name,
                            org.apache.ws.commons.schema.XmlSchemaChoice choice,
                            QName defaultName,
                            QName schematypeName)
                     throws Exception
Throws:
Exception

isDuplicate

protected boolean isDuplicate(CorbaType corbaTypeImpl)

isDuplicateException

protected CorbaType isDuplicateException(CorbaType corbaTypeImpl)

checkPrefix

protected QName checkPrefix(QName schematypeName)

createQNameTargetNamespace

public QName createQNameTargetNamespace(String name)

createQNameCorbaNamespace

public QName createQNameCorbaNamespace(String name)

createQName

public QName createQName(String name,
                         String namespaceName,
                         String prefix)

createQNameXmlSchemaNamespace

public QName createQNameXmlSchemaNamespace(String name)

queryBinding

protected static boolean queryBinding(javax.wsdl.Definition definition,
                                      QName bqname)

Apache CXF API

Apache CXF