|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.util.validators.DateStringValidator
public class DateStringValidator
The DateStringValidator is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for creating a date string validator. DateStringValidator is a validator that validates a String value according to a DateFormat.
For More Information:
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary |
---|
Fields inherited from class com.sas.util.validators.Validator |
---|
message, messages, msgObject |
Constructor Summary | |
---|---|
DateStringValidator()
Construct a default DateStringValidator which validates String values against the default formatting style. |
|
DateStringValidator(java.text.DateFormat format)
Construct a DateStringValidator which validates String values against the specified DateFormat. |
|
DateStringValidator(int dateStyle)
Construct a DateStringValidator which validates String values against the dateStyle. |
|
DateStringValidator(java.lang.String formatString)
Construct a DateStringValidator which validates String values against the formatString. |
Method Summary | |
---|---|
protected java.lang.String |
getDefaultValidationMessage(TransformationInterface bean)
|
java.text.DateFormat |
getFormat()
Return the DateFormat used to validate string values as Dates. |
protected java.lang.String |
getValidationParameters(TransformationInterface bean)
|
void |
setFormat(java.text.DateFormat newFormat)
Set the DateFormat format used to validate strings values as dates. |
Methods inherited from class com.sas.servlet.tbeans.util.validators.JavaScriptValidator |
---|
createValidationFunctionCall, getClearErrorsFunctionName, getDescription, getErrorHandlerFunctionName, getValidationFunctionName, setClearErrorsFunctionName, setErrorHandlerFunctionName, setValidationFunctionName |
Methods inherited from class com.sas.util.validators.Validator |
---|
createValidationMessages, getExtendedBeanInfo, getValidationMessage, getValidationMessageCode, newValidationMessage, normalizeValue, setValidationMessage, setValidationMessageCode, validateValue |
Methods inherited from interface com.sas.util.validators.ValidationInterface |
---|
getValidationMessage, getValidationMessageCode, normalizeValue, setValidationMessage, validateValue |
Constructor Detail |
---|
public DateStringValidator()
public DateStringValidator(java.lang.String formatString)
formatString
- a String format
which is used to validate a date strings.public DateStringValidator(int dateStyle)
dateStyle
- an int date stylepublic DateStringValidator(java.text.DateFormat format)
format
- a DateFormat object to use to validate a date strings.Method Detail |
---|
public void setFormat(java.text.DateFormat newFormat)
newFormat
- the new value for the format property.public java.text.DateFormat getFormat()
protected java.lang.String getDefaultValidationMessage(TransformationInterface bean)
getDefaultValidationMessage
in class JavaScriptValidator
protected java.lang.String getValidationParameters(TransformationInterface bean)
getValidationParameters
in class JavaScriptValidator
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |