Class SDOTypesGenerator

java.lang.Object
org.eclipse.persistence.sdo.helper.SDOTypesGenerator

public class SDOTypesGenerator extends Object

Purpose: Called from XSDHelper define methods to generate SDO Types from a Schema

See Also:
  • Constructor Details

    • SDOTypesGenerator

      public SDOTypesGenerator(HelperContext aContext)
  • Method Details

    • define

      public List<Type> define(Source xsdSource, SchemaResolver schemaResolver)
    • define

      public List<Type> define(Source xsdSource, SchemaResolver schemaResolver, boolean includeAllTypes, boolean processImports)
    • define

      public List<Type> define(Schema schema, boolean includeAllTypes, boolean processImports)
    • setGeneratedTypes

      public void setGeneratedTypes(Map<QName,Type> generatedTypes)
    • setGeneratedGlobalElements

      public void setGeneratedGlobalElements(Map<QName,Property> generatedElements)
    • setGeneratedGlobalAttributes

      public void setGeneratedGlobalAttributes(Map<QName,Property> generatedAttributes)
    • getAnonymousTypes

      public List<SDOType> getAnonymousTypes()
    • setAnonymousTypes

      public void setAnonymousTypes(List<SDOType> anonymousTypes)
    • getGeneratedTypes

      public Map<QName,Type> getGeneratedTypes()
    • getGeneratedGlobalElements

      public Map<QName,Property> getGeneratedGlobalElements()
    • getGeneratedTypesByXsdQName

      public Map<QName,SDOType> getGeneratedTypesByXsdQName()
    • setGeneratedTypesByXsdQName

      public void setGeneratedTypesByXsdQName(Map<QName,SDOType> generatedTypesByXsdQName)
    • getGeneratedGlobalAttributes

      public Map<QName,Property> getGeneratedGlobalAttributes()
    • getSchema

      public Schema getSchema(Source xsdSource, SchemaResolver schemaResolver, boolean closeStream)
      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

      public Project getSchemaProject()
    • getRootSchema

      public Schema 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)