|
||||||||||
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.PropertyMap<java.lang.Object,java.lang.Object> org.deduced.dynamic.DynamicPropertyMap org.deduced.dynamic.FlyWheelDynamicPropertyCollectionController
public class FlyWheelDynamicPropertyCollectionController
Fly Wheel Dynamic Property Collection Controller
Nested Class Summary | |
---|---|
class |
FlyWheelDynamicPropertyCollectionController.ChildCollectionControllerListPropertyImplementation
Child Collection Controller List Property Implementation. |
class |
FlyWheelDynamicPropertyCollectionController.ChildPropertyControllerListPropertyImplementation
Child Property Controller List Property Implementation. |
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 boolean |
deleted
is this collection deleted |
private boolean |
initialized
is this collection initialized |
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.NamedPropertyCollection |
---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_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 | |
---|---|
protected void |
activateOwnedChildCollections()
(non-JSDoc) |
static void |
activateOwnedChildCollectionsSkipLists(PropertyCollection<?,?> collectionToActivate)
activate all Owned Child Collections, skip the lists of child controllers |
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) |
java.lang.String |
getName()
(non-JSDoc) |
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.String |
setName(java.lang.String newValue)
(non-JSDoc) |
java.lang.Object |
setProperty(java.lang.Object 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, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, size, type, valueKey |
Field Detail |
---|
private static final long serialVersionUID
private DeducedControllerLayerExtension controlLayer
private boolean deleted
private boolean initialized
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 useMethod Detail |
---|
protected void activateOwnedChildCollections()
activateOwnedChildCollections
in class DynamicPropertyMap
DynamicPropertyMap.activateOwnedChildCollections()
public static void activateOwnedChildCollectionsSkipLists(PropertyCollection<?,?> collectionToActivate)
collectionToActivate
- the collection to activatepublic Task addPropertyToControlledCollection(java.lang.Object propertyKey, PropertyCollection<?,?> instance, java.lang.Object propertyValue)
addPropertyToControlledCollection
in interface PropertyCollectionController
propertyKey
- 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 PropertyCollectionController
key
- 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 PropertyCollectionController
PropertyCollectionController.deleteControlledCollection()
public PropertyList getChildCollectionControllerList()
getChildCollectionControllerList
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.getChildCollectionControllerList()
public PropertyList<PropertyControllerModel> getChildPropertyControllerList()
getChildPropertyControllerList
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.getChildPropertyControllerList()
public PropertyCollection getControlledCollection()
getControlledCollection
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.getControlledCollection()
public java.lang.String getName()
getName
in interface NamedPropertyCollection
NamedPropertyCollection.getName()
public java.lang.String setName(java.lang.String newValue)
setName
in interface NamedPropertyCollection
newValue
- new name
NamedPropertyCollection.setName(java.lang.String)
public boolean isAddAvailable()
isAddAvailable
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.isAddAvailable()
public boolean isDeleteAvailable()
isDeleteAvailable
in interface PropertyCollectionControllerModel
PropertyCollectionControllerModel.isDeleteAvailable()
public PropertyCollection setControlledCollection(PropertyCollection setControlledCollection)
setControlledCollection
in interface PropertyCollectionControllerModel
setControlledCollection
- new controlled collection
PropertyCollectionControllerModel.setControlledCollection(org.deduced.PropertyCollection)
public boolean setIsAddAvailable(boolean setIsAddAvailable)
setIsAddAvailable
in interface PropertyCollectionControllerModel
setIsAddAvailable
- new is add available
PropertyCollectionControllerModel.setIsAddAvailable(boolean)
public boolean setIsDeleteAvailable(boolean setIsDeleteAvailable)
setIsDeleteAvailable
in interface PropertyCollectionControllerModel
setIsDeleteAvailable
- new is delete available
PropertyCollectionControllerModel.setIsDeleteAvailable(boolean)
public PropertyCollection<?,?> parent()
parent
in interface PropertyCollection<java.lang.Object,java.lang.Object>
parent
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
AbstractPropertyCollection.parent()
public java.lang.Object keyOnParent()
keyOnParent
in interface PropertyCollection<java.lang.Object,java.lang.Object>
keyOnParent
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
AbstractPropertyCollection.keyOnParent()
public Property<java.lang.Object> getProperty(java.lang.Object propertyKey)
getProperty
in interface PropertyCollection<java.lang.Object,java.lang.Object>
getProperty
in class PropertyMap<java.lang.Object,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.Object,java.lang.Object>
getPropertyValue
in class PropertyMap<java.lang.Object,java.lang.Object>
propertyKey
- the property key
PropertyMap.getPropertyValue(java.lang.Object)
public java.lang.Object setProperty(java.lang.Object propertyKey, java.lang.Object value)
setProperty
in interface PropertyCollection<java.lang.Object,java.lang.Object>
setProperty
in class DynamicPropertyMap
propertyKey
- 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 PropertyCollectionController
instance
- 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 PropertyCollectionControllerModel
newValue
- new child collection controller list
PropertyCollectionControllerModel.setChildCollectionControllerList(org.deduced.PropertyList)
public PropertyList setChildPropertyControllerList(PropertyList newValue)
setChildPropertyControllerList
in interface PropertyCollectionControllerModel
newValue
- new child property controller list
PropertyCollectionControllerModel.setChildPropertyControllerList(org.deduced.PropertyList)
protected void deleteRemoveLocalObjectFromParent()
deleteRemoveLocalObjectFromParent
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
AbstractPropertyCollection.deleteRemoveLocalObjectFromParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |