|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deduced.AbstractPropertyCollection<K,V> org.deduced.FixedPropertyInstanceCollection<java.lang.Object,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 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 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 |
---|
public static java.util.Set<java.lang.Object> KEY_SET
private PropertyCollectionType controlledCollectionType
private PropertyCollection controlledCollectionFixedInstance
private PropertyCollection controlledCollection
private PropertyList childCollectionControllerList
private PropertyList childPropertyControllerList
private boolean isAddAvailable
private boolean isDeleteAvailable
private java.lang.String name
private boolean enabled
Constructor Detail |
---|
public DefaultPropertyCollectionControllerModelImplementation()
Method Detail |
---|
public java.util.Set<java.lang.Object> asKeySet()
asKeySet
in interface PropertyCollection<java.lang.Object,java.lang.Object>
public PropertyCollectionType type()
type
in interface PropertyCollection<java.lang.Object,java.lang.Object>
PropertyCollection.type()
public static void createKeyList()
public PropertyCollectionType getControlledCollectionType()
getControlledCollectionType
in interface DefaultPropertyCollectionControllerModel
DefaultPropertyCollectionControllerModel.getControlledCollectionType()
public static PropertyCollection getControlledCollectionType(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public PropertyCollectionType setControlledCollectionType(PropertyCollectionType setValue)
setControlledCollectionType
in interface DefaultPropertyCollectionControllerModel
setValue
- new controlled collection type
DefaultPropertyCollectionControllerModel.setControlledCollectionType(org.deduced.PropertyCollectionType)
public static PropertyCollection setControlledCollectionType(PropertyCollection collection, PropertyCollection value)
collection
- new collection on which to set the valuevalue
- new value for : controlled collection type
public PropertyCollection getControlledCollectionFixedInstance()
getControlledCollectionFixedInstance
in interface DefaultPropertyCollectionControllerModel
DefaultPropertyCollectionControllerModel.getControlledCollectionFixedInstance()
public static PropertyCollection getControlledCollectionFixedInstance(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public PropertyCollection setControlledCollectionFixedInstance(PropertyCollection setValue)
setControlledCollectionFixedInstance
in interface DefaultPropertyCollectionControllerModel
setValue
- new controlled collection fixed instance
DefaultPropertyCollectionControllerModel.setControlledCollectionFixedInstance(org.deduced.PropertyCollection)
public static PropertyCollection setControlledCollectionFixedInstance(PropertyCollection collection, PropertyCollection value)
collection
- new collection on which to set the valuevalue
- new value for : controlled collection fixed instance
public PropertyCollection getControlledCollection()
getControlledCollection
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.getControlledCollection()
public static PropertyCollection getControlledCollection(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public PropertyCollection setControlledCollection(PropertyCollection setValue)
setControlledCollection
in interface PropertyCollectionControllerModel
setValue
- 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 PropertyCollectionControllerModel
PropertyCollectionControllerModel.getChildCollectionControllerList()
public static PropertyCollection getChildCollectionControllerList(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public PropertyList setChildCollectionControllerList(PropertyList setValue)
setChildCollectionControllerList
in interface PropertyCollectionControllerModel
setValue
- 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 PropertyCollectionControllerModel
PropertyCollectionControllerModel.getChildPropertyControllerList()
public static PropertyCollection getChildPropertyControllerList(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public PropertyList setChildPropertyControllerList(PropertyList setValue)
setChildPropertyControllerList
in interface PropertyCollectionControllerModel
setValue
- 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 PropertyCollectionControllerModel
PropertyCollectionControllerModel.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 PropertyCollectionControllerModel
setValue
- 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 PropertyCollectionControllerModel
PropertyCollectionControllerModel.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 PropertyCollectionControllerModel
setValue
- 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 java.lang.String getName()
getName
in interface NamedPropertyCollection
NamedPropertyCollection.getName()
public static java.lang.String getName(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setName(java.lang.String setValue)
setName
in interface NamedPropertyCollection
setValue
- new name
NamedPropertyCollection.setName(java.lang.String)
public static java.lang.String setName(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : name
public boolean isEnabled()
isEnabled
in interface EnabledPropertyCollection
EnabledPropertyCollection.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 EnabledPropertyCollection
setValue
- 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.Object,java.lang.Object>
Object.equals(java.lang.Object)
public java.lang.Object clone()
clone
in interface PropertyCollection<java.lang.Object,java.lang.Object>
clone
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
AbstractPropertyCollection.clone()
public java.lang.Object setProperty(java.lang.Object key, java.lang.Object value)
setProperty
in interface PropertyCollection<java.lang.Object,java.lang.Object>
setProperty
in class FixedPropertyInstanceCollection<java.lang.Object,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.Object,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 |