org.deduced.validation.validator
Interface Validator

All Superinterfaces:
java.lang.Cloneable, PropertyCollection<java.lang.Object,java.lang.Object>
All Known Subinterfaces:
EnumerationValidator, ErrorMessageBasedValidator, NullableValidator, NumberValidator, StringValidator, TypeCreationValidator, TypeReferenceValidator
All Known Implementing Classes:
EnumerationValidatorImplementation, ErrorMessageBasedValidatorImplementation, NullableValidatorImplementation, NumberValidatorImplementation, StringValidatorImplementation, TypeCreationValidatorImplementation, TypeReferenceValidatorImplementation, ValidatorImplementation

public interface Validator
extends PropertyCollection<java.lang.Object,java.lang.Object>

Interface used to represent the type : validator Class generated by org.deduced.generator.VelocityGenerator Using template : org/deduced/generator/java/JavaInterface.vm


Field Summary
static PropertyInstanceHolder CURRENT_VALUE_INSTANCE
          Variable used to hold the PropertyInstance for : current value
static PropertyInstanceHolder ERROR_MESSAGE_INSTANCE
          Variable used to hold the PropertyInstance for : error message
static PropertyInstanceHolder IS_VALID_INSTANCE
          Variable used to hold the PropertyInstance for : is valid
static PropertyInstanceHolder MODEL_INSTANCE
          Variable used to hold the PropertyInstance for : model
static PropertyCollectionTypeHolder VALIDATOR_TYPE
          Variable used to hold the PropertyCollectionType for : validator
 
Fields inherited from interface org.deduced.PropertyCollection
PROPERTY_COLLECTION_TYPE
 
Method Summary
 java.lang.Object getCurrentValue()
          Get the value of the instance : current value
 java.lang.String getErrorMessage()
          Get the value of the instance : error message
 ValidationModel getModel()
          Get the value of the instance : model
 boolean isValid()
          Get the value of the instance : is valid
 java.lang.Object setCurrentValue(java.lang.Object newValue)
          Set the value of the instance : current value
 java.lang.String setErrorMessage(java.lang.String newValue)
          Set the value of the instance : error message
 boolean setIsValid(boolean newValue)
          Set the value of the instance : is valid
 ValidationModel setModel(ValidationModel newValue)
          Set the value of the instance : model
 
Methods inherited from interface org.deduced.PropertyCollection
activate, addListener, addProperty, areKeysAssignedAutomatically, asKeySet, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, clone, containsInstance, containsKey, containsValue, delete, getFixedInstance, getProperty, getPropertyValue, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, setProperty, size, type, valueKey
 

Field Detail

VALIDATOR_TYPE

static final PropertyCollectionTypeHolder VALIDATOR_TYPE
Variable used to hold the PropertyCollectionType for : validator


CURRENT_VALUE_INSTANCE

static final PropertyInstanceHolder CURRENT_VALUE_INSTANCE
Variable used to hold the PropertyInstance for : current value


IS_VALID_INSTANCE

static final PropertyInstanceHolder IS_VALID_INSTANCE
Variable used to hold the PropertyInstance for : is valid


MODEL_INSTANCE

static final PropertyInstanceHolder MODEL_INSTANCE
Variable used to hold the PropertyInstance for : model


ERROR_MESSAGE_INSTANCE

static final PropertyInstanceHolder ERROR_MESSAGE_INSTANCE
Variable used to hold the PropertyInstance for : error message

Method Detail

getCurrentValue

java.lang.Object getCurrentValue()
Get the value of the instance : current value

Returns:
current value

setCurrentValue

java.lang.Object setCurrentValue(java.lang.Object newValue)
Set the value of the instance : current value

Parameters:
newValue - new current value
Returns:
current value value after the change

isValid

boolean isValid()
Get the value of the instance : is valid

Returns:
is valid

setIsValid

boolean setIsValid(boolean newValue)
Set the value of the instance : is valid

Parameters:
newValue - new is valid
Returns:
is valid value after the change

getModel

ValidationModel getModel()
Get the value of the instance : model

Returns:
model

setModel

ValidationModel setModel(ValidationModel newValue)
Set the value of the instance : model

Parameters:
newValue - new model
Returns:
model value after the change

getErrorMessage

java.lang.String getErrorMessage()
Get the value of the instance : error message

Returns:
error message

setErrorMessage

java.lang.String setErrorMessage(java.lang.String newValue)
Set the value of the instance : error message

Parameters:
newValue - new error message
Returns:
error message value after the change