public class SchemaGenerator extends Object implements CorbaConstants
Modifier and Type | Field and Description |
---|---|
protected Map |
schemaMap |
protected Map |
targetNamespacePrefixMap |
protected org.apache.ws.commons.schema.XmlSchemaCollection |
xmlSchemaCollection |
ANY_TYPE_NAME, ARRAY_ITEM, DEFAULR_ORB_CLASS, DEFAULT_ORBSINGLETON_CLASS, DEFAULT_SCHEMA_NAMESPACE_PREFIX, FAULT, FORM_DEFAULT_QUALIFIED, 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, SCHEMA_TO_IDL_MAPPING_LITERAL, TYPECODE_TYPE_NAME, URI_2001_SCHEMA_XSD, VOID
Constructor and Description |
---|
SchemaGenerator(IDL idl,
String interfaceName,
String schematargetNamespace,
String schematargetNamespacePrefix) |
Modifier and Type | Method and Description |
---|---|
Collection |
generateSchema()
Generates schema for all the parameters in method.
|
String |
getAttrFormDefault() |
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
|
String |
getElementFormDefault() |
ArrayList |
getExtraClasses() |
NamespaceGenerator |
getNsGen() |
Map |
getPkg2nsmap() |
String |
getSchemaTargetNameSpace() |
SchemaToIDLMapping |
getSchemaToIDLMapping() |
protected String |
getSimpleName(DataType type) |
String |
getTargetNamespace() |
TypeTable |
getTypeTable() |
boolean |
isUseWSDLTypesNamespace() |
void |
setAttrFormDefault(String attrFormDefault) |
void |
setElementFormDefault(String elementFormDefault) |
void |
setExcludeMethods(ArrayList excludeMethods) |
void |
setExtraClasses(ArrayList extraClasses) |
void |
setNonRpcMethods(ArrayList nonRpcMethods) |
void |
setNsGen(NamespaceGenerator nsGen) |
void |
setPkg2nsmap(Map pkg2nsmap) |
void |
setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace) |
protected Map targetNamespacePrefixMap
protected Map schemaMap
protected org.apache.ws.commons.schema.XmlSchemaCollection xmlSchemaCollection
public NamespaceGenerator getNsGen() throws SchemaGeneratorException
SchemaGeneratorException
public void setNsGen(NamespaceGenerator nsGen)
public Collection generateSchema() throws SchemaGeneratorException
SchemaGeneratorException
- if failedpublic static String getCorrectName(String wrongName)
wrongName
- wrong namepublic TypeTable getTypeTable()
public void setExcludeMethods(ArrayList excludeMethods)
public String getSchemaTargetNameSpace()
public String getAttrFormDefault()
public void setAttrFormDefault(String attrFormDefault)
public String getElementFormDefault()
public void setElementFormDefault(String elementFormDefault)
public ArrayList getExtraClasses()
public void setExtraClasses(ArrayList extraClasses)
public boolean isUseWSDLTypesNamespace()
public void setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)
public Map getPkg2nsmap()
public void setPkg2nsmap(Map pkg2nsmap)
public String getTargetNamespace()
public void setNonRpcMethods(ArrayList nonRpcMethods)
public SchemaToIDLMapping getSchemaToIDLMapping()
Copyright © The Apache Software Foundation. All Rights Reserved.