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

Java Implementation used to represent the type : string validation 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 PropertyCollectionType |
defaultValidatorType
member variable holding the value for : default validator type |
private java.lang.String |
invalidRegularExpression
member variable holding the value for : invalid regular expression |
private boolean |
isMultipleLinesAllowed
member variable holding the value for : is multiple lines allowed |
private boolean |
isNullValid
member variable holding the value for : is null valid |
static java.util.Set<java.lang.Object> |
KEY_SET
list of keys held in this collection |
private java.lang.Integer |
maximumLength
member variable holding the value for : maximum length |
private java.lang.Integer |
minimumLength
member variable holding the value for : minimum length |
private java.lang.String |
validRegularExpression
member variable holding the value for : valid regular expression |
| 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.model.StringValidationModel |
|---|
INVALID_REGULAR_EXPRESSION_INSTANCE, IS_MULTIPLE_LINES_ALLOWED_INSTANCE, MAXIMUM_LENGTH_INSTANCE, MINIMUM_LENGTH_INSTANCE, STRING_VALIDATION_MODEL_TYPE, VALID_REGULAR_EXPRESSION_INSTANCE |
| Fields inherited from interface org.deduced.validation.model.NullableValidationModel |
|---|
IS_NULL_VALID_INSTANCE, NULLABLE_VALIDATION_MODEL_TYPE |
| Fields inherited from interface org.deduced.validation.model.LinkedValidationModel |
|---|
DEFAULT_VALIDATOR_TYPE_INSTANCE, LINKED_VALIDATION_MODEL_TYPE |
| Fields inherited from interface org.deduced.ValidationModel |
|---|
VALIDATION_MODEL_TYPE |
| Fields inherited from interface org.deduced.PropertyCollection |
|---|
PROPERTY_COLLECTION_TYPE |
| Constructor Summary | |
|---|---|
StringValidationModelImplementation()
Default constructor for the type : string validation model |
|
| 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 |
PropertyCollectionType |
getDefaultValidatorType()
(non-Javadoc) |
static PropertyCollection |
getDefaultValidatorType(PropertyCollection<?,?> collection)
Get the value of the instance : default validator type |
java.lang.String |
getInvalidRegularExpression()
(non-Javadoc) |
static java.lang.String |
getInvalidRegularExpression(PropertyCollection<?,?> collection)
Get the value of the instance : invalid regular expression |
java.lang.Integer |
getMaximumLength()
(non-Javadoc) |
static java.lang.Integer |
getMaximumLength(PropertyCollection<?,?> collection)
Get the value of the instance : maximum length |
java.lang.Integer |
getMinimumLength()
(non-Javadoc) |
static java.lang.Integer |
getMinimumLength(PropertyCollection<?,?> collection)
Get the value of the instance : minimum length |
java.lang.Object |
getPropertyValue(java.lang.Object key)
(non-Javadoc) |
java.lang.String |
getValidRegularExpression()
(non-Javadoc) |
static java.lang.String |
getValidRegularExpression(PropertyCollection<?,?> collection)
Get the value of the instance : valid regular expression |
boolean |
isMultipleLinesAllowed()
(non-Javadoc) |
static java.lang.Boolean |
isMultipleLinesAllowed(PropertyCollection<?,?> collection)
Get the value of the instance : is multiple lines allowed |
boolean |
isNullValid()
(non-Javadoc) |
static java.lang.Boolean |
isNullValid(PropertyCollection<?,?> collection)
Get the value of the instance : is null valid |
static void |
resetListFixedInstances(StringValidationModel instance)
reset all the list fixed instances |
static PropertyCollection |
setDefaultValidatorType(PropertyCollection collection,
PropertyCollection value)
set the value of the instance : default validator type |
PropertyCollectionType |
setDefaultValidatorType(PropertyCollectionType setValue)
(non-Javadoc) |
static java.lang.String |
setInvalidRegularExpression(PropertyCollection collection,
java.lang.String value)
set the value of the instance : invalid regular expression |
java.lang.String |
setInvalidRegularExpression(java.lang.String setValue)
(non-Javadoc) |
boolean |
setIsMultipleLinesAllowed(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setIsMultipleLinesAllowed(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : is multiple lines allowed |
boolean |
setIsNullValid(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setIsNullValid(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : is null valid |
java.lang.Integer |
setMaximumLength(java.lang.Integer setValue)
(non-Javadoc) |
static java.lang.Integer |
setMaximumLength(PropertyCollection collection,
java.lang.Integer value)
set the value of the instance : maximum length |
java.lang.Integer |
setMinimumLength(java.lang.Integer setValue)
(non-Javadoc) |
static java.lang.Integer |
setMinimumLength(PropertyCollection collection,
java.lang.Integer value)
set the value of the instance : minimum length |
java.lang.Object |
setProperty(java.lang.Object key,
java.lang.Object value)
(non-Javadoc) |
static java.lang.String |
setValidRegularExpression(PropertyCollection collection,
java.lang.String value)
set the value of the instance : valid regular expression |
java.lang.String |
setValidRegularExpression(java.lang.String 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, 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.Integer minimumLength
private java.lang.Integer maximumLength
private java.lang.String validRegularExpression
private java.lang.String invalidRegularExpression
private boolean isMultipleLinesAllowed
private boolean isNullValid
private PropertyCollectionType defaultValidatorType
| Constructor Detail |
|---|
public StringValidationModelImplementation()
| 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.Integer getMinimumLength()
getMinimumLength in interface StringValidationModelStringValidationModel.getMinimumLength()public static java.lang.Integer getMinimumLength(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Integer setMinimumLength(java.lang.Integer setValue)
setMinimumLength in interface StringValidationModelsetValue - new minimum length
StringValidationModel.setMinimumLength(java.lang.Integer)
public static java.lang.Integer setMinimumLength(PropertyCollection collection,
java.lang.Integer value)
collection - new collection on which to set the valuevalue - new value for : minimum length
public java.lang.Integer getMaximumLength()
getMaximumLength in interface StringValidationModelStringValidationModel.getMaximumLength()public static java.lang.Integer getMaximumLength(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.Integer setMaximumLength(java.lang.Integer setValue)
setMaximumLength in interface StringValidationModelsetValue - new maximum length
StringValidationModel.setMaximumLength(java.lang.Integer)
public static java.lang.Integer setMaximumLength(PropertyCollection collection,
java.lang.Integer value)
collection - new collection on which to set the valuevalue - new value for : maximum length
public java.lang.String getValidRegularExpression()
getValidRegularExpression in interface StringValidationModelStringValidationModel.getValidRegularExpression()public static java.lang.String getValidRegularExpression(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.String setValidRegularExpression(java.lang.String setValue)
setValidRegularExpression in interface StringValidationModelsetValue - new valid regular expression
StringValidationModel.setValidRegularExpression(java.lang.String)
public static java.lang.String setValidRegularExpression(PropertyCollection collection,
java.lang.String value)
collection - new collection on which to set the valuevalue - new value for : valid regular expression
public java.lang.String getInvalidRegularExpression()
getInvalidRegularExpression in interface StringValidationModelStringValidationModel.getInvalidRegularExpression()public static java.lang.String getInvalidRegularExpression(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public java.lang.String setInvalidRegularExpression(java.lang.String setValue)
setInvalidRegularExpression in interface StringValidationModelsetValue - new invalid regular expression
StringValidationModel.setInvalidRegularExpression(java.lang.String)
public static java.lang.String setInvalidRegularExpression(PropertyCollection collection,
java.lang.String value)
collection - new collection on which to set the valuevalue - new value for : invalid regular expression
public boolean isMultipleLinesAllowed()
isMultipleLinesAllowed in interface StringValidationModelStringValidationModel.isMultipleLinesAllowed()public static java.lang.Boolean isMultipleLinesAllowed(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsMultipleLinesAllowed(boolean setValue)
setIsMultipleLinesAllowed in interface StringValidationModelsetValue - new is multiple lines allowed
StringValidationModel.setIsMultipleLinesAllowed(boolean)
public static java.lang.Boolean setIsMultipleLinesAllowed(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is multiple lines allowed
public boolean isNullValid()
isNullValid in interface NullableValidationModelNullableValidationModel.isNullValid()public static java.lang.Boolean isNullValid(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public boolean setIsNullValid(boolean setValue)
setIsNullValid in interface NullableValidationModelsetValue - new is null valid
NullableValidationModel.setIsNullValid(boolean)
public static java.lang.Boolean setIsNullValid(PropertyCollection collection,
java.lang.Boolean value)
collection - new collection on which to set the valuevalue - new value for : is null valid
public PropertyCollectionType getDefaultValidatorType()
getDefaultValidatorType in interface LinkedValidationModelLinkedValidationModel.getDefaultValidatorType()public static PropertyCollection getDefaultValidatorType(PropertyCollection<?,?> collection)
collection - new collection from which to fetch the value
public PropertyCollectionType setDefaultValidatorType(PropertyCollectionType setValue)
setDefaultValidatorType in interface LinkedValidationModelsetValue - new default validator type
LinkedValidationModel.setDefaultValidatorType(org.deduced.PropertyCollectionType)
public static PropertyCollection setDefaultValidatorType(PropertyCollection collection,
PropertyCollection value)
collection - new collection on which to set the valuevalue - new value for : default validator type
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(StringValidationModel 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 | |||||||||