|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.AbstractPropertyCollection<K,V>
org.deduced.FixedPropertyInstanceCollection<java.lang.Integer,java.lang.Object>
org.deduced.controller.implementation.DefaultPropertyCollectionControllerModelImplementation
public class DefaultPropertyCollectionControllerModelImplementation

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 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.Integer> |
KEY_SET
list of keys held in this collection |
| 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 |
|---|
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.EnabledPropertyCollection |
|---|
ENABLED_INSTANCE, ENABLED_PROPERTY_COLLECTION_TYPE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
DefaultPropertyCollectionControllerModelImplementation()
Default constructor for the type : default property collection controller model |
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.Integer> |
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 |
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 |
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 |
java.lang.Object |
setProperty(java.lang.Integer 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 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, instanceKey, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setParent, size, valueKey |
| Field Detail |
|---|
public static java.util.Set<java.lang.Integer> KEY_SET
private PropertyCollection controlledCollection
private PropertyList childCollectionControllerList
private PropertyList childPropertyControllerList
private boolean isAddAvailable
private boolean isDeleteAvailable
private boolean enabled
| Constructor Detail |
|---|
public DefaultPropertyCollectionControllerModelImplementation()
| Method Detail |
|---|
public java.util.Set<java.lang.Integer> asKeySet()
asKeySet in interface PropertyCollection<java.lang.Integer,java.lang.Object>public PropertyCollectionType type()
type in interface PropertyCollection<java.lang.Integer,java.lang.Object>PropertyCollection.type()public static void createKeyList()
public PropertyCollection getControlledCollection()
getControlledCollection in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getControlledCollection()public static PropertyCollection getControlledCollection(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyCollection setControlledCollection(PropertyCollection setValue)
setControlledCollection in interface PropertyCollectionControllerModelsetValue - new controlled collection
PropertyCollectionControllerModel.setControlledCollection(org.deduced.PropertyCollection)
public static PropertyCollection setControlledCollection(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : controlled collection
public PropertyList getChildCollectionControllerList()
getChildCollectionControllerList in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getChildCollectionControllerList()public static PropertyCollection getChildCollectionControllerList(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyList setChildCollectionControllerList(PropertyList setValue)
setChildCollectionControllerList in interface PropertyCollectionControllerModelsetValue - new child collection controller list
PropertyCollectionControllerModel.setChildCollectionControllerList(org.deduced.PropertyList)
public static PropertyCollection setChildCollectionControllerList(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : child collection controller list
public PropertyList getChildPropertyControllerList()
getChildPropertyControllerList in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getChildPropertyControllerList()public static PropertyCollection getChildPropertyControllerList(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyList setChildPropertyControllerList(PropertyList setValue)
setChildPropertyControllerList in interface PropertyCollectionControllerModelsetValue - new child property controller list
PropertyCollectionControllerModel.setChildPropertyControllerList(org.deduced.PropertyList)
public static PropertyCollection setChildPropertyControllerList(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : child property controller list
public boolean isAddAvailable()
isAddAvailable in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.isAddAvailable()public static java.lang.Boolean isAddAvailable(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsAddAvailable(boolean setValue)
setIsAddAvailable in interface PropertyCollectionControllerModelsetValue - new is add available
PropertyCollectionControllerModel.setIsAddAvailable(boolean)
public static java.lang.Boolean setIsAddAvailable(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is add available
public boolean isDeleteAvailable()
isDeleteAvailable in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.isDeleteAvailable()public static java.lang.Boolean isDeleteAvailable(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsDeleteAvailable(boolean setValue)
setIsDeleteAvailable in interface PropertyCollectionControllerModelsetValue - new is delete available
PropertyCollectionControllerModel.setIsDeleteAvailable(boolean)
public static java.lang.Boolean setIsDeleteAvailable(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is delete available
public boolean isEnabled()
isEnabled in interface EnabledPropertyCollectionEnabledPropertyCollection.isEnabled()public static java.lang.Boolean isEnabled(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setEnabled(boolean setValue)
setEnabled in interface EnabledPropertyCollectionsetValue - new enabled
EnabledPropertyCollection.setEnabled(boolean)
public static java.lang.Boolean setEnabled(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : enabled
public boolean equals(java.lang.Object o)
equals in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>Object.equals(java.lang.Object)public java.lang.Object clone()
clone in interface PropertyCollection<java.lang.Integer,java.lang.Object>clone in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>AbstractPropertyCollection.clone()
public java.lang.Object setProperty(java.lang.Integer key,
java.lang.Object value)
setProperty in interface PropertyCollection<java.lang.Integer,java.lang.Object>setProperty in class FixedPropertyInstanceCollection<java.lang.Integer,java.lang.Object>key - the key of the propertyvalue - 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.
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)public java.lang.Object getPropertyValue(java.lang.Object key)
getPropertyValue in interface PropertyCollection<java.lang.Integer,java.lang.Object>key - the property key
PropertyCollection.getPropertyValue(java.lang.Object)public static void resetListFixedInstances(DefaultPropertyCollectionControllerModel instance)
instance - the instance that will get all its list fixed instances setpublic static void createInstancesAndTypes()
public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
schema - the schema that contains the required instances and typespublic static void fillInstancesAndTypes()
public static void fillTypeLists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||