org.apache.axis2.wsdl.builder
Class SchemaGenerator

java.lang.Object
  extended byorg.apache.axis2.wsdl.builder.SchemaGenerator

public class SchemaGenerator
extends Object


Field Summary
protected  org.apache.commons.logging.Log log
           
static String METHOD_REQUEST_WRAPPER
           
static String METHOD_RESPONSE_WRAPPER
           
static String SCHEMA_NAMESPACE_PRFIX
           
static String SCHEMA_TARGET_NAMESPACE
           
static String TARGET_NAMESPACE
           
static String TARGET_NAMESPACE_PREFIX
           
 
Constructor Summary
SchemaGenerator(ClassLoader loader, String className, String schematargetNamespace, String schematargetNamespacePrefix)
           
 
Method Summary
 org.apache.ws.commons.schema.XmlSchema generateSchema()
          Generates schema for all the parameters in method.
static String getCorrectName(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
 org.codehaus.jam.JMethod[] getMethods()
           
 TypeTable getTypeTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log

METHOD_REQUEST_WRAPPER

public static String METHOD_REQUEST_WRAPPER

METHOD_RESPONSE_WRAPPER

public static String METHOD_RESPONSE_WRAPPER

TARGET_NAMESPACE

public static String TARGET_NAMESPACE

SCHEMA_TARGET_NAMESPACE

public static String SCHEMA_TARGET_NAMESPACE

SCHEMA_NAMESPACE_PRFIX

public static String SCHEMA_NAMESPACE_PRFIX

TARGET_NAMESPACE_PREFIX

public static String TARGET_NAMESPACE_PREFIX
Constructor Detail

SchemaGenerator

public SchemaGenerator(ClassLoader loader,
                       String className,
                       String schematargetNamespace,
                       String schematargetNamespacePrefix)
                throws Exception
Method Detail

generateSchema

public org.apache.ws.commons.schema.XmlSchema generateSchema()
                                                      throws Exception
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:
Exception

getCorrectName

public static String getCorrectName(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 -
Returns:
the right name, using english as the locale for case conversion

getTypeTable

public TypeTable getTypeTable()

getMethods

public org.codehaus.jam.JMethod[] getMethods()