|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.validator.validators.ValidatorSupport
com.opensymphony.xwork2.validator.validators.FieldValidatorSupport
com.opensymphony.xwork2.validator.validators.FieldExpressionValidator
jaxx.runtime.validator.field.CollectionFieldExpressionValidator
@Deprecated public class CollectionFieldExpressionValidator
Un validateur basé sur FieldExpressionValidator qui valide sur une
collection de propriéte.
| Nested Class Summary | |
|---|---|
static class |
CollectionFieldExpressionValidator.Mode
Deprecated. |
class |
CollectionFieldExpressionValidator.WalkerContext
Deprecated. |
| Field Summary | |
|---|---|
protected CollectionFieldExpressionValidator.WalkerContext |
c
Deprecated. le context de parcours |
protected String |
collectionFieldName
Deprecated. pour indiquer la propriété qui contient la liste à valider. |
protected String |
expressionForFirst
Deprecated. expression a valider sur la premiètre entrée de la collection. |
protected String |
expressionForLast
Deprecated. expression a valider sur la dernière entrée de la collection. |
protected String[] |
keys
Deprecated. la liste des propriétés d'une entrée de la collection qui définit la clef unique (en mode UNIQUE_KEY). |
protected CollectionFieldExpressionValidator.Mode |
mode
Deprecated. le mode de validation sur la liste |
protected com.opensymphony.xwork2.util.ValueStack |
stack
Deprecated. |
protected boolean |
useSensitiveContext
Deprecated. drapeau pour utiliser le contexte de parcours pour valider l'expression, on dispose donc alors des variables previous, current, index, size et empty dans l'expression. |
| Fields inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport |
|---|
defaultMessage, log, messageKey |
| Constructor Summary | |
|---|---|
CollectionFieldExpressionValidator()
Deprecated. |
|
| Method Summary | |
|---|---|
protected boolean |
evaluateExpression(String expression,
Object object)
Deprecated. |
protected Collection<?> |
getCollection(Object object)
Deprecated. |
String |
getCollectionFieldName()
Deprecated. |
String |
getExpressionForFirst()
Deprecated. |
String |
getExpressionForLast()
Deprecated. |
String[] |
getKeys()
Deprecated. |
String |
getMessage(Object object)
Deprecated. |
CollectionFieldExpressionValidator.Mode |
getMode()
Deprecated. |
protected Integer |
getUniqueKeyHashCode(Object o)
Deprecated. Calcule pour une entrée donné, le hash de la clef unique |
String |
getValidatorType()
Deprecated. |
boolean |
isUseSensitiveContext()
Deprecated. |
void |
setCollectionFieldName(String collectionFieldName)
Deprecated. |
void |
setExpressionForFirst(String expressionForFirst)
Deprecated. |
void |
setExpressionForLast(String expressionForLast)
Deprecated. |
void |
setKeys(String[] keys)
Deprecated. |
void |
setMode(CollectionFieldExpressionValidator.Mode mode)
Deprecated. |
void |
setUseSensitiveContext(boolean useSensitiveContext)
Deprecated. |
void |
setValueStack(com.opensymphony.xwork2.util.ValueStack stack)
Deprecated. |
void |
validate(Object object)
Deprecated. |
protected Boolean |
validateAllEntries(Collection<?> col)
Deprecated. |
protected Boolean |
validateAtLeastOneEntry(Collection<?> col)
Deprecated. |
protected Boolean |
validateExtacltyOneEntry(Collection<?> col)
Deprecated. |
protected Boolean |
validateNoneEntry(Collection<?> col)
Deprecated. |
protected boolean |
validateOneEntry(Object object)
Deprecated. |
protected Boolean |
validateUniqueKey(Collection<?> col)
Deprecated. |
| Methods inherited from class com.opensymphony.xwork2.validator.validators.FieldExpressionValidator |
|---|
getExpression, setExpression |
| Methods inherited from class com.opensymphony.xwork2.validator.validators.FieldValidatorSupport |
|---|
getFieldName, setFieldName, setValidatorType |
| Methods inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport |
|---|
addActionError, addFieldError, conditionalParse, getDefaultMessage, getFieldValue, getMessageKey, getMessageParameters, getParse, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setMessageParameters, setParse, setShortCircuit, setValidatorContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opensymphony.xwork2.validator.Validator |
|---|
getDefaultMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext |
| Field Detail |
|---|
protected CollectionFieldExpressionValidator.Mode mode
protected String collectionFieldName
FieldValidatorSupport.getFieldName() pour obtenir la collection.
Cela permet d'effectuer une validation si une collection mais portant
en fait sur un autre champs
protected boolean useSensitiveContext
protected String expressionForFirst
protected String expressionForLast
protected String[] keys
protected CollectionFieldExpressionValidator.WalkerContext c
protected com.opensymphony.xwork2.util.ValueStack stack
| Constructor Detail |
|---|
public CollectionFieldExpressionValidator()
| Method Detail |
|---|
public CollectionFieldExpressionValidator.Mode getMode()
public void setMode(CollectionFieldExpressionValidator.Mode mode)
public String getCollectionFieldName()
public void setCollectionFieldName(String collectionFieldName)
public boolean isUseSensitiveContext()
public void setUseSensitiveContext(boolean useSensitiveContext)
public String getExpressionForFirst()
public void setExpressionForFirst(String expressionForFirst)
public String getExpressionForLast()
public void setExpressionForLast(String expressionForLast)
public String[] getKeys()
public void setKeys(String[] keys)
public void validate(Object object)
throws com.opensymphony.xwork2.validator.ValidationException
validate in interface com.opensymphony.xwork2.validator.Validatorvalidate in class com.opensymphony.xwork2.validator.validators.FieldExpressionValidatorcom.opensymphony.xwork2.validator.ValidationExceptionpublic void setValueStack(com.opensymphony.xwork2.util.ValueStack stack)
setValueStack in interface com.opensymphony.xwork2.validator.ValidatorsetValueStack in class com.opensymphony.xwork2.validator.validators.ValidatorSupportpublic String getMessage(Object object)
getMessage in interface com.opensymphony.xwork2.validator.ValidatorgetMessage in class com.opensymphony.xwork2.validator.validators.ValidatorSupport
protected Boolean validateAllEntries(Collection<?> col)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected Boolean validateNoneEntry(Collection<?> col)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected Boolean validateAtLeastOneEntry(Collection<?> col)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected Boolean validateExtacltyOneEntry(Collection<?> col)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected Boolean validateUniqueKey(Collection<?> col)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected boolean validateOneEntry(Object object)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected boolean evaluateExpression(String expression,
Object object)
throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
protected Collection<?> getCollection(Object object)
throws com.opensymphony.xwork2.validator.ValidationException
object - the incoming object containing the collection to test
com.opensymphony.xwork2.validator.ValidationException - if any pb to retreave the collection
protected Integer getUniqueKeyHashCode(Object o)
throws com.opensymphony.xwork2.validator.ValidationException
o - l'entree de la collection dont on va calculer le hash de la clef unique
com.opensymphony.xwork2.validator.ValidationException - if any pb to retreave properties valuespublic String getValidatorType()
getValidatorType in interface com.opensymphony.xwork2.validator.ValidatorgetValidatorType in class com.opensymphony.xwork2.validator.validators.FieldValidatorSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||