|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
public abstract class AbstractFieldValidatorDescription
AbstractFieldValidatorDescription
| Field Summary | |
|---|---|
String |
fieldName
|
String |
key
|
protected static Logger |
log
Jakarta commons-logging reference. |
String |
message
|
boolean |
shortCircuit
|
boolean |
simpleValidator
|
| Constructor Summary | |
|---|---|
AbstractFieldValidatorDescription()
|
|
AbstractFieldValidatorDescription(String fieldName)
Creates an AbstractFieldValidatorDescription with the specified field name. |
|
| Method Summary | |
|---|---|
abstract String |
asFieldXml()
Returns the field validator XML definition. |
abstract String |
asSimpleXml()
Returns the validator XML definition. |
String |
asXml()
Returns the validator XML definition. |
String |
getFieldName()
Sets the field name for this validator rule. |
boolean |
isSimpleValidator()
|
void |
setFieldName(String fieldName)
Sets the field name for this validator rule. |
void |
setKey(String key)
Sets the I18N message key. |
void |
setMessage(String message)
Sets the default validator failure message. |
void |
setShortCircuit(boolean shortCircuit)
Set the shortCircuit flag. |
void |
setSimpleValidator(boolean simpleValidator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
public String fieldName
public String key
public String message
public boolean shortCircuit
public boolean simpleValidator
| Constructor Detail |
|---|
public AbstractFieldValidatorDescription()
public AbstractFieldValidatorDescription(String fieldName)
fieldName - | Method Detail |
|---|
public String getFieldName()
getFieldName in interface ValidatorDescriptionpublic void setFieldName(String fieldName)
fieldName - the field name for this validator rulepublic void setKey(String key)
setKey in interface ValidatorDescriptionkey - the I18N message keypublic void setMessage(String message)
setMessage in interface ValidatorDescriptionmessage - the default validator failure messagepublic void setShortCircuit(boolean shortCircuit)
setShortCircuit in interface ValidatorDescriptionshortCircuit - the shortCircuit flag.public void setSimpleValidator(boolean simpleValidator)
public boolean isSimpleValidator()
isSimpleValidator in interface ValidatorDescriptionpublic String asXml()
asXml in interface ValidatorDescriptionpublic abstract String asFieldXml()
public abstract String asSimpleXml()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||