Module org.eclipse.persistence.sdo
Class SDOTypesGenerator
java.lang.Object
org.eclipse.persistence.sdo.helper.SDOTypesGenerator
Purpose: Called from XSDHelper define methods to generate SDO Types from a Schema
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefine
(Source xsdSource, SchemaResolver schemaResolver) define
(Source xsdSource, SchemaResolver schemaResolver, boolean includeAllTypes, boolean processImports) getSchema
(Source xsdSource, SchemaResolver schemaResolver, boolean closeStream) Return a Schema for the given Source object.getSchema
(Source xsdSource, SchemaResolverWrapper schemaResolverWrapper, boolean closeStream) Return a Schema for the given Source object.boolean
boolean
boolean
void
setAnonymousTypes
(List<SDOType> anonymousTypes) void
setGeneratedGlobalAttributes
(Map<QName, Property> generatedAttributes) void
setGeneratedGlobalElements
(Map<QName, Property> generatedElements) void
setGeneratedTypes
(Map<QName, Type> generatedTypes) void
setGeneratedTypesByXsdQName
(Map<QName, SDOType> generatedTypesByXsdQName) void
setIsImportProcessor
(boolean isImport) void
setProcessImports
(boolean processImports) void
setReturnAllTypes
(boolean returnAllTypes)
-
Constructor Details
-
SDOTypesGenerator
-
-
Method Details
-
define
-
define
public List<Type> define(Source xsdSource, SchemaResolver schemaResolver, boolean includeAllTypes, boolean processImports) -
define
-
setGeneratedTypes
-
setGeneratedGlobalElements
-
setGeneratedGlobalAttributes
-
getAnonymousTypes
-
setAnonymousTypes
-
getGeneratedTypes
-
getGeneratedGlobalElements
-
getGeneratedTypesByXsdQName
-
setGeneratedTypesByXsdQName
-
getGeneratedGlobalAttributes
-
getSchema
Return a Schema for the given Source object. A SchemaResolverWrapper is created to wrap the given SchemaResolver. The wrapper will prevent schemas from being processed multiple times (such as in the case of circular includes/imports) This method should not be called recursively if a given schema could potentially and undesirably be processed multiple times (again, such as in the case of circular includes/imports)- Parameters:
xsdSource
-schemaResolver
- the schema resolver to be used to resolve imports/includes- Returns:
-
getSchema
public Schema getSchema(Source xsdSource, SchemaResolverWrapper schemaResolverWrapper, boolean closeStream) Return a Schema for the given Source object. Since this method is called recursively, and the SchemaResolverWrapper is stateful, the resolver wrapper must be created outside of this method.- Parameters:
xsdSource
-schemaResolverWrapper
- wraps the schema resolver to be used to resolve imports/includes- Returns:
-
getSchemaProject
-
getRootSchema
-
setProcessImports
public void setProcessImports(boolean processImports) -
isProcessImports
public boolean isProcessImports() -
setReturnAllTypes
public void setReturnAllTypes(boolean returnAllTypes) -
isReturnAllTypes
public boolean isReturnAllTypes() -
isImportProcessor
public boolean isImportProcessor() -
setIsImportProcessor
public void setIsImportProcessor(boolean isImport)
-