org.deduced.framework
Class DefaultSchema

java.lang.Object
  extended by org.deduced.framework.DefaultSchema

public class DefaultSchema
extends java.lang.Object

Class used to initialize the schema : org.deduced.framework.DefaultSchema extends org.deduced.framework.FrameworkLoader Class generated by org.deduced.generator.VelocityGenerator Using template : org/deduced/generator/java/JavaFramework.vm


Field Summary
private static DefaultSchema INSTANCE
          singleton instance used to initialize the schema
static DeducedModelLayerExtension MODEL
          model layer containing the packages and types
static PropertyPackage ORG_DEDUCED_ANALYZER_PACKAGE
          variable used to hold the package : analyzer
static PropertyPackage ORG_DEDUCED_CONTROLLER_PACKAGE
          variable used to hold the package : controller
static PropertyPackage ORG_DEDUCED_INITIALIZATION_MODEL_PACKAGE
          variable used to hold the package : model
static PropertyPackage ORG_DEDUCED_INITIALIZATION_PACKAGE
          variable used to hold the package : initialization
static PropertyPackage ORG_DEDUCED_PACKAGE
          variable used to hold the package : deduced
static PropertyPackage ORG_DEDUCED_TASK_PACKAGE
          variable used to hold the package : task
static PropertyPackage ORG_DEDUCED_TEXT_BUILDER_PACKAGE
          variable used to hold the package : builder
static PropertyPackage ORG_DEDUCED_TEXT_PACKAGE
          variable used to hold the package : text
static PropertyPackage ORG_DEDUCED_VALIDATION_MODEL_PACKAGE
          variable used to hold the package : model
static PropertyPackage ORG_DEDUCED_VALIDATION_PACKAGE
          variable used to hold the package : validation
static PropertyPackage ORG_DEDUCED_VALIDATION_VALIDATOR_PACKAGE
          variable used to hold the package : validator
static PropertyPackage ORG_PACKAGE
          variable used to hold the package : org
static PropertyPackage ROOT_PACKAGE
          variable used to hold the package :
static DeducedSchemaLayer SCHEMA
          schema layer containing the packages and types
static java.lang.String XML_FILE_NAME
          file name used to load this schema
 
Constructor Summary
private DefaultSchema()
          Constructor for the schema
private DefaultSchema(boolean loadedFromXml, PropertyCollection model)
          Constructor for the schema
 
Method Summary
static void configureFactory(TypeBasedModelFactory factoryToConfigure)
          configure a model factory to associate the required classes to the Property Collection types.
private  void createFramework()
          load the framework
static void createInstancesAndTypes()
          create all instances and types
static void createKeyList()
          create the key list for each type
static void createPackages()
          create all the packages
static void fillInstancesAndTypes()
          fill all instances and types
static void fillPackageSubPackages()
          fill all the package sub packages
static void fillPackageSubTypes()
          fill all the packages sub types
static void fillStaticVariablesFromSchema(PropertyCollection<?,?> schema)
          fill all the static variables from the schema
static void fillTypeLists()
          create all the type lists
static DefaultSchema getInstance()
          get the schema initializer singleton
static DefaultSchema initializeFromXml()
          initialize the schema from XML
static void loadSchemaFromXml(PropertyCollection model)
          fill all the static variables from the schema
static void resetPackageListFixedInstances()
          reset all the fixed instances on each list in a package
static void resetTypeListFixedInstances()
          reset all the fixed instances on each list in a type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static DefaultSchema INSTANCE
singleton instance used to initialize the schema


XML_FILE_NAME

public static java.lang.String XML_FILE_NAME
file name used to load this schema


SCHEMA

public static DeducedSchemaLayer SCHEMA
schema layer containing the packages and types


MODEL

public static DeducedModelLayerExtension MODEL
model layer containing the packages and types


ROOT_PACKAGE

public static PropertyPackage ROOT_PACKAGE
variable used to hold the package :


ORG_PACKAGE

public static PropertyPackage ORG_PACKAGE
variable used to hold the package : org


ORG_DEDUCED_PACKAGE

public static PropertyPackage ORG_DEDUCED_PACKAGE
variable used to hold the package : deduced


ORG_DEDUCED_CONTROLLER_PACKAGE

public static PropertyPackage ORG_DEDUCED_CONTROLLER_PACKAGE
variable used to hold the package : controller


ORG_DEDUCED_VALIDATION_PACKAGE

public static PropertyPackage ORG_DEDUCED_VALIDATION_PACKAGE
variable used to hold the package : validation


ORG_DEDUCED_VALIDATION_VALIDATOR_PACKAGE

public static PropertyPackage ORG_DEDUCED_VALIDATION_VALIDATOR_PACKAGE
variable used to hold the package : validator


ORG_DEDUCED_VALIDATION_MODEL_PACKAGE

public static PropertyPackage ORG_DEDUCED_VALIDATION_MODEL_PACKAGE
variable used to hold the package : model


ORG_DEDUCED_ANALYZER_PACKAGE

public static PropertyPackage ORG_DEDUCED_ANALYZER_PACKAGE
variable used to hold the package : analyzer


ORG_DEDUCED_TASK_PACKAGE

public static PropertyPackage ORG_DEDUCED_TASK_PACKAGE
variable used to hold the package : task


ORG_DEDUCED_INITIALIZATION_PACKAGE

public static PropertyPackage ORG_DEDUCED_INITIALIZATION_PACKAGE
variable used to hold the package : initialization


ORG_DEDUCED_INITIALIZATION_MODEL_PACKAGE

public static PropertyPackage ORG_DEDUCED_INITIALIZATION_MODEL_PACKAGE
variable used to hold the package : model


ORG_DEDUCED_TEXT_PACKAGE

public static PropertyPackage ORG_DEDUCED_TEXT_PACKAGE
variable used to hold the package : text


ORG_DEDUCED_TEXT_BUILDER_PACKAGE

public static PropertyPackage ORG_DEDUCED_TEXT_BUILDER_PACKAGE
variable used to hold the package : builder

Constructor Detail

DefaultSchema

private DefaultSchema(boolean loadedFromXml,
                      PropertyCollection model)
Constructor for the schema

Parameters:
loadedFromXml - set to true if loading from XML
model - the application model to use if loading from XML

DefaultSchema

private DefaultSchema()
Constructor for the schema

Method Detail

getInstance

public static DefaultSchema getInstance()
get the schema initializer singleton

Returns:
the schema initializer singleton

initializeFromXml

public static DefaultSchema initializeFromXml()
initialize the schema from XML

Returns:
the schema initializer singleton

configureFactory

public static void configureFactory(TypeBasedModelFactory factoryToConfigure)
configure a model factory to associate the required classes to the Property Collection types.

Parameters:
factoryToConfigure - the model factory

createFramework

private void createFramework()
load the framework


loadSchemaFromXml

public static void loadSchemaFromXml(PropertyCollection model)
fill all the static variables from the schema

Parameters:
model - the model to use

fillStaticVariablesFromSchema

public static void fillStaticVariablesFromSchema(PropertyCollection<?,?> schema)
fill all the static variables from the schema

Parameters:
schema - the schema to use

createInstancesAndTypes

public static void createInstancesAndTypes()
create all instances and types


fillInstancesAndTypes

public static void fillInstancesAndTypes()
fill all instances and types


fillTypeLists

public static void fillTypeLists()
create all the type lists


createPackages

public static void createPackages()
create all the packages


fillPackageSubPackages

public static void fillPackageSubPackages()
fill all the package sub packages


fillPackageSubTypes

public static void fillPackageSubTypes()
fill all the packages sub types


createKeyList

public static void createKeyList()
create the key list for each type


resetTypeListFixedInstances

public static void resetTypeListFixedInstances()
reset all the fixed instances on each list in a type


resetPackageListFixedInstances

public static void resetPackageListFixedInstances()
reset all the fixed instances on each list in a package