org.apache.axis2.corba.deployer
Class SchemaGenerator
java.lang.Object
org.apache.axis2.corba.deployer.SchemaGenerator
- All Implemented Interfaces:
- CorbaConstants
public class SchemaGenerator
- extends Object
- implements CorbaConstants
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetNamespacePrefixMap
protected Map targetNamespacePrefixMap
schemaMap
protected Map schemaMap
xmlSchemaCollection
protected org.apache.ws.commons.schema.XmlSchemaCollection xmlSchemaCollection
SchemaGenerator
public SchemaGenerator(IDL idl,
String interfaceName,
String schematargetNamespace,
String schematargetNamespacePrefix)
throws Exception
- Throws:
Exception
getNsGen
public NamespaceGenerator getNsGen()
throws SchemaGeneratorException
- Throws:
SchemaGeneratorException
setNsGen
public void setNsGen(NamespaceGenerator nsGen)
generateSchema
public 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 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
- wrong name
- Returns:
- the right name, using english as the locale for case conversion
getTypeTable
public TypeTable getTypeTable()
setExcludeMethods
public void setExcludeMethods(ArrayList excludeMethods)
getSchemaTargetNameSpace
public String getSchemaTargetNameSpace()
getAttrFormDefault
public String getAttrFormDefault()
setAttrFormDefault
public void setAttrFormDefault(String attrFormDefault)
getElementFormDefault
public String getElementFormDefault()
setElementFormDefault
public void setElementFormDefault(String elementFormDefault)
getExtraClasses
public ArrayList getExtraClasses()
setExtraClasses
public void setExtraClasses(ArrayList extraClasses)
isUseWSDLTypesNamespace
public boolean isUseWSDLTypesNamespace()
setUseWSDLTypesNamespace
public void setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)
getPkg2nsmap
public Map getPkg2nsmap()
setPkg2nsmap
public void setPkg2nsmap(Map pkg2nsmap)
getTargetNamespace
public String getTargetNamespace()
getSimpleName
protected String getSimpleName(DataType type)
setNonRpcMethods
public void setNonRpcMethods(ArrayList nonRpcMethods)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.