org.deduced.implementation
Class DeducedModelLayerImplementation

java.lang.Object
  extended by org.deduced.AbstractPropertyCollection<K,V>
      extended by org.deduced.FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
          extended by org.deduced.implementation.DeducedModelLayerImplementation
All Implemented Interfaces:
java.lang.Cloneable, DeducedApplicationLayer, DeducedModelLayer, DocumentedCollection, NamedPropertyCollection, PropertyCollection<java.lang.Object,java.lang.Object>, SchemaBasedApplicationLayer
Direct Known Subclasses:
DeducedModelLayerExtensionImplementation

public class DeducedModelLayerImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements DeducedModelLayer

Java Implementation used to represent the type : deduced model layer Class generated by org.deduced.generator.VelocityGenerator Using template : org/deduced/generator/java/JavaImplementation.vm


Nested Class Summary
 
Nested classes/interfaces inherited from class org.deduced.AbstractPropertyCollection
AbstractPropertyCollection.CollectionToDeleteMonitor
 
Field Summary
private  PropertyList collectionList
          member variable holding the value for : collection list
private  PropertyList dependentModelList
          member variable holding the value for : dependent model list
private  java.lang.String documentation
          member variable holding the value for : documentation
static java.util.Set<java.lang.Object> KEY_SET
          list of keys held in this collection
private  java.lang.String name
          member variable holding the value for : name
private  SchemaAnalyzer schemaInformation
          member variable holding the value for : schema information
private  PropertyList schemaList
          member variable holding the value for : schema list
 
Fields inherited from class org.deduced.AbstractPropertyCollection
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE
 
Fields inherited from interface org.deduced.DeducedModelLayer
COLLECTION_LIST_INSTANCE, DEDUCED_MODEL_LAYER_TYPE, DEPENDENT_MODEL_LIST_INSTANCE
 
Fields inherited from interface org.deduced.SchemaBasedApplicationLayer
SCHEMA_BASED_APPLICATION_LAYER_TYPE, SCHEMA_INFORMATION_INSTANCE, SCHEMA_LIST_INSTANCE
 
Fields inherited from interface org.deduced.DeducedApplicationLayer
DEDUCED_APPLICATION_LAYER_TYPE
 
Fields inherited from interface org.deduced.NamedPropertyCollection
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.DocumentedCollection
DOCUMENTATION_INSTANCE, DOCUMENTED_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.PropertyCollection
PROPERTY_COLLECTION_TYPE
 
Constructor Summary
DeducedModelLayerImplementation()
          Default constructor for the type : deduced model layer
 
Method Summary
 java.util.Set<java.lang.Object> asKeySet()
           
 java.lang.Object clone()
          (non-Javadoc)
static void createInstancesAndTypes()
          create instances and types
static void createKeyList()
          static method used to initialize the key list on the property collection
 boolean equals(java.lang.Object o)
          (non-Javadoc)
static void fillInstancesAndTypes()
          fill instances and types phase 1
static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
          fill instances and types from a schema
static void fillTypeLists()
          fill instances and types phase 2
 PropertyList getCollectionList()
          (non-Javadoc)
static PropertyCollection getCollectionList(PropertyCollection<?,?> collection)
          Get the value of the instance : collection list
 PropertyList getDependentModelList()
          (non-Javadoc)
static PropertyCollection getDependentModelList(PropertyCollection<?,?> collection)
          Get the value of the instance : dependent model list
 java.lang.String getDocumentation()
          (non-Javadoc)
static java.lang.String getDocumentation(PropertyCollection<?,?> collection)
          Get the value of the instance : documentation
 java.lang.String getName()
          (non-Javadoc)
static java.lang.String getName(PropertyCollection<?,?> collection)
          Get the value of the instance : name
 java.lang.Object getPropertyValue(java.lang.Object key)
          (non-Javadoc)
 SchemaAnalyzer getSchemaInformation()
          (non-Javadoc)
static PropertyCollection getSchemaInformation(PropertyCollection<?,?> collection)
          Get the value of the instance : schema information
 PropertyList getSchemaList()
          (non-Javadoc)
static PropertyCollection getSchemaList(PropertyCollection<?,?> collection)
          Get the value of the instance : schema list
static void resetListFixedInstances(DeducedModelLayer instance)
          reset all the list fixed instances
static PropertyCollection setCollectionList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : collection list
 PropertyList setCollectionList(PropertyList setValue)
          (non-Javadoc)
static PropertyCollection setDependentModelList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : dependent model list
 PropertyList setDependentModelList(PropertyList setValue)
          (non-Javadoc)
static java.lang.String setDocumentation(PropertyCollection collection, java.lang.String value)
          set the value of the instance : documentation
 java.lang.String setDocumentation(java.lang.String setValue)
          (non-Javadoc)
static java.lang.String setName(PropertyCollection collection, java.lang.String value)
          set the value of the instance : name
 java.lang.String setName(java.lang.String setValue)
          (non-Javadoc)
 java.lang.Object setProperty(java.lang.Object key, java.lang.Object value)
          (non-Javadoc)
static PropertyCollection setSchemaInformation(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : schema information
 SchemaAnalyzer setSchemaInformation(SchemaAnalyzer setValue)
          (non-Javadoc)
static PropertyCollection setSchemaList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : schema list
 PropertyList setSchemaList(PropertyList setValue)
          (non-Javadoc)
 PropertyCollectionType type()
          (non-Javadoc)
 
Methods inherited from class org.deduced.FixedPropertyInstanceCollection
addProperty, areKeysAssignedAutomatically, containsKey, getProperty, iterator, iteratorByValue, removeProperty, removePropertyInstance, removePropertyValue, size
 
Methods inherited from class org.deduced.AbstractPropertyCollection
activate, addListener, asPropertyList, asPropertyMap, asValueList, asValueMap, callObjectClone, classLogger, cleanNewlyClonedValue, clear, clearCollectionMonitoredForDelete, cloneCollection, containsInstance, containsValue, createUniqueID, delete, deleteClearAllProperties, deleteClearListenerList, deleteFireDeleteEvent, deleteProcessCompletedValidation, deleteRemoveLocalObjectFromParent, deleteValidateEmptyListenerList, deleteValidateNoPendingReferences, firePropertyChangeEvent, flushCollectionsWithNewParent, flushCollectionsWithNewParent, getActionInvoker, getCheckDeleteMode, getCheckDeleteRunner, getFixedInstance, getInstanceIdentityKey, hashCode, id, instanceKey, internalFirePropertyChangeEvent, invokeAction, isActivated, isDeleteCheckedOnClearParent, isEmpty, isListenerRegistered, isParentOrKeyNull, keyOnParent, parent, removeListener, requiresChangeEvent, setActionInvoker, setCheckDeleteMode, setCheckDeleteRunner, setDeleteCheckedOnClearParent, setFixedInstance, setParent, toString, updateReference, updateReferenceWithReferenceFlag, validateAllPropertyInstances, validateNoListener, validateNoParentRecursion, validateParentIsNull, validateParentIsNull, valueKey
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deduced.PropertyCollection
activate, addListener, addProperty, areKeysAssignedAutomatically, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, containsInstance, containsKey, containsValue, delete, getFixedInstance, getProperty, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, size, valueKey
 

Field Detail

KEY_SET

public static java.util.Set<java.lang.Object> KEY_SET
list of keys held in this collection


collectionList

private PropertyList collectionList
member variable holding the value for : collection list


dependentModelList

private PropertyList dependentModelList
member variable holding the value for : dependent model list


schemaList

private PropertyList schemaList
member variable holding the value for : schema list


schemaInformation

private SchemaAnalyzer schemaInformation
member variable holding the value for : schema information


name

private java.lang.String name
member variable holding the value for : name


documentation

private java.lang.String documentation
member variable holding the value for : documentation

Constructor Detail

DeducedModelLayerImplementation

public DeducedModelLayerImplementation()
Default constructor for the type : deduced model layer

Method Detail

asKeySet

public java.util.Set<java.lang.Object> asKeySet()
Specified by:
asKeySet in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the key set

type

public PropertyCollectionType type()
(non-Javadoc)

Specified by:
type in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the property description
See Also:
PropertyCollection.type()

createKeyList

public static void createKeyList()
static method used to initialize the key list on the property collection


getCollectionList

public PropertyList getCollectionList()
(non-Javadoc)

Specified by:
getCollectionList in interface DeducedModelLayer
Returns:
collection list
See Also:
DeducedModelLayer.getCollectionList()

getCollectionList

public static PropertyCollection getCollectionList(PropertyCollection<?,?> collection)
Get the value of the instance : collection list

Parameters:
collection - new collection from which to fetch the value
Returns:
collection list

setCollectionList

public PropertyList setCollectionList(PropertyList setValue)
(non-Javadoc)

Specified by:
setCollectionList in interface DeducedModelLayer
Parameters:
setValue - new collection list
Returns:
collection list value after the change
See Also:
DeducedModelLayer.setCollectionList(org.deduced.PropertyList)

setCollectionList

public static PropertyCollection setCollectionList(PropertyCollection collection,
                                                   PropertyCollection value)
set the value of the instance : collection list

Parameters:
collection - new collection on which to set the value
value - new value for : collection list
Returns:
collection list

getDependentModelList

public PropertyList getDependentModelList()
(non-Javadoc)

Specified by:
getDependentModelList in interface DeducedModelLayer
Returns:
dependent model list
See Also:
DeducedModelLayer.getDependentModelList()

getDependentModelList

public static PropertyCollection getDependentModelList(PropertyCollection<?,?> collection)
Get the value of the instance : dependent model list

Parameters:
collection - new collection from which to fetch the value
Returns:
dependent model list

setDependentModelList

public PropertyList setDependentModelList(PropertyList setValue)
(non-Javadoc)

Specified by:
setDependentModelList in interface DeducedModelLayer
Parameters:
setValue - new dependent model list
Returns:
dependent model list value after the change
See Also:
DeducedModelLayer.setDependentModelList(org.deduced.PropertyList)

setDependentModelList

public static PropertyCollection setDependentModelList(PropertyCollection collection,
                                                       PropertyCollection value)
set the value of the instance : dependent model list

Parameters:
collection - new collection on which to set the value
value - new value for : dependent model list
Returns:
dependent model list

getSchemaList

public PropertyList getSchemaList()
(non-Javadoc)

Specified by:
getSchemaList in interface SchemaBasedApplicationLayer
Returns:
schema list
See Also:
SchemaBasedApplicationLayer.getSchemaList()

getSchemaList

public static PropertyCollection getSchemaList(PropertyCollection<?,?> collection)
Get the value of the instance : schema list

Parameters:
collection - new collection from which to fetch the value
Returns:
schema list

setSchemaList

public PropertyList setSchemaList(PropertyList setValue)
(non-Javadoc)

Specified by:
setSchemaList in interface SchemaBasedApplicationLayer
Parameters:
setValue - new schema list
Returns:
schema list value after the change
See Also:
SchemaBasedApplicationLayer.setSchemaList(org.deduced.PropertyList)

setSchemaList

public static PropertyCollection setSchemaList(PropertyCollection collection,
                                               PropertyCollection value)
set the value of the instance : schema list

Parameters:
collection - new collection on which to set the value
value - new value for : schema list
Returns:
schema list

getSchemaInformation

public SchemaAnalyzer getSchemaInformation()
(non-Javadoc)

Specified by:
getSchemaInformation in interface SchemaBasedApplicationLayer
Returns:
schema information
See Also:
SchemaBasedApplicationLayer.getSchemaInformation()

getSchemaInformation

public static PropertyCollection getSchemaInformation(PropertyCollection<?,?> collection)
Get the value of the instance : schema information

Parameters:
collection - new collection from which to fetch the value
Returns:
schema information

setSchemaInformation

public SchemaAnalyzer setSchemaInformation(SchemaAnalyzer setValue)
(non-Javadoc)

Specified by:
setSchemaInformation in interface SchemaBasedApplicationLayer
Parameters:
setValue - new schema information
Returns:
schema information value after the change
See Also:
SchemaBasedApplicationLayer.setSchemaInformation(org.deduced.SchemaAnalyzer)

setSchemaInformation

public static PropertyCollection setSchemaInformation(PropertyCollection collection,
                                                      PropertyCollection value)
set the value of the instance : schema information

Parameters:
collection - new collection on which to set the value
value - new value for : schema information
Returns:
schema information

getName

public java.lang.String getName()
(non-Javadoc)

Specified by:
getName in interface NamedPropertyCollection
Returns:
name
See Also:
NamedPropertyCollection.getName()

getName

public static java.lang.String getName(PropertyCollection<?,?> collection)
Get the value of the instance : name

Parameters:
collection - new collection from which to fetch the value
Returns:
name

setName

public java.lang.String setName(java.lang.String setValue)
(non-Javadoc)

Specified by:
setName in interface NamedPropertyCollection
Parameters:
setValue - new name
Returns:
name value after the change
See Also:
NamedPropertyCollection.setName(java.lang.String)

setName

public static java.lang.String setName(PropertyCollection collection,
                                       java.lang.String value)
set the value of the instance : name

Parameters:
collection - new collection on which to set the value
value - new value for : name
Returns:
name

getDocumentation

public java.lang.String getDocumentation()
(non-Javadoc)

Specified by:
getDocumentation in interface DocumentedCollection
Returns:
documentation
See Also:
DocumentedCollection.getDocumentation()

getDocumentation

public static java.lang.String getDocumentation(PropertyCollection<?,?> collection)
Get the value of the instance : documentation

Parameters:
collection - new collection from which to fetch the value
Returns:
documentation

setDocumentation

public java.lang.String setDocumentation(java.lang.String setValue)
(non-Javadoc)

Specified by:
setDocumentation in interface DocumentedCollection
Parameters:
setValue - new documentation
Returns:
documentation value after the change
See Also:
DocumentedCollection.setDocumentation(java.lang.String)

setDocumentation

public static java.lang.String setDocumentation(PropertyCollection collection,
                                                java.lang.String value)
set the value of the instance : documentation

Parameters:
collection - new collection on which to set the value
value - new value for : documentation
Returns:
documentation

equals

public boolean equals(java.lang.Object o)
(non-Javadoc)

Overrides:
equals in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
See Also:
Object.equals(java.lang.Object)

clone

public java.lang.Object clone()
(non-Javadoc)

Specified by:
clone in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
clone in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the object clone
See Also:
AbstractPropertyCollection.clone()

setProperty

public java.lang.Object setProperty(java.lang.Object key,
                                    java.lang.Object value)
(non-Javadoc)

Specified by:
setProperty in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
setProperty in class FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the key of the property
value - the new value of the property. If the property is a collection that is not by reference, this method requires that the passed collection has a parent set to null since it will reset the parent.
Returns:
the added value instance
See Also:
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object key)
(non-Javadoc)

Specified by:
getPropertyValue in interface PropertyCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the property key
Returns:
the property value, null if the get failed
See Also:
PropertyCollection.getPropertyValue(java.lang.Object)

resetListFixedInstances

public static void resetListFixedInstances(DeducedModelLayer instance)
reset all the list fixed instances

Parameters:
instance - the instance that will get all its list fixed instances set

createInstancesAndTypes

public static void createInstancesAndTypes()
create instances and types


fillInstancesAndTypesFromSchema

public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
fill instances and types from a schema

Parameters:
schema - the schema that contains the required instances and types

fillInstancesAndTypes

public static void fillInstancesAndTypes()
fill instances and types phase 1


fillTypeLists

public static void fillTypeLists()
fill instances and types phase 2