|
||||||||||
| 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.implementation.PropertyInstanceImplementation
public class PropertyInstanceImplementation

Java Implementation used to represent the type : property instance 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 java.lang.String |
documentation
member variable holding the value for : documentation |
private PropertyType |
instanceType
member variable holding the value for : instance type |
private boolean |
isReference
member variable holding the value for : is reference |
static java.util.Set<java.lang.Integer> |
KEY_SET
list of keys held in this collection |
private java.lang.String |
name
member variable holding the value for : name |
private ValidationModel |
validationModel
member variable holding the value for : validation model |
| Fields inherited from class org.deduced.AbstractPropertyCollection |
|---|
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE |
| Fields inherited from interface org.deduced.PropertyInstance |
|---|
INSTANCE_TYPE_INSTANCE, IS_REFERENCE_INSTANCE, PROPERTY_INSTANCE_TYPE, VALIDATION_MODEL_INSTANCE |
| Fields inherited from interface org.deduced.NamedPropertyCollection |
|---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE |
| Fields inherited from interface org.deduced.DocumentedCollection |
|---|
DOCUMENTATION_INSTANCE, DOCUMENTED_COLLECTION_TYPE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
PropertyInstanceImplementation()
Default constructor for the type : property instance |
|
| 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 |
java.lang.String |
getDocumentation()
(non-Javadoc) |
static java.lang.String |
getDocumentation(PropertyCollection<?,?> collection)
Get the value of the instance : documentation |
PropertyType |
getInstanceType()
(non-Javadoc) |
static PropertyCollection |
getInstanceType(PropertyCollection<?,?> collection)
Get the value of the instance : instance 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) |
ValidationModel |
getValidationModel()
(non-Javadoc) |
static PropertyCollection |
getValidationModel(PropertyCollection<?,?> collection)
Get the value of the instance : validation model |
boolean |
isReference()
(non-Javadoc) |
static java.lang.Boolean |
isReference(PropertyCollection<?,?> collection)
Get the value of the instance : is reference |
static void |
resetListFixedInstances(PropertyInstance instance)
reset all the list fixed instances |
static java.lang.String |
setDocumentation(PropertyCollection collection,
java.lang.String value)
set the value of the instance : documentation |
java.lang.String |
setDocumentation(java.lang.String setValue)
(non-Javadoc) |
static PropertyCollection |
setInstanceType(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : instance type |
PropertyType |
setInstanceType(PropertyType setValue)
(non-Javadoc) |
boolean |
setIsReference(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setIsReference(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : is reference |
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.Integer key,
java.lang.Object value)
(non-Javadoc) |
static PropertyCollection |
setValidationModel(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : validation model |
ValidationModel |
setValidationModel(ValidationModel setValue)
(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 PropertyType instanceType
private boolean isReference
private ValidationModel validationModel
private java.lang.String name
private java.lang.String documentation
| Constructor Detail |
|---|
public PropertyInstanceImplementation()
| 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 PropertyType getInstanceType()
getInstanceType in interface PropertyInstancePropertyInstance.getInstanceType()public static PropertyCollection getInstanceType(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyType setInstanceType(PropertyType setValue)
setInstanceType in interface PropertyInstancesetValue - new instance type
PropertyInstance.setInstanceType(org.deduced.PropertyType)
public static PropertyCollection setInstanceType(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : instance type
public boolean isReference()
isReference in interface PropertyInstancePropertyInstance.isReference()public static java.lang.Boolean isReference(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsReference(boolean setValue)
setIsReference in interface PropertyInstancesetValue - new is reference
PropertyInstance.setIsReference(boolean)
public static java.lang.Boolean setIsReference(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is reference
public ValidationModel getValidationModel()
getValidationModel in interface PropertyInstancePropertyInstance.getValidationModel()public static PropertyCollection getValidationModel(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public ValidationModel setValidationModel(ValidationModel setValue)
setValidationModel in interface PropertyInstancesetValue - new validation model
PropertyInstance.setValidationModel(org.deduced.ValidationModel)
public static PropertyCollection setValidationModel(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : validation model
public java.lang.String getName()
getName in interface NamedPropertyCollectionNamedPropertyCollection.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 NamedPropertyCollectionsetValue - 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 java.lang.String getDocumentation()
getDocumentation in interface DocumentedCollectionDocumentedCollection.getDocumentation()public static java.lang.String getDocumentation(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.String setDocumentation(java.lang.String setValue)
setDocumentation in interface DocumentedCollectionsetValue - new documentation
DocumentedCollection.setDocumentation(java.lang.String)
public static java.lang.String setDocumentation(PropertyCollection collection,
java.lang.String value)
collection - new collection on which to set the valuevalue - new value for : documentation
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(PropertyInstance 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 | |||||||||