|
||||||||||
| 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.PropertyControllerModelImplementation
public class PropertyControllerModelImplementation

Java Implementation used to represent the type : property 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 PropertyCollection |
controlledCollection
member variable holding the value for : controlled collection |
private PropertyCollection |
controlledPropertyInstance
member variable holding the value for : controlled property instance |
private PropertyCollection |
controlledPropertyValueType
member variable holding the value for : controlled property value type |
private boolean |
isChangeable
member variable holding the value for : is changeable |
private boolean |
isRemovable
member variable holding the value for : is removable |
static java.util.Set<java.lang.Integer> |
KEY_SET
list of keys held in this collection |
private java.lang.Object |
propertyKey
member variable holding the value for : property key |
private java.lang.Object |
propertyValue
member variable holding the value for : property value |
| 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.PropertyControllerModel |
|---|
CONTROLLED_COLLECTION_INSTANCE, CONTROLLED_PROPERTY_INSTANCE_INSTANCE, CONTROLLED_PROPERTY_VALUE_TYPE_INSTANCE, IS_CHANGEABLE_INSTANCE, IS_REMOVABLE_INSTANCE, PROPERTY_CONTROLLER_MODEL_TYPE, PROPERTY_KEY_INSTANCE, PROPERTY_VALUE_INSTANCE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
PropertyControllerModelImplementation()
Default constructor for the type : property 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 |
PropertyCollection |
getControlledCollection()
(non-Javadoc) |
static PropertyCollection |
getControlledCollection(PropertyCollection<?,?> collection)
Get the value of the instance : controlled collection |
PropertyCollection |
getControlledPropertyInstance()
(non-Javadoc) |
static PropertyCollection |
getControlledPropertyInstance(PropertyCollection<?,?> collection)
Get the value of the instance : controlled property instance |
PropertyCollection |
getControlledPropertyValueType()
(non-Javadoc) |
static PropertyCollection |
getControlledPropertyValueType(PropertyCollection<?,?> collection)
Get the value of the instance : controlled property value type |
java.lang.Object |
getPropertyKey()
(non-Javadoc) |
static java.lang.Object |
getPropertyKey(PropertyCollection<?,?> collection)
Get the value of the instance : property key |
java.lang.Object |
getPropertyValue()
(non-Javadoc) |
java.lang.Object |
getPropertyValue(java.lang.Object key)
(non-Javadoc) |
static java.lang.Object |
getPropertyValue(PropertyCollection<?,?> collection)
Get the value of the instance : property value |
boolean |
isChangeable()
(non-Javadoc) |
static java.lang.Boolean |
isChangeable(PropertyCollection<?,?> collection)
Get the value of the instance : is changeable |
boolean |
isRemovable()
(non-Javadoc) |
static java.lang.Boolean |
isRemovable(PropertyCollection<?,?> collection)
Get the value of the instance : is removable |
static void |
resetListFixedInstances(PropertyControllerModel instance)
reset all the list fixed instances |
PropertyCollection |
setControlledCollection(PropertyCollection setValue)
(non-Javadoc) |
static PropertyCollection |
setControlledCollection(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : controlled collection |
PropertyCollection |
setControlledPropertyInstance(PropertyCollection setValue)
(non-Javadoc) |
static PropertyCollection |
setControlledPropertyInstance(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : controlled property instance |
PropertyCollection |
setControlledPropertyValueType(PropertyCollection setValue)
(non-Javadoc) |
static PropertyCollection |
setControlledPropertyValueType(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : controlled property value type |
boolean |
setIsChangeable(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setIsChangeable(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : is changeable |
boolean |
setIsRemovable(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setIsRemovable(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : is removable |
java.lang.Object |
setProperty(java.lang.Integer key,
java.lang.Object value)
(non-Javadoc) |
java.lang.Object |
setPropertyKey(java.lang.Object setValue)
(non-Javadoc) |
static java.lang.Object |
setPropertyKey(PropertyCollection collection,
java.lang.Object value)
set the value of the instance : property key |
java.lang.Object |
setPropertyValue(java.lang.Object setValue)
(non-Javadoc) |
static java.lang.Object |
setPropertyValue(PropertyCollection collection,
java.lang.Object value)
set the value of the instance : property value |
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 java.lang.Object propertyKey
private java.lang.Object propertyValue
private boolean isChangeable
private boolean isRemovable
private PropertyCollection controlledPropertyInstance
private PropertyCollection controlledPropertyValueType
| Constructor Detail |
|---|
public PropertyControllerModelImplementation()
| 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 PropertyControllerModelPropertyControllerModel.getControlledCollection()public static PropertyCollection getControlledCollection(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyCollection setControlledCollection(PropertyCollection setValue)
setControlledCollection in interface PropertyControllerModelsetValue - new controlled collection
PropertyControllerModel.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 java.lang.Object getPropertyKey()
getPropertyKey in interface PropertyControllerModelPropertyControllerModel.getPropertyKey()public static java.lang.Object getPropertyKey(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Object setPropertyKey(java.lang.Object setValue)
setPropertyKey in interface PropertyControllerModelsetValue - new property key
PropertyControllerModel.setPropertyKey(java.lang.Object)
public static java.lang.Object setPropertyKey(PropertyCollection collection,
java.lang.Object value)
collection - new collection on which to set the valuevalue - new value for : property key
public java.lang.Object getPropertyValue()
getPropertyValue in interface PropertyControllerModelPropertyControllerModel.getPropertyValue()public static java.lang.Object getPropertyValue(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Object setPropertyValue(java.lang.Object setValue)
setPropertyValue in interface PropertyControllerModelsetValue - new property value
PropertyControllerModel.setPropertyValue(java.lang.Object)
public static java.lang.Object setPropertyValue(PropertyCollection collection,
java.lang.Object value)
collection - new collection on which to set the valuevalue - new value for : property value
public boolean isChangeable()
isChangeable in interface PropertyControllerModelPropertyControllerModel.isChangeable()public static java.lang.Boolean isChangeable(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsChangeable(boolean setValue)
setIsChangeable in interface PropertyControllerModelsetValue - new is changeable
PropertyControllerModel.setIsChangeable(boolean)
public static java.lang.Boolean setIsChangeable(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is changeable
public boolean isRemovable()
isRemovable in interface PropertyControllerModelPropertyControllerModel.isRemovable()public static java.lang.Boolean isRemovable(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsRemovable(boolean setValue)
setIsRemovable in interface PropertyControllerModelsetValue - new is removable
PropertyControllerModel.setIsRemovable(boolean)
public static java.lang.Boolean setIsRemovable(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is removable
public PropertyCollection getControlledPropertyInstance()
getControlledPropertyInstance in interface PropertyControllerModelPropertyControllerModel.getControlledPropertyInstance()public static PropertyCollection getControlledPropertyInstance(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyCollection setControlledPropertyInstance(PropertyCollection setValue)
setControlledPropertyInstance in interface PropertyControllerModelsetValue - new controlled property instance
PropertyControllerModel.setControlledPropertyInstance(org.deduced.PropertyCollection)
public static PropertyCollection setControlledPropertyInstance(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : controlled property instance
public PropertyCollection getControlledPropertyValueType()
getControlledPropertyValueType in interface PropertyControllerModelPropertyControllerModel.getControlledPropertyValueType()public static PropertyCollection getControlledPropertyValueType(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyCollection setControlledPropertyValueType(PropertyCollection setValue)
setControlledPropertyValueType in interface PropertyControllerModelsetValue - new controlled property value type
PropertyControllerModel.setControlledPropertyValueType(org.deduced.PropertyCollection)
public static PropertyCollection setControlledPropertyValueType(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : controlled property value type
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(PropertyControllerModel 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 | |||||||||