public class SDOSchemaGenerator extends Object
Purpose SDOSchemaGenerator generates an XSD (returned as a String) from a list of SDO Type objects. Populates an org.eclipse.persistence.internal.oxm.schema.model.Schema object and makes use of org.eclipse.persistence.internal.oxm.schema.SchemaModelProject to marshal the Schema Object to XML.
XSDHelper| Constructor and Description |
|---|
SDOSchemaGenerator(commonj.sdo.helper.HelperContext aContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
generate(List types,
Map aNamespaceToSchemaLocation)
Method to generate an XSD.
|
String |
generate(List types,
SchemaLocationResolver aSchemaLocationResolver)
Method to generate an XSD.
|
public SDOSchemaGenerator(commonj.sdo.helper.HelperContext aContext)
public String generate(List types, SchemaLocationResolver aSchemaLocationResolver)
Method to generate an XSD. Note the following:
types - The list of commonj.sdo.Type objects to generate the XSD fromaSchemaLocationResolver - implementation of the org.eclipse.persistence.sdo.helper.SchemaLocationResolver interface
used for getting the value of the schemaLocation attribute of generated imports and includespublic String generate(List types, Map aNamespaceToSchemaLocation)
Method to generate an XSD. Note the following:
types - The list of commonj.sdo.Type objects to generate the XSD fromaNamespaceToSchemaLocation - map of namespaces to schemaLocations
used for getting the value of the schemaLocation attribute of generated imports and includesCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.