public class SchemaModelGenerator extends Object
Purpose:Generate one or more EclipseLink Schema model objects based on a given list of XMLDescriptors.
Responsibilities:
This class will create and populate one or more EclipseLink schema model Schema objects for a given list of EclipseLink XMLDescriptors.
Schema
,
XMLDescriptor
Constructor and Description |
---|
SchemaModelGenerator(ConversionManager conversionManager)
The default constructor.
|
SchemaModelGenerator(ConversionManager conversionManager,
boolean customSwaRefSchema)
This constructor should be used with a value of 'true' when the schemaLocation
attribute of the import for swaRef should be swaref.xsd.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areNamespacesEqual(String ns1,
String ns2)
Indicates if two namespaces are equal.
|
Map<String,Schema> |
generateSchemas(List<Descriptor> descriptorsToProcess,
SchemaModelGeneratorProperties properties)
Generates a Map of EclipseLink schema model Schema objects for a given list of XMLDescriptors.
|
Map<String,Schema> |
generateSchemas(List<Descriptor> descriptorsToProcess,
SchemaModelGeneratorProperties properties,
Map<QName,Type> additionalGlobalElements)
Generates a Map of EclipseLink schema model Schema objects for a given list of XMLDescriptors.
|
Map<String,Schema> |
generateSchemas(List<Descriptor> descriptorsToProcess,
SchemaModelGeneratorProperties properties,
SchemaModelOutputResolver outputResolver)
Generates a Map of EclipseLink schema model Schema objects for a given list of XMLDescriptors.
|
Map<String,Schema> |
generateSchemas(List<Descriptor> descriptorsToProcess,
SchemaModelGeneratorProperties properties,
SchemaModelOutputResolver outputResolver,
Map<QName,Type> additionalGlobalElements)
Generates a Map of EclipseLink schema model Schema objects for a given list of XMLDescriptors.
|
public SchemaModelGenerator(ConversionManager conversionManager)
public SchemaModelGenerator(ConversionManager conversionManager, boolean customSwaRefSchema)
public Map<String,Schema> generateSchemas(List<Descriptor> descriptorsToProcess, SchemaModelGeneratorProperties properties, Map<QName,Type> additionalGlobalElements) throws DescriptorException
descriptorsToProcess
- list of XMLDescriptors which will be used to generate Schema objectsproperties
- holds a namespace to Properties map containing schema settings, such as elementFormDefaultadditionalGlobalElements
- a map of QName-Type entries identifying additional global elements to be addedDescriptorException
- if the reference descriptor for a composite mapping is not in the list of descriptorsSchema
public Map<String,Schema> generateSchemas(List<Descriptor> descriptorsToProcess, SchemaModelGeneratorProperties properties) throws DescriptorException
descriptorsToProcess
- list of XMLDescriptors which will be used to generate Schema objectsproperties
- holds a namespace to Properties map containing schema settings, such as elementFormDefaultDescriptorException
- if the reference descriptor for a composite mapping is not in the list of descriptorsSchema
public Map<String,Schema> generateSchemas(List<Descriptor> descriptorsToProcess, SchemaModelGeneratorProperties properties, SchemaModelOutputResolver outputResolver, Map<QName,Type> additionalGlobalElements) throws DescriptorException
descriptorsToProcess
- list of XMLDescriptors which will be used to generate Schema objectsproperties
- holds a namespace to Properties map containing schema settings, such as elementFormDefaultadditionalGlobalElements
- a map of QName-Type entries identifying additional global elements to be addedDescriptorException
- if the reference descriptor for a composite mapping is not in the list of descriptorsSchema
public Map<String,Schema> generateSchemas(List<Descriptor> descriptorsToProcess, SchemaModelGeneratorProperties properties, SchemaModelOutputResolver outputResolver) throws DescriptorException
descriptorsToProcess
- list of XMLDescriptors which will be used to generate Schema objectsproperties
- holds a namespace to Properties map containing schema settings, such as elementFormDefaultDescriptorException
- if the reference descriptor for a composite mapping is not in the list of descriptorsSchema
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference