org.deduced.controller.implementation
Class PropertyControllerModelImplementation

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.controller.implementation.PropertyControllerModelImplementation
All Implemented Interfaces:
java.lang.Cloneable, PropertyControllerModel, NamedPropertyCollection, PropertyCollection<java.lang.Object,java.lang.Object>
Direct Known Subclasses:
DirectPropertyController

public class PropertyControllerModelImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements PropertyControllerModel

Java Implementation used to represent the type : property controller model 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  PropertyCollection controlledCollection
          member variable holding the value for : controlled collection
private  PropertyCollection controlledPropertyInstance
          member variable holding the value for : controlled property instance
private  PropertyCollection controlledPropertyValueType
          member variable holding the value for : controlled property value type
private  boolean isChangeable
          member variable holding the value for : is changeable
private  boolean isRemovable
          member variable holding the value for : is removable
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  java.lang.Object propertyKey
          member variable holding the value for : property key
private  java.lang.Object propertyValue
          member variable holding the value for : property value
 
Fields inherited from class org.deduced.AbstractPropertyCollection
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE
 
Fields inherited from interface org.deduced.controller.PropertyControllerModel
CONTROLLED_COLLECTION_INSTANCE, CONTROLLED_PROPERTY_INSTANCE_INSTANCE, CONTROLLED_PROPERTY_VALUE_TYPE_INSTANCE, IS_CHANGEABLE_INSTANCE, IS_REMOVABLE_INSTANCE, PROPERTY_CONTROLLER_MODEL_TYPE, PROPERTY_KEY_INSTANCE, PROPERTY_VALUE_INSTANCE
 
Fields inherited from interface org.deduced.NamedPropertyCollection
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.PropertyCollection
PROPERTY_COLLECTION_TYPE
 
Constructor Summary
PropertyControllerModelImplementation()
          Default constructor for the type : property controller model
 
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
 PropertyCollection getControlledCollection()
          (non-Javadoc)
static PropertyCollection getControlledCollection(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled collection
 PropertyCollection getControlledPropertyInstance()
          (non-Javadoc)
static PropertyCollection getControlledPropertyInstance(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled property instance
 PropertyCollection getControlledPropertyValueType()
          (non-Javadoc)
static PropertyCollection getControlledPropertyValueType(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled property value type
 java.lang.String getName()
          (non-Javadoc)
static java.lang.String getName(PropertyCollection<?,?> collection)
          Get the value of the instance : name
 java.lang.Object getPropertyKey()
          (non-Javadoc)
static java.lang.Object getPropertyKey(PropertyCollection<?,?> collection)
          Get the value of the instance : property key
 java.lang.Object getPropertyValue()
          (non-Javadoc)
 java.lang.Object getPropertyValue(java.lang.Object key)
          (non-Javadoc)
static java.lang.Object getPropertyValue(PropertyCollection<?,?> collection)
          Get the value of the instance : property value
 boolean isChangeable()
          (non-Javadoc)
static java.lang.Boolean isChangeable(PropertyCollection<?,?> collection)
          Get the value of the instance : is changeable
 boolean isRemovable()
          (non-Javadoc)
static java.lang.Boolean isRemovable(PropertyCollection<?,?> collection)
          Get the value of the instance : is removable
static void resetListFixedInstances(PropertyControllerModel instance)
          reset all the list fixed instances
 PropertyCollection setControlledCollection(PropertyCollection setValue)
          (non-Javadoc)
static PropertyCollection setControlledCollection(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled collection
 PropertyCollection setControlledPropertyInstance(PropertyCollection setValue)
          (non-Javadoc)
static PropertyCollection setControlledPropertyInstance(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled property instance
 PropertyCollection setControlledPropertyValueType(PropertyCollection setValue)
          (non-Javadoc)
static PropertyCollection setControlledPropertyValueType(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled property value type
 boolean setIsChangeable(boolean setValue)
          (non-Javadoc)
static java.lang.Boolean setIsChangeable(PropertyCollection collection, java.lang.Boolean value)
          set the value of the instance : is changeable
 boolean setIsRemovable(boolean setValue)
          (non-Javadoc)
static java.lang.Boolean setIsRemovable(PropertyCollection collection, java.lang.Boolean value)
          set the value of the instance : is removable
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)
 java.lang.Object setPropertyKey(java.lang.Object setValue)
          (non-Javadoc)
static java.lang.Object setPropertyKey(PropertyCollection collection, java.lang.Object value)
          set the value of the instance : property key
 java.lang.Object setPropertyValue(java.lang.Object setValue)
          (non-Javadoc)
static java.lang.Object setPropertyValue(PropertyCollection collection, java.lang.Object value)
          set the value of the instance : property value
 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


controlledCollection

private PropertyCollection controlledCollection
member variable holding the value for : controlled collection


propertyKey

private java.lang.Object propertyKey
member variable holding the value for : property key


propertyValue

private java.lang.Object propertyValue
member variable holding the value for : property value


isChangeable

private boolean isChangeable
member variable holding the value for : is changeable


isRemovable

private boolean isRemovable
member variable holding the value for : is removable


controlledPropertyInstance

private PropertyCollection controlledPropertyInstance
member variable holding the value for : controlled property instance


controlledPropertyValueType

private PropertyCollection controlledPropertyValueType
member variable holding the value for : controlled property value type


name

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

Constructor Detail

PropertyControllerModelImplementation

public PropertyControllerModelImplementation()
Default constructor for the type : property controller model

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


getControlledCollection

public PropertyCollection getControlledCollection()
(non-Javadoc)

Specified by:
getControlledCollection in interface PropertyControllerModel
Returns:
controlled collection
See Also:
PropertyControllerModel.getControlledCollection()

getControlledCollection

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

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

setControlledCollection

public PropertyCollection setControlledCollection(PropertyCollection setValue)
(non-Javadoc)

Specified by:
setControlledCollection in interface PropertyControllerModel
Parameters:
setValue - new controlled collection
Returns:
controlled collection value after the change
See Also:
PropertyControllerModel.setControlledCollection(org.deduced.PropertyCollection)

setControlledCollection

public static PropertyCollection setControlledCollection(PropertyCollection collection,
                                                         PropertyCollection value)
set the value of the instance : controlled collection

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

getPropertyKey

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

Specified by:
getPropertyKey in interface PropertyControllerModel
Returns:
property key
See Also:
PropertyControllerModel.getPropertyKey()

getPropertyKey

public static java.lang.Object getPropertyKey(PropertyCollection<?,?> collection)
Get the value of the instance : property key

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

setPropertyKey

public java.lang.Object setPropertyKey(java.lang.Object setValue)
(non-Javadoc)

Specified by:
setPropertyKey in interface PropertyControllerModel
Parameters:
setValue - new property key
Returns:
property key value after the change
See Also:
PropertyControllerModel.setPropertyKey(java.lang.Object)

setPropertyKey

public static java.lang.Object setPropertyKey(PropertyCollection collection,
                                              java.lang.Object value)
set the value of the instance : property key

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

getPropertyValue

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

Specified by:
getPropertyValue in interface PropertyControllerModel
Returns:
property value
See Also:
PropertyControllerModel.getPropertyValue()

getPropertyValue

public static java.lang.Object getPropertyValue(PropertyCollection<?,?> collection)
Get the value of the instance : property value

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

setPropertyValue

public java.lang.Object setPropertyValue(java.lang.Object setValue)
(non-Javadoc)

Specified by:
setPropertyValue in interface PropertyControllerModel
Parameters:
setValue - new property value
Returns:
property value value after the change
See Also:
PropertyControllerModel.setPropertyValue(java.lang.Object)

setPropertyValue

public static java.lang.Object setPropertyValue(PropertyCollection collection,
                                                java.lang.Object value)
set the value of the instance : property value

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

isChangeable

public boolean isChangeable()
(non-Javadoc)

Specified by:
isChangeable in interface PropertyControllerModel
Returns:
is changeable
See Also:
PropertyControllerModel.isChangeable()

isChangeable

public static java.lang.Boolean isChangeable(PropertyCollection<?,?> collection)
Get the value of the instance : is changeable

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

setIsChangeable

public boolean setIsChangeable(boolean setValue)
(non-Javadoc)

Specified by:
setIsChangeable in interface PropertyControllerModel
Parameters:
setValue - new is changeable
Returns:
is changeable value after the change
See Also:
PropertyControllerModel.setIsChangeable(boolean)

setIsChangeable

public static java.lang.Boolean setIsChangeable(PropertyCollection collection,
                                                java.lang.Boolean value)
set the value of the instance : is changeable

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

isRemovable

public boolean isRemovable()
(non-Javadoc)

Specified by:
isRemovable in interface PropertyControllerModel
Returns:
is removable
See Also:
PropertyControllerModel.isRemovable()

isRemovable

public static java.lang.Boolean isRemovable(PropertyCollection<?,?> collection)
Get the value of the instance : is removable

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

setIsRemovable

public boolean setIsRemovable(boolean setValue)
(non-Javadoc)

Specified by:
setIsRemovable in interface PropertyControllerModel
Parameters:
setValue - new is removable
Returns:
is removable value after the change
See Also:
PropertyControllerModel.setIsRemovable(boolean)

setIsRemovable

public static java.lang.Boolean setIsRemovable(PropertyCollection collection,
                                               java.lang.Boolean value)
set the value of the instance : is removable

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

getControlledPropertyInstance

public PropertyCollection getControlledPropertyInstance()
(non-Javadoc)

Specified by:
getControlledPropertyInstance in interface PropertyControllerModel
Returns:
controlled property instance
See Also:
PropertyControllerModel.getControlledPropertyInstance()

getControlledPropertyInstance

public static PropertyCollection getControlledPropertyInstance(PropertyCollection<?,?> collection)
Get the value of the instance : controlled property instance

Parameters:
collection - new collection from which to fetch the value
Returns:
controlled property instance

setControlledPropertyInstance

public PropertyCollection setControlledPropertyInstance(PropertyCollection setValue)
(non-Javadoc)

Specified by:
setControlledPropertyInstance in interface PropertyControllerModel
Parameters:
setValue - new controlled property instance
Returns:
controlled property instance value after the change
See Also:
PropertyControllerModel.setControlledPropertyInstance(org.deduced.PropertyCollection)

setControlledPropertyInstance

public static PropertyCollection setControlledPropertyInstance(PropertyCollection collection,
                                                               PropertyCollection value)
set the value of the instance : controlled property instance

Parameters:
collection - new collection on which to set the value
value - new value for : controlled property instance
Returns:
controlled property instance

getControlledPropertyValueType

public PropertyCollection getControlledPropertyValueType()
(non-Javadoc)

Specified by:
getControlledPropertyValueType in interface PropertyControllerModel
Returns:
controlled property value type
See Also:
PropertyControllerModel.getControlledPropertyValueType()

getControlledPropertyValueType

public static PropertyCollection getControlledPropertyValueType(PropertyCollection<?,?> collection)
Get the value of the instance : controlled property value type

Parameters:
collection - new collection from which to fetch the value
Returns:
controlled property value type

setControlledPropertyValueType

public PropertyCollection setControlledPropertyValueType(PropertyCollection setValue)
(non-Javadoc)

Specified by:
setControlledPropertyValueType in interface PropertyControllerModel
Parameters:
setValue - new controlled property value type
Returns:
controlled property value type value after the change
See Also:
PropertyControllerModel.setControlledPropertyValueType(org.deduced.PropertyCollection)

setControlledPropertyValueType

public static PropertyCollection setControlledPropertyValueType(PropertyCollection collection,
                                                                PropertyCollection value)
set the value of the instance : controlled property value type

Parameters:
collection - new collection on which to set the value
value - new value for : controlled property value type
Returns:
controlled property value type

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

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(PropertyControllerModel 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