public class FieldValidators
extends java.lang.Object
Constructor and Description |
---|
FieldValidators() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
static java.lang.String |
getSimpleDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
static void |
setDebug(boolean db)
Sets the debug attribute object
|
static boolean |
validateDirectoryNotInRepository(java.lang.Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
org.apache.struts.action.ActionMessages messages,
org.apache.commons.validator.Validator validator,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Validates that the field value is a directory that is not already configured in the repository
(RepositoryManager).
|
static boolean |
validateIsDirectory(java.lang.Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
org.apache.struts.action.ActionMessages messages,
org.apache.commons.validator.Validator validator,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Validates that the field value is an existing directory on the server that the application is running on.
|
static boolean |
validateNamespaceIdentifier(java.lang.Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
org.apache.struts.action.ActionMessages messages,
org.apache.commons.validator.Validator validator,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Validates that the String is a valid namespace identifier for OAI.
|
public static boolean validateIsDirectory(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages messages, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
bean
- The Struts beanva
- the ValidatorActionfield
- The Fieldmessages
- The ActionMessagesvalidator
- The Validatorrequest
- The HttpServletRequestservletContext
- The ServletContextpublic static boolean validateNamespaceIdentifier(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages messages, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
bean
- The Struts beanva
- the ValidatorActionfield
- The Fieldmessages
- The ActionMessagesvalidator
- The Validatorrequest
- The HttpServletRequestservletContext
- The ServletContextpublic static boolean validateDirectoryNotInRepository(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, org.apache.struts.action.ActionMessages messages, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
bean
- The Struts beanva
- the ValidatorActionfield
- The Fieldmessages
- The ActionMessagesvalidator
- The Validatorrequest
- The HttpServletRequestservletContext
- The ServletContextpublic static java.lang.String getSimpleDateStamp()
public static java.lang.String getDateStamp()
public static void setDebug(boolean db)
db
- The new debug value