org.deduced.framework
Class ControllerSchema

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

public class ControllerSchema
extends java.lang.Object

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


Field Summary
private static ControllerSchema INSTANCE
          singleton instance used to initialize the schema
static DeducedModelLayerExtension MODEL
          model layer containing the packages and types
static PropertyPackage ORG_DEDUCED_CONTROLLER_PACKAGE
          variable used to hold the package : controller
static PropertyPackage ORG_DEDUCED_CONTROLLER_TYPED_PACKAGE
          variable used to hold the package : typed
static PropertyPackage ORG_DEDUCED_PACKAGE
          variable used to hold the package : deduced
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 ControllerSchema()
          Constructor for the schema
private ControllerSchema(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 ControllerSchema getInstance()
          get the schema initializer singleton
static ControllerSchema 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 ControllerSchema 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_CONTROLLER_TYPED_PACKAGE

public static PropertyPackage ORG_DEDUCED_CONTROLLER_TYPED_PACKAGE
variable used to hold the package : typed

Constructor Detail

ControllerSchema

private ControllerSchema(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

ControllerSchema

private ControllerSchema()
Constructor for the schema

Method Detail

getInstance

public static ControllerSchema getInstance()
get the schema initializer singleton

Returns:
the schema initializer singleton

initializeFromXml

public static ControllerSchema 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