org.apache.axis2.corba.deployer
Class SchemaGenerator

java.lang.Object
  extended by org.apache.axis2.corba.deployer.SchemaGenerator
All Implemented Interfaces:
CorbaConstants

public class SchemaGenerator
extends java.lang.Object
implements CorbaConstants


Field Summary
protected  java.util.Map schemaMap
           
protected  java.util.Map targetNamespacePrefixMap
           
protected  org.apache.ws.commons.schema.XmlSchemaCollection xmlSchemaCollection
           
 
Fields inherited from interface org.apache.axis2.corba.deployer.CorbaConstants
ARRAY_ITEM, DEFAULR_ORB_CLASS, DEFAULT_ORBSINGLETON_CLASS, DEFAULT_SCHEMA_NAMESPACE_PREFIX, FAULT, FORM_DEFAULT_UNQUALIFIED, HTTP, IDL_FILE, IDL_LITERAL, INTERFACE_NAME, IOR_FILE_PATH, IOR_STRING, NAME_SPACE_PREFIX, NAMING_SERVICE_URL, OBJECT_NAME, ORB_CLASS, ORB_LITERAL, ORB_SINGLETON_CLASS, ORG_OMG_CORBA_ORBCLASS, ORG_OMG_CORBA_ORBSINGLETON_CLASS, PACKAGE_CLASS_DELIMITER, RESPONSE, RETURN_WRAPPER, SCHEMA_NAMESPACE_EXTN, URI_2001_SCHEMA_XSD, VOID
 
Constructor Summary
SchemaGenerator(IDL idl, java.lang.String interfaceName, java.lang.String schematargetNamespace, java.lang.String schematargetNamespacePrefix)
           
 
Method Summary
 java.util.Collection generateSchema()
          Generates schema for all the parameters in method.
 java.lang.String getAttrFormDefault()
           
static java.lang.String getCorrectName(java.lang.String wrongName)
          JAM convert first name of an attribute into UpperCase as an example if there is a instance variable called foo in a bean , then Jam give that as Foo so this method is to correct that error
 java.lang.String getElementFormDefault()
           
 java.util.ArrayList getExtraClasses()
           
 NamespaceGenerator getNsGen()
           
 java.util.Map getPkg2nsmap()
           
 java.lang.String getSchemaTargetNameSpace()
           
protected  java.lang.String getSimpleName(DataType type)
           
 java.lang.String getTargetNamespace()
           
 TypeTable getTypeTable()
           
 boolean isUseWSDLTypesNamespace()
           
 void setAttrFormDefault(java.lang.String attrFormDefault)
           
 void setElementFormDefault(java.lang.String elementFormDefault)
           
 void setExcludeMethods(java.util.ArrayList excludeMethods)
           
 void setExtraClasses(java.util.ArrayList extraClasses)
           
 void setNonRpcMethods(java.util.ArrayList nonRpcMethods)
           
 void setNsGen(NamespaceGenerator nsGen)
           
 void setPkg2nsmap(java.util.Map pkg2nsmap)
           
 void setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetNamespacePrefixMap

protected java.util.Map targetNamespacePrefixMap

schemaMap

protected java.util.Map schemaMap

xmlSchemaCollection

protected org.apache.ws.commons.schema.XmlSchemaCollection xmlSchemaCollection
Constructor Detail

SchemaGenerator

public SchemaGenerator(IDL idl,
                       java.lang.String interfaceName,
                       java.lang.String schematargetNamespace,
                       java.lang.String schematargetNamespacePrefix)
                throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getNsGen

public NamespaceGenerator getNsGen()
                            throws SchemaGeneratorException
Throws:
SchemaGeneratorException

setNsGen

public void setNsGen(NamespaceGenerator nsGen)

generateSchema

public java.util.Collection generateSchema()
                                    throws SchemaGeneratorException
Generates schema for all the parameters in method. First generates schema for all different parameter type and later refers to them.

Returns:
Returns XmlSchema.
Throws:
SchemaGeneratorException - if failed

getCorrectName

public static java.lang.String getCorrectName(java.lang.String wrongName)
JAM convert first name of an attribute into UpperCase as an example if there is a instance variable called foo in a bean , then Jam give that as Foo so this method is to correct that error

Parameters:
wrongName - wrong name
Returns:
the right name, using english as the locale for case conversion

getTypeTable

public TypeTable getTypeTable()

setExcludeMethods

public void setExcludeMethods(java.util.ArrayList excludeMethods)

getSchemaTargetNameSpace

public java.lang.String getSchemaTargetNameSpace()

getAttrFormDefault

public java.lang.String getAttrFormDefault()

setAttrFormDefault

public void setAttrFormDefault(java.lang.String attrFormDefault)

getElementFormDefault

public java.lang.String getElementFormDefault()

setElementFormDefault

public void setElementFormDefault(java.lang.String elementFormDefault)

getExtraClasses

public java.util.ArrayList getExtraClasses()

setExtraClasses

public void setExtraClasses(java.util.ArrayList extraClasses)

isUseWSDLTypesNamespace

public boolean isUseWSDLTypesNamespace()

setUseWSDLTypesNamespace

public void setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)

getPkg2nsmap

public java.util.Map getPkg2nsmap()

setPkg2nsmap

public void setPkg2nsmap(java.util.Map pkg2nsmap)

getTargetNamespace

public java.lang.String getTargetNamespace()

getSimpleName

protected java.lang.String getSimpleName(DataType type)

setNonRpcMethods

public void setNonRpcMethods(java.util.ArrayList nonRpcMethods)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.