| 
||||||||||
| 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.Object,java.lang.Object>
org.deduced.validation.validator.implementation.ValidatorImplementation
public class ValidatorImplementation

Java Implementation used to represent the type : validator 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.Object | 
currentValue
member variable holding the value for : current value  | 
private  java.lang.String | 
errorMessage
member variable holding the value for : error message  | 
private  boolean | 
isValid
member variable holding the value for : is valid  | 
static java.util.Set<java.lang.Object> | 
KEY_SET
list of keys held in this collection  | 
private  ValidationModel | 
model
member variable holding the value for : 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.validation.validator.Validator | 
|---|
CURRENT_VALUE_INSTANCE, ERROR_MESSAGE_INSTANCE, IS_VALID_INSTANCE, MODEL_INSTANCE, VALIDATOR_TYPE | 
| Fields inherited from interface org.deduced.PropertyCollection | 
|---|
PROPERTY_COLLECTION_TYPE | 
| Constructor Summary | |
|---|---|
ValidatorImplementation()
Default constructor for the type : validator  | 
|
| 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  | 
 java.lang.Object | 
getCurrentValue()
(non-Javadoc)  | 
static java.lang.Object | 
getCurrentValue(PropertyCollection<?,?> collection)
Get the value of the instance : current value  | 
 java.lang.String | 
getErrorMessage()
(non-Javadoc)  | 
static java.lang.String | 
getErrorMessage(PropertyCollection<?,?> collection)
Get the value of the instance : error message  | 
 ValidationModel | 
getModel()
(non-Javadoc)  | 
static PropertyCollection | 
getModel(PropertyCollection<?,?> collection)
Get the value of the instance : model  | 
 java.lang.Object | 
getPropertyValue(java.lang.Object key)
(non-Javadoc)  | 
 boolean | 
isValid()
(non-Javadoc)  | 
static java.lang.Boolean | 
isValid(PropertyCollection<?,?> collection)
Get the value of the instance : is valid  | 
static void | 
resetListFixedInstances(Validator instance)
reset all the list fixed instances  | 
 java.lang.Object | 
setCurrentValue(java.lang.Object setValue)
(non-Javadoc)  | 
static java.lang.Object | 
setCurrentValue(PropertyCollection collection,
                java.lang.Object value)
set the value of the instance : current value  | 
static java.lang.String | 
setErrorMessage(PropertyCollection collection,
                java.lang.String value)
set the value of the instance : error message  | 
 java.lang.String | 
setErrorMessage(java.lang.String setValue)
(non-Javadoc)  | 
 boolean | 
setIsValid(boolean setValue)
(non-Javadoc)  | 
static java.lang.Boolean | 
setIsValid(PropertyCollection collection,
           java.lang.Boolean value)
set the value of the instance : is valid  | 
static PropertyCollection | 
setModel(PropertyCollection collection,
         PropertyCollection value)
set the value of the instance : model  | 
 ValidationModel | 
setModel(ValidationModel 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 java.lang.Object currentValue
private boolean isValid
private ValidationModel model
private java.lang.String errorMessage
| Constructor Detail | 
|---|
public ValidatorImplementation()
| 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 java.lang.Object getCurrentValue()
getCurrentValue in interface ValidatorValidator.getCurrentValue()public static java.lang.Object getCurrentValue(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Object setCurrentValue(java.lang.Object setValue)
setCurrentValue in interface ValidatorsetValue - new current value
Validator.setCurrentValue(java.lang.Object)
public static java.lang.Object setCurrentValue(PropertyCollection collection,
                                               java.lang.Object value)
collection - new collection on which to set the valuevalue - new value for : current value
public boolean isValid()
isValid in interface ValidatorValidator.isValid()public static java.lang.Boolean isValid(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsValid(boolean setValue)
setIsValid in interface ValidatorsetValue - new is valid
Validator.setIsValid(boolean)
public static java.lang.Boolean setIsValid(PropertyCollection collection,
                                           java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is valid
public ValidationModel getModel()
getModel in interface ValidatorValidator.getModel()public static PropertyCollection getModel(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public ValidationModel setModel(ValidationModel setValue)
setModel in interface ValidatorsetValue - new model
Validator.setModel(org.deduced.ValidationModel)
public static PropertyCollection setModel(PropertyCollection collection,
                                          PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : model
public java.lang.String getErrorMessage()
getErrorMessage in interface ValidatorValidator.getErrorMessage()public static java.lang.String getErrorMessage(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.String setErrorMessage(java.lang.String setValue)
setErrorMessage in interface ValidatorsetValue - new error message
Validator.setErrorMessage(java.lang.String)
public static java.lang.String setErrorMessage(PropertyCollection collection,
                                               java.lang.String value)
collection - new collection on which to set the valuevalue - new value for : error message
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(Validator 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 | |||||||||