|
||||||||||
| 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.PropertyMap<java.lang.Integer,java.lang.Object>
org.deduced.dynamic.DynamicPropertyMap
org.deduced.dynamic.FlyWheelDynamicPropertyCollectionController
public class FlyWheelDynamicPropertyCollectionController

Fly Wheel Dynamic Property Collection Controller
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.deduced.PropertyMap |
|---|
PropertyMap.PropertyIterator, PropertyMap.ValueIterator |
| Nested classes/interfaces inherited from class org.deduced.AbstractPropertyCollection |
|---|
AbstractPropertyCollection.CollectionToDeleteMonitor |
| Field Summary | |
|---|---|
private DeducedControllerLayerExtension |
controlLayer
control layer being used |
private static long |
serialVersionUID
serial ID |
| Fields inherited from class org.deduced.PropertyMap |
|---|
PROPERTY_MAP_TYPE |
| 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.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.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
FlyWheelDynamicPropertyCollectionController(PropertyCollection<?,?> setType,
boolean setActivated,
RuleExecutionContext setContext,
DeducedControllerLayerExtension setControlLayer)
FlyWheelDynamicPropertyCollectionController Constructor |
|
| Method Summary | |
|---|---|
Task |
addPropertyToControlledCollection(java.lang.Object propertyKey,
PropertyCollection<?,?> instance,
java.lang.Object propertyValue)
(non-Javadoc) |
Task |
createAndAddProperty(java.lang.Object key,
PropertyCollection<?,?> instance,
PropertyCollection<?,?> createType)
(non-Javadoc) |
Task |
deleteControlledCollection()
(non-Javadoc) |
protected void |
deleteRemoveLocalObjectFromParent()
(non-Javadoc) |
PropertyList |
getChildCollectionControllerList()
(non-Javadoc) |
PropertyList<PropertyControllerModel> |
getChildPropertyControllerList()
(non-Javadoc) |
DeducedControllerLayerExtension |
getControlLayer()
|
PropertyCollection |
getControlledCollection()
(non-Javadoc) |
Property<java.lang.Object> |
getProperty(java.lang.Object propertyKey)
(non-Javadoc) |
java.lang.Object |
getPropertyValue(java.lang.Object propertyKey)
(non-Javadoc) |
boolean |
isAddAvailable()
(non-Javadoc) |
boolean |
isAddValueValid(PropertyCollection<?,?> instance,
PropertyCollection<?,?> value,
boolean validateParent)
(non-Javadoc) |
boolean |
isDeleteAvailable()
(non-Javadoc) |
java.lang.Object |
keyOnParent()
(non-Javadoc) |
PropertyCollection<?,?> |
parent()
(non-Javadoc) |
PropertyList |
setChildCollectionControllerList(PropertyList newValue)
(non-Javadoc) |
PropertyList |
setChildPropertyControllerList(PropertyList newValue)
(non-Javadoc) |
PropertyCollection |
setControlledCollection(PropertyCollection setControlledCollection)
(non-Javadoc) |
boolean |
setIsAddAvailable(boolean setIsAddAvailable)
(non-Javadoc) |
boolean |
setIsDeleteAvailable(boolean setIsDeleteAvailable)
(non-Javadoc) |
java.lang.Object |
setProperty(java.lang.Integer propertyKey,
java.lang.Object value)
(non-Javadoc) |
| 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, asKeySet, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, clone, containsInstance, containsKey, containsValue, delete, getFixedInstance, instanceKey, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setParent, size, type, valueKey |
| Field Detail |
|---|
private static final long serialVersionUID
private DeducedControllerLayerExtension controlLayer
| Constructor Detail |
|---|
public FlyWheelDynamicPropertyCollectionController(PropertyCollection<?,?> setType,
boolean setActivated,
RuleExecutionContext setContext,
DeducedControllerLayerExtension setControlLayer)
setType - the type of the current collectionsetActivated - option to activate the current collectionsetContext - the rule execution contextsetControlLayer - the control layer to use| Method Detail |
|---|
public Task addPropertyToControlledCollection(java.lang.Object propertyKey,
PropertyCollection<?,?> instance,
java.lang.Object propertyValue)
addPropertyToControlledCollection in interface PropertyCollectionControllerpropertyKey - the property keyinstance - the property instancepropertyValue - the property value
PropertyCollectionController.addPropertyToControlledCollection(java.lang.Object,
org.deduced.PropertyCollection, java.lang.Object)public DeducedControllerLayerExtension getControlLayer()
public Task createAndAddProperty(java.lang.Object key,
PropertyCollection<?,?> instance,
PropertyCollection<?,?> createType)
createAndAddProperty in interface PropertyCollectionControllerkey - the key of the created typeinstance - the instance of the created typecreateType - the type of object to create
PropertyCollectionController.createAndAddProperty(java.lang.Object,
org.deduced.PropertyCollection, org.deduced.PropertyCollection)public Task deleteControlledCollection()
deleteControlledCollection in interface PropertyCollectionControllerPropertyCollectionController.deleteControlledCollection()public PropertyList getChildCollectionControllerList()
getChildCollectionControllerList in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getChildCollectionControllerList()public PropertyList<PropertyControllerModel> getChildPropertyControllerList()
getChildPropertyControllerList in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getChildPropertyControllerList()public PropertyCollection getControlledCollection()
getControlledCollection in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.getControlledCollection()public boolean isAddAvailable()
isAddAvailable in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.isAddAvailable()public boolean isDeleteAvailable()
isDeleteAvailable in interface PropertyCollectionControllerModelPropertyCollectionControllerModel.isDeleteAvailable()public PropertyCollection setControlledCollection(PropertyCollection setControlledCollection)
setControlledCollection in interface PropertyCollectionControllerModelsetControlledCollection - new controlled collection
PropertyCollectionControllerModel.setControlledCollection(org.deduced.PropertyCollection)public boolean setIsAddAvailable(boolean setIsAddAvailable)
setIsAddAvailable in interface PropertyCollectionControllerModelsetIsAddAvailable - new is add available
PropertyCollectionControllerModel.setIsAddAvailable(boolean)public boolean setIsDeleteAvailable(boolean setIsDeleteAvailable)
setIsDeleteAvailable in interface PropertyCollectionControllerModelsetIsDeleteAvailable - new is delete available
PropertyCollectionControllerModel.setIsDeleteAvailable(boolean)public PropertyCollection<?,?> parent()
parent in interface PropertyCollection<java.lang.Integer,java.lang.Object>parent in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>AbstractPropertyCollection.parent()public java.lang.Object keyOnParent()
keyOnParent in interface PropertyCollection<java.lang.Integer,java.lang.Object>keyOnParent in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>AbstractPropertyCollection.keyOnParent()public Property<java.lang.Object> getProperty(java.lang.Object propertyKey)
getProperty in interface PropertyCollection<java.lang.Integer,java.lang.Object>getProperty in class PropertyMap<java.lang.Integer,java.lang.Object>propertyKey - the property key
PropertyMap.getProperty(java.lang.Object)public java.lang.Object getPropertyValue(java.lang.Object propertyKey)
getPropertyValue in interface PropertyCollection<java.lang.Integer,java.lang.Object>getPropertyValue in class PropertyMap<java.lang.Integer,java.lang.Object>propertyKey - the property key
PropertyMap.getPropertyValue(java.lang.Object)
public java.lang.Object setProperty(java.lang.Integer propertyKey,
java.lang.Object value)
setProperty in interface PropertyCollection<java.lang.Integer,java.lang.Object>setProperty in class DynamicPropertyMappropertyKey - 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.
PropertyMap.setProperty(java.lang.Object,
java.lang.Object)
public boolean isAddValueValid(PropertyCollection<?,?> instance,
PropertyCollection<?,?> value,
boolean validateParent)
isAddValueValid in interface PropertyCollectionControllerinstance - the property instance to use while adding. If null, the
fixed instance on the collection will be used.value - the value to add to the collectionvalidateParent - option to validate the parent of the value as well.
If true, then the parent must be null for all properties by
value to be valid. If false, then the parent isn't validated.
PropertyCollectionController.isAddValueValid(org.deduced.PropertyCollection,
org.deduced.PropertyCollection, boolean)public PropertyList setChildCollectionControllerList(PropertyList newValue)
setChildCollectionControllerList in interface PropertyCollectionControllerModelnewValue - new child collection controller list
PropertyCollectionControllerModel.setChildCollectionControllerList(org.deduced.PropertyList)public PropertyList setChildPropertyControllerList(PropertyList newValue)
setChildPropertyControllerList in interface PropertyCollectionControllerModelnewValue - new child property controller list
PropertyCollectionControllerModel.setChildPropertyControllerList(org.deduced.PropertyList)protected void deleteRemoveLocalObjectFromParent()
deleteRemoveLocalObjectFromParent in class AbstractPropertyCollection<java.lang.Integer,java.lang.Object>AbstractPropertyCollection.deleteRemoveLocalObjectFromParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||