org.deduced.controller.implementation
Class DefaultPropertyCollectionControllerModelImplementation

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.DefaultPropertyCollectionControllerModelImplementation
All Implemented Interfaces:
java.lang.Cloneable, DefaultPropertyCollectionControllerModel, PropertyCollectionControllerModel, EnabledPropertyCollection, NamedPropertyCollection, PropertyCollection<java.lang.Object,java.lang.Object>

public class DefaultPropertyCollectionControllerModelImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements DefaultPropertyCollectionControllerModel

Java Implementation used to represent the type : default property collection 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  PropertyList childCollectionControllerList
          member variable holding the value for : child collection controller list
private  PropertyList childPropertyControllerList
          member variable holding the value for : child property controller list
private  PropertyCollection controlledCollection
          member variable holding the value for : controlled collection
private  PropertyCollection controlledCollectionFixedInstance
          member variable holding the value for : controlled collection fixed instance
private  PropertyCollectionType controlledCollectionType
          member variable holding the value for : controlled collection type
private  boolean enabled
          member variable holding the value for : enabled
private  boolean isAddAvailable
          member variable holding the value for : is add available
private  boolean isDeleteAvailable
          member variable holding the value for : is delete available
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
 
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.DefaultPropertyCollectionControllerModel
CONTROLLED_COLLECTION_FIXED_INSTANCE_INSTANCE, CONTROLLED_COLLECTION_TYPE_INSTANCE, DEFAULT_PROPERTY_COLLECTION_CONTROLLER_MODEL_TYPE
 
Fields inherited from interface org.deduced.controller.PropertyCollectionControllerModel
CHILD_COLLECTION_CONTROLLER_LIST_INSTANCE, CHILD_PROPERTY_CONTROLLER_LIST_INSTANCE, CONTROLLED_COLLECTION_INSTANCE, IS_ADD_AVAILABLE_INSTANCE, IS_DELETE_AVAILABLE_INSTANCE, PROPERTY_COLLECTION_CONTROLLER_MODEL_TYPE
 
Fields inherited from interface org.deduced.NamedPropertyCollection
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.PropertyCollection
PROPERTY_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.EnabledPropertyCollection
ENABLED_INSTANCE, ENABLED_PROPERTY_COLLECTION_TYPE
 
Constructor Summary
DefaultPropertyCollectionControllerModelImplementation()
          Default constructor for the type : default property collection 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
 PropertyList getChildCollectionControllerList()
          (non-Javadoc)
static PropertyCollection getChildCollectionControllerList(PropertyCollection<?,?> collection)
          Get the value of the instance : child collection controller list
 PropertyList getChildPropertyControllerList()
          (non-Javadoc)
static PropertyCollection getChildPropertyControllerList(PropertyCollection<?,?> collection)
          Get the value of the instance : child property controller list
 PropertyCollection getControlledCollection()
          (non-Javadoc)
static PropertyCollection getControlledCollection(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled collection
 PropertyCollection getControlledCollectionFixedInstance()
          (non-Javadoc)
static PropertyCollection getControlledCollectionFixedInstance(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled collection fixed instance
 PropertyCollectionType getControlledCollectionType()
          (non-Javadoc)
static PropertyCollection getControlledCollectionType(PropertyCollection<?,?> collection)
          Get the value of the instance : controlled collection type
 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)
 boolean isAddAvailable()
          (non-Javadoc)
static java.lang.Boolean isAddAvailable(PropertyCollection<?,?> collection)
          Get the value of the instance : is add available
 boolean isDeleteAvailable()
          (non-Javadoc)
static java.lang.Boolean isDeleteAvailable(PropertyCollection<?,?> collection)
          Get the value of the instance : is delete available
 boolean isEnabled()
          (non-Javadoc)
static java.lang.Boolean isEnabled(PropertyCollection<?,?> collection)
          Get the value of the instance : enabled
static void resetListFixedInstances(DefaultPropertyCollectionControllerModel instance)
          reset all the list fixed instances
static PropertyCollection setChildCollectionControllerList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : child collection controller list
 PropertyList setChildCollectionControllerList(PropertyList setValue)
          (non-Javadoc)
static PropertyCollection setChildPropertyControllerList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : child property controller list
 PropertyList setChildPropertyControllerList(PropertyList setValue)
          (non-Javadoc)
 PropertyCollection setControlledCollection(PropertyCollection setValue)
          (non-Javadoc)
static PropertyCollection setControlledCollection(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled collection
 PropertyCollection setControlledCollectionFixedInstance(PropertyCollection setValue)
          (non-Javadoc)
static PropertyCollection setControlledCollectionFixedInstance(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled collection fixed instance
static PropertyCollection setControlledCollectionType(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : controlled collection type
 PropertyCollectionType setControlledCollectionType(PropertyCollectionType setValue)
          (non-Javadoc)
 boolean setEnabled(boolean setValue)
          (non-Javadoc)
static java.lang.Boolean setEnabled(PropertyCollection collection, java.lang.Boolean value)
          set the value of the instance : enabled
 boolean setIsAddAvailable(boolean setValue)
          (non-Javadoc)
static java.lang.Boolean setIsAddAvailable(PropertyCollection collection, java.lang.Boolean value)
          set the value of the instance : is add available
 boolean setIsDeleteAvailable(boolean setValue)
          (non-Javadoc)
static java.lang.Boolean setIsDeleteAvailable(PropertyCollection collection, java.lang.Boolean value)
          set the value of the instance : is delete available
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)
 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


controlledCollectionType

private PropertyCollectionType controlledCollectionType
member variable holding the value for : controlled collection type


controlledCollectionFixedInstance

private PropertyCollection controlledCollectionFixedInstance
member variable holding the value for : controlled collection fixed instance


controlledCollection

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


childCollectionControllerList

private PropertyList childCollectionControllerList
member variable holding the value for : child collection controller list


childPropertyControllerList

private PropertyList childPropertyControllerList
member variable holding the value for : child property controller list


isAddAvailable

private boolean isAddAvailable
member variable holding the value for : is add available


isDeleteAvailable

private boolean isDeleteAvailable
member variable holding the value for : is delete available


name

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


enabled

private boolean enabled
member variable holding the value for : enabled

Constructor Detail

DefaultPropertyCollectionControllerModelImplementation

public DefaultPropertyCollectionControllerModelImplementation()
Default constructor for the type : default property collection 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


getControlledCollectionType

public PropertyCollectionType getControlledCollectionType()
(non-Javadoc)

Specified by:
getControlledCollectionType in interface DefaultPropertyCollectionControllerModel
Returns:
controlled collection type
See Also:
DefaultPropertyCollectionControllerModel.getControlledCollectionType()

getControlledCollectionType

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

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

setControlledCollectionType

public PropertyCollectionType setControlledCollectionType(PropertyCollectionType setValue)
(non-Javadoc)

Specified by:
setControlledCollectionType in interface DefaultPropertyCollectionControllerModel
Parameters:
setValue - new controlled collection type
Returns:
controlled collection type value after the change
See Also:
DefaultPropertyCollectionControllerModel.setControlledCollectionType(org.deduced.PropertyCollectionType)

setControlledCollectionType

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

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

getControlledCollectionFixedInstance

public PropertyCollection getControlledCollectionFixedInstance()
(non-Javadoc)

Specified by:
getControlledCollectionFixedInstance in interface DefaultPropertyCollectionControllerModel
Returns:
controlled collection fixed instance
See Also:
DefaultPropertyCollectionControllerModel.getControlledCollectionFixedInstance()

getControlledCollectionFixedInstance

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

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

setControlledCollectionFixedInstance

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

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

setControlledCollectionFixedInstance

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

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

getControlledCollection

public PropertyCollection getControlledCollection()
(non-Javadoc)

Specified by:
getControlledCollection in interface PropertyCollectionControllerModel
Returns:
controlled collection
See Also:
PropertyCollectionControllerModel.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 PropertyCollectionControllerModel
Parameters:
setValue - new controlled collection
Returns:
controlled collection value after the change
See Also:
PropertyCollectionControllerModel.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

getChildCollectionControllerList

public PropertyList getChildCollectionControllerList()
(non-Javadoc)

Specified by:
getChildCollectionControllerList in interface PropertyCollectionControllerModel
Returns:
child collection controller list
See Also:
PropertyCollectionControllerModel.getChildCollectionControllerList()

getChildCollectionControllerList

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

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

setChildCollectionControllerList

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

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

setChildCollectionControllerList

public static PropertyCollection setChildCollectionControllerList(PropertyCollection collection,
                                                                  PropertyCollection value)
set the value of the instance : child collection controller list

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

getChildPropertyControllerList

public PropertyList getChildPropertyControllerList()
(non-Javadoc)

Specified by:
getChildPropertyControllerList in interface PropertyCollectionControllerModel
Returns:
child property controller list
See Also:
PropertyCollectionControllerModel.getChildPropertyControllerList()

getChildPropertyControllerList

public static PropertyCollection getChildPropertyControllerList(PropertyCollection<?,?> collection)
Get the value of the instance : child property controller list

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

setChildPropertyControllerList

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

Specified by:
setChildPropertyControllerList in interface PropertyCollectionControllerModel
Parameters:
setValue - new child property controller list
Returns:
child property controller list value after the change
See Also:
PropertyCollectionControllerModel.setChildPropertyControllerList(org.deduced.PropertyList)

setChildPropertyControllerList

public static PropertyCollection setChildPropertyControllerList(PropertyCollection collection,
                                                                PropertyCollection value)
set the value of the instance : child property controller list

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

isAddAvailable

public boolean isAddAvailable()
(non-Javadoc)

Specified by:
isAddAvailable in interface PropertyCollectionControllerModel
Returns:
is add available
See Also:
PropertyCollectionControllerModel.isAddAvailable()

isAddAvailable

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

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

setIsAddAvailable

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

Specified by:
setIsAddAvailable in interface PropertyCollectionControllerModel
Parameters:
setValue - new is add available
Returns:
is add available value after the change
See Also:
PropertyCollectionControllerModel.setIsAddAvailable(boolean)

setIsAddAvailable

public static java.lang.Boolean setIsAddAvailable(PropertyCollection collection,
                                                  java.lang.Boolean value)
set the value of the instance : is add available

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

isDeleteAvailable

public boolean isDeleteAvailable()
(non-Javadoc)

Specified by:
isDeleteAvailable in interface PropertyCollectionControllerModel
Returns:
is delete available
See Also:
PropertyCollectionControllerModel.isDeleteAvailable()

isDeleteAvailable

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

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

setIsDeleteAvailable

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

Specified by:
setIsDeleteAvailable in interface PropertyCollectionControllerModel
Parameters:
setValue - new is delete available
Returns:
is delete available value after the change
See Also:
PropertyCollectionControllerModel.setIsDeleteAvailable(boolean)

setIsDeleteAvailable

public static java.lang.Boolean setIsDeleteAvailable(PropertyCollection collection,
                                                     java.lang.Boolean value)
set the value of the instance : is delete available

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

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

isEnabled

public boolean isEnabled()
(non-Javadoc)

Specified by:
isEnabled in interface EnabledPropertyCollection
Returns:
enabled
See Also:
EnabledPropertyCollection.isEnabled()

isEnabled

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

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

setEnabled

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

Specified by:
setEnabled in interface EnabledPropertyCollection
Parameters:
setValue - new enabled
Returns:
enabled value after the change
See Also:
EnabledPropertyCollection.setEnabled(boolean)

setEnabled

public static java.lang.Boolean setEnabled(PropertyCollection collection,
                                           java.lang.Boolean value)
set the value of the instance : enabled

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

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