|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.validator.AbstractPropertyValidator
public abstract class AbstractPropertyValidator
| Constructor Summary | |
|---|---|
AbstractPropertyValidator()
|
|
| Method Summary | |
|---|---|
void |
decorate(FormInputTag tag)
Add attributes to the tag based on this Validator instance metadata |
protected java.lang.String |
getMessagePrefix()
|
java.lang.String |
getOverridenMessageKey()
If not null, this will be the error message key used instead of the one suggested by the validator class. |
java.lang.String |
getPropertyPath()
The property path that will be evaluated. |
protected boolean |
isValidateCollectionContainer()
|
void |
pushPropertyPath(java.lang.String prefix)
Adds a property node to the beginning of this property path |
protected void |
setMessagePrefix(java.lang.String messagePrefix)
|
void |
setOverridenMessageKey(java.lang.String message)
|
void |
setPropertyPath(java.lang.String propertyPath)
|
protected void |
setValidateCollectionContainer(boolean validateCollectionContainer)
|
java.lang.String |
toString()
For debugging purposes |
protected abstract void |
toString(java.lang.StringBuilder builder)
Method for debugging purposes |
boolean |
validateCollectionContainer()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.loom.validator.PropertyValidator |
|---|
validate |
| Constructor Detail |
|---|
public AbstractPropertyValidator()
| Method Detail |
|---|
public void decorate(FormInputTag tag)
decorate in interface FormInputDecoratortag - the tag to be modifiedpublic void pushPropertyPath(java.lang.String prefix)
public java.lang.String getPropertyPath()
PropertyValidator
getPropertyPath in interface PropertyValidatorpublic void setPropertyPath(java.lang.String propertyPath)
public final java.lang.String toString()
toString in class java.lang.Objectprotected abstract void toString(java.lang.StringBuilder builder)
public boolean validateCollectionContainer()
validateCollectionContainer in interface PropertyValidatorpublic java.lang.String getOverridenMessageKey()
PropertyValidator
getOverridenMessageKey in interface PropertyValidatorMessagesRepository, default null.public void setOverridenMessageKey(java.lang.String message)
protected java.lang.String getMessagePrefix()
protected void setMessagePrefix(java.lang.String messagePrefix)
protected boolean isValidateCollectionContainer()
protected void setValidateCollectionContainer(boolean validateCollectionContainer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||