A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbstractConstraint - Class in grails.validation
Abstract class for constraints to extend.
AbstractVetoingConstraint - Class in grails.validation
TODO: write javadoc
addMetaConstraint(String, Object) - Method in ConstrainedProperty
Adds a meta constraints which is a non-validating informational constraint.
afterPropertiesSet() - Method in ConstraintsEvaluatorFactoryBean
ALLOW_2_SLASHES - Field in UrlValidator
Allow two slashes in the path component of the URL.
ALLOW_ALL_SCHEMES - Field in UrlValidator
Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes.
appliedConstraints - Field in ConstrainedProperty
applyConstraint(String, Object) - Method in ConstrainedProperty
Applies a constraint for the specified name and consraint value.

B

BLANK_CONSTRAINT - Field in ConstrainedProperty
BlankConstraint - Class in org.grails.validation
A Constraint that validates a string is not blank.
bundle - Field in ConstrainedProperty

C

cascadeToAssociativeProperty(Errors, BeanWrapper, GrailsDomainClassProperty) - Method in GrailsDomainClassValidator
Cascades validation onto an associative property maybe a one-to-many, one-to-one or many-to-one relationship.
cascadeValidationToMany(Errors, BeanWrapper, GrailsDomainClassProperty, String) - Method in GrailsDomainClassValidator
Cascades validation to a one-to-many type relationship.
cascadeValidationToOne(Errors, BeanWrapper, Object, GrailsDomainClassProperty, String, Object) - Method in GrailsDomainClassValidator
Cascades validation to a one-to-one or many-to-one property.
CascadingValidator - Interface in grails.validation
Extends the default Spring Validator interface and provides an additional method that specifies whether validation should cascade into associations.
checkState() - Method in AbstractConstraint
classShortName - Field in AbstractConstraint
compare(Object, Object) - Method in DomainClassPropertyComparator
ConstrainedProperty - Class in grails.validation
Provides the ability to set contraints against a properties of a class.
ConstrainedProperty(Class<?>, String, Class<?>) - Constructor in ConstrainedProperty
Constructs a new ConstrainedProperty for the given arguments.
ConstrainedPropertyBuilder - Class in org.grails.validation
Builder used as a delegate within the "constraints" closure of GrailsDomainClass instances .
ConstrainedPropertyBuilder(Class<?>) - Constructor in ConstrainedPropertyBuilder
Constraint - Interface in grails.validation
Defines a validatable constraint.
ConstraintException - Class in grails.validation.exceptions
Thrown when an error occurs applying a constraint to a property.
ConstraintException(Throwable) - Constructor in ConstraintException
ConstraintFactory - Interface in grails.validation
A factory for creating constraint instances.
constraintOwningClass - Field in AbstractConstraint
constraintParameter - Field in AbstractConstraint
constraintPropertyName - Field in AbstractConstraint
constraints - Field in ConstrainedProperty
ConstraintsEvaluatorFactoryBean - Class in org.grails.validation
Constructs the default constraints evaluator instance.
countToken(String, String) - Method in UrlValidator
Returns the number of times the token appears in the target.
createNode(Object, Object) - Method in ConstrainedPropertyBuilder
CREDIT_CARD_CONSTRAINT - Field in ConstrainedProperty
CreditCardConstraint - Class in org.grails.validation
Validates a credit card number.

D

DEFAULT_BLANK_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_DOESNT_MATCH_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_EMAIL_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_MAX_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_MAX_SIZE_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_MIN_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_MIN_SIZE_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_RANGE_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_SIZE_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_URL_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_INVALID_VALIDATOR_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_MESSAGES - Field in ConstrainedProperty
DEFAULT_NOT_EQUAL_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_NOT_INLIST_MESSAGE_CODE - Field in ConstrainedProperty
DEFAULT_NULL_MESSAGE_CODE - Field in ConstrainedProperty
doInvokeMethod(String, Object, Object) - Method in ConstrainedPropertyBuilder
domainClass - Field in GrailsDomainClassValidator
DomainClassPropertyComparator - Class in org.grails.validation
Comparator that uses the domain class property constraints to establish order in sort methods and always places the id first.
DomainClassPropertyComparator(GrailsDomainClass) - Constructor in DomainClassPropertyComparator
DomainValidator - Class in org.grails.validation.routines

E

EMAIL_CONSTRAINT - Field in ConstrainedProperty
EmailConstraint - Class in org.grails.validation
Validates an email address.
EXCEEDED_SUFFIX - Field in ConstrainedProperty

F

G

getAppliedConstraint(String) - Method in ConstrainedProperty
Obtains an applied constraint by name.
getAppliedConstraints() - Method in ConstrainedProperty
@return Returns the appliedConstraints.
getAssociatedDomainClassFromApplication(Object) - Method in GrailsDomainClassValidator
getAttributes() - Method in ConstrainedProperty
getConstrainedProperties() - Method in ConstrainedPropertyBuilder
getDefaultMessage(String) - Method in AbstractConstraint
Returns the default message for the given message code in the current locale.
getDomainClass() - Method in GrailsDomainClassValidator
getFormat() - Method in ConstrainedProperty
getInList() - Method in ConstrainedProperty
@return Returns the inList.
getInstance() - Method in DomainValidator
Returns the singleton instance of this validator.
getInstance() - Method in InetAddressValidator
Returns the singleton instance of this validator.
getInstance() - Method in UrlValidator
Returns the singleton instance of this class with default schemes and options.
getList() - Method in InListConstraint
@return Returns the list.
getMatches() - Method in ConstrainedProperty
@return Returns the matches.
getMax() - Method in ConstrainedProperty
@return Returns the max.
getMaxSize() - Method in ConstrainedProperty
@return Returns the maxSize.
getMaxSize() - Method in MaxSizeConstraint
@return Returns the maxSize.
getMaxValue() - Method in MaxConstraint
@return Returns the maxValue.
getMetaConstraintValue(String) - Method in ConstrainedProperty
Obtains the value of the named meta constraint.
getMin() - Method in ConstrainedProperty
@return Returns the min.
getMinSize() - Method in ConstrainedProperty
@return Returns the minSize.
getMinSize() - Method in MinSizeConstraint
@return Returns the minSize.
getMinValue() - Method in MinConstraint
@return Returns the minValue.
getName() - Method in BlankConstraint
getName() - Method in Constraint
@return The name of the constraint
getName() - Method in CreditCardConstraint
getName() - Method in EmailConstraint
getName() - Method in InListConstraint
getName() - Method in MatchesConstraint
getName() - Method in MaxConstraint
getName() - Method in MaxSizeConstraint
getName() - Method in MinConstraint
getName() - Method in MinSizeConstraint
getName() - Method in NotEqualConstraint
getName() - Method in NullableConstraint
getName() - Method in RangeConstraint
getName() - Method in ScaleConstraint
getName() - Method in SizeConstraint
getName() - Method in UrlConstraint
getName() - Method in ValidatorConstraint
getNotEqual() - Method in ConstrainedProperty
@return Returns the notEqual.
getNotEqualTo() - Method in NotEqualConstraint
@return Returns the notEqualTo.
getObject() - Method in ConstraintsEvaluatorFactoryBean
getObjectType() - Method in ConstraintsEvaluatorFactoryBean
getOrder() - Method in ConstrainedProperty
@return Returns the order.
getOwner() - Method in ConstrainedProperty
getParameter() - Method in AbstractConstraint
getParameter() - Method in BlankConstraint
getParameter() - Method in Constraint
getProperty(String) - Method in ConstrainedPropertyBuilder
getPropertyName() - Method in AbstractConstraint
getPropertyName() - Method in ConstrainedProperty
@return Returns the propertyName.
getPropertyName() - Method in Constraint
@return The property name of the constraint
getPropertyType() - Method in ConstrainedProperty
@return Returns the propertyType.
getRange() - Method in ConstrainedProperty
@return Returns the range.
getRange() - Method in RangeConstraint
@return Returns the range.
getRange() - Method in SizeConstraint
@return Returns the range.
getRegex() - Method in MatchesConstraint
@return Returns the regex.
getScale() - Method in ConstrainedProperty
@return The scale, if defined for this property; null, otherwise
getScale() - Method in ScaleConstraint
@return the scale
getSharedConstraint(String) - Method in ConstrainedPropertyBuilder
getSize() - Method in ConstrainedProperty
@return Returns the size.
getWidget() - Method in ConstrainedProperty
grailsApplication - Field in GrailsDomainClassValidator
GrailsDomainClassValidator - Class in org.grails.validation
A specialised Spring validator that validates a domain class instance using the constraints defined in the static constraints closure.

H

hasAppliedConstraint(String) - Method in ConstrainedProperty
@param constraintName The name of the constraint to check
hasRegisteredConstraint(String) - Method in ConstrainedProperty

I

IN_LIST_CONSTRAINT - Field in ConstrainedProperty
InetAddressValidator - Class in org.grails.validation.routines
InListConstraint - Class in org.grails.validation
A constraint that validates the property is contained within the supplied list.
INVALID_SUFFIX - Field in ConstrainedProperty
isBlank() - Method in BlankConstraint
isBlank() - Method in ConstrainedProperty
@return the blank.
isCreditCard() - Method in ConstrainedProperty
@return Returns the creditCard.
isDisplay() - Method in ConstrainedProperty
@return Returns the display.
isEditable() - Method in ConstrainedProperty
@return Returns the editable.
isEmail() - Method in ConstrainedProperty
@return Returns the email.
isNullable() - Method in ConstrainedProperty
@return Returns the nullable.
isNullable() - Method in NullableConstraint
isPassword() - Method in ConstrainedProperty
isSingleton() - Method in ConstraintsEvaluatorFactoryBean
isUrl() - Method in ConstrainedProperty
@return Returns the url.
isValid() - Method in AbstractConstraint
Return whether the constraint is valid for the owning class
isValid() - Method in Constraint
Return whether the constraint is valid for the owning class
isValid(String) - Method in DomainValidator
Returns true if the specified String parses as a valid domain name with a recognized top-level domain.
isValid(String) - Method in InetAddressValidator
Checks if the specified string is a valid IP address.
isValid(String) - Method in RegexValidator
Validate a value against the set of regular expressions.
isValid(String) - Method in UrlValidator
isValidAuthority(String) - Method in UrlValidator
Returns true if the authority is properly formatted.
isValidCountryCodeTld(String) - Method in DomainValidator
Returns true if the specified String matches any IANA-defined country code top-level domain.
isValidFragment(String) - Method in UrlValidator
Returns true if the given fragment is null or fragments are allowed.
isValidGenericTld(String) - Method in DomainValidator
Returns true if the specified String matches any IANA-defined generic top-level domain.
isValidInet4Address(String) - Method in InetAddressValidator
Validates an IPv4 address.
isValidInfrastructureTld(String) - Method in DomainValidator
Returns true if the specified String matches any IANA-defined infrastructure top-level domain.
isValidPath(String) - Method in UrlValidator
Returns true if the path is valid.
isValidQuery(String) - Method in UrlValidator
Returns true if the query is null or it's a properly formatted query string.
isValidScheme(String) - Method in UrlValidator
Validate scheme.
isValidTld(String) - Method in DomainValidator
Returns true if the specified String matches any IANA-defined top-level domain.
item - Field in ResultPair

J

K

L

LOG - Field in ConstrainedProperty

M

match(String) - Method in RegexValidator
Validate a value against the set of regular expressions returning the array of matched groups.
MATCHES_CONSTRAINT - Field in ConstrainedProperty
MatchesConstraint - Class in org.grails.validation
Validates the property against a supplied regular expression.
MAX_CONSTRAINT - Field in ConstrainedProperty
MAX_SIZE_CONSTRAINT - Field in ConstrainedProperty
MaxConstraint - Class in org.grails.validation
Implements a maximum value constraint.
MaxSizeConstraint - Class in org.grails.validation
Validates maximum size or length of the property, for strings and arrays this is the length and collections the size.
messageSource - Field in AbstractConstraint
messageSource - Field in ConstrainedProperty
messageSource - Field in GrailsDomainClassValidator
MIN_CONSTRAINT - Field in ConstrainedProperty
MIN_SIZE_CONSTRAINT - Field in ConstrainedProperty
MinConstraint - Class in org.grails.validation
Implements a minimum value constraint.
MinSizeConstraint - Class in org.grails.validation
Validates minimum size or length of the property, for strings and arrays this is the length and collections the size.

N

newInstance() - Method in ConstraintFactory
NO_FRAGMENTS - Field in UrlValidator
Enabling this options disallows any URL fragments.
NOT_EQUAL_CONSTRAINT - Field in ConstrainedProperty
NOT_PREFIX - Field in ConstrainedProperty
NotEqualConstraint - Class in org.grails.validation
Validates not equal to something.
NOTMET_SUFFIX - Field in ConstrainedProperty
NULLABLE_CONSTRAINT - Field in ConstrainedProperty
NullableConstraint - Class in org.grails.validation
Validates not null.

O

owningClass - Field in ConstrainedProperty

P

postValidate(Object, Errors) - Method in GrailsDomainClassValidator
Subclasses can overrite to provide custom handling of the errors object post validation.
processValidate(Object, Object, Errors) - Method in AbstractConstraint
processValidate(Object, Object, Errors) - Method in AbstractVetoingConstraint
processValidate(Object, Object, Errors) - Method in CreditCardConstraint
processValidate(Object, Object, Errors) - Method in EmailConstraint
processValidate(Object, Object, Errors) - Method in InListConstraint
processValidate(Object, Object, Errors) - Method in MatchesConstraint
processValidate(Object, Object, Errors) - Method in MaxConstraint
processValidate(Object, Object, Errors) - Method in MaxSizeConstraint
processValidate(Object, Object, Errors) - Method in MinConstraint
processValidate(Object, Object, Errors) - Method in MinSizeConstraint
processValidate(Object, Object, Errors) - Method in NotEqualConstraint
processValidate(Object, Object, Errors) - Method in RangeConstraint
processValidate(Object, Object, Errors) - Method in ScaleConstraint
{@inheritDoc}
processValidate(Object, Object, Errors) - Method in SizeConstraint
processValidate(Object, Object, Errors) - Method in UrlConstraint
processValidate(Object, Object, Errors) - Method in ValidatorConstraint
processValidateWithVetoing(Object, Object, Errors) - Method in AbstractVetoingConstraint
processValidateWithVetoing(Object, Object, Errors) - Method in BlankConstraint
processValidateWithVetoing(Object, Object, Errors) - Method in NullableConstraint
propertyName - Field in ConstrainedProperty
propertyType - Field in ConstrainedProperty

Q

R

RANGE_CONSTRAINT - Field in ConstrainedProperty
RangeConstraint - Class in org.grails.validation
Validates a range.
RegexValidator - Class in org.grails.validation.routines
Regular Expression validation (using JDK 1.4+ regex support).
RegexValidator(String, boolean) - Constructor in RegexValidator
Construct a validator that matches any one of the set of regular expressions with the specified case sensitivity.
registerNewConstraint(String, ConstraintFactory) - Method in ConstrainedProperty
rejectValue(Object, Errors, String, Object, String) - Method in AbstractConstraint
rejectValueWithDefaultMessage(Object, Errors, String, String, Object) - Method in AbstractConstraint
removeConstraint(String) - Method in ConstrainedProperty
ResultPair - Class in org.grails.validation.routines
Groups tests and expected results.
ResultPair(String, boolean) - Constructor in ResultPair

S

SCALE_CONSTRAINT - Field in ConstrainedProperty
ScaleConstraint - Class in org.grails.validation
Manages the scale for floating point numbers (i.e., the number of digits to the right of the decimal point).
setAttributes(Map) - Method in ConstrainedProperty
setBlank(boolean) - Method in ConstrainedProperty
@param blank The blank to set.
setConstraintsEvaluatorClass(Class<?>) - Method in ConstraintsEvaluatorFactoryBean
setCreditCard(boolean) - Method in ConstrainedProperty
@param creditCard The creditCard to set.
setDefaultConstraints(Map) - Method in ConstraintsEvaluatorFactoryBean
setDisplay(boolean) - Method in ConstrainedProperty
@param display The display to set.
setDomainClass(GrailsDomainClass) - Method in GrailsDomainClassValidator
@param domainClass The domainClass to set.
setEditable(boolean) - Method in ConstrainedProperty
@param editable The editable to set.
setEmail(boolean) - Method in ConstrainedProperty
@param email The email to set.
setFormat(String) - Method in ConstrainedProperty
setGrailsApplication(GrailsApplication) - Method in GrailsDomainClassValidator
setInList(List) - Method in ConstrainedProperty
@param inList The inList to set.
setMatches(String) - Method in ConstrainedProperty
@param regex The matches to set.
setMax(Comparable) - Method in ConstrainedProperty
@param max The max to set.
setMaxSize(Integer) - Method in ConstrainedProperty
@param maxSize The maxSize to set.
setMessageSource(MessageSource) - Method in AbstractConstraint
setMessageSource(MessageSource) - Method in ConstrainedProperty
The message source used to evaluate error messages
setMessageSource(MessageSource) - Method in Constraint
The message source to evaluate the default messages from
setMessageSource(MessageSource) - Method in GrailsDomainClassValidator
@param messageSource The messageSource to set.
setMin(Comparable) - Method in ConstrainedProperty
@param min The min to set.
setMinSize(Integer) - Method in ConstrainedProperty
@param minSize The minLength to set.
setNotEqual(Object) - Method in ConstrainedProperty
@param notEqual The notEqual to set.
setNullable(boolean) - Method in ConstrainedProperty
@param nullable The nullable to set.
setOrder(int) - Method in ConstrainedProperty
@param order The order to set.
setOwningClass(Class) - Method in AbstractConstraint
{@inheritDoc}
setOwningClass(Class) - Method in Constraint
The class the constraint applies to
setParameter(Object) - Method in AbstractConstraint
@param constraintParameter The constraintParameter to set.
setParameter(Object) - Method in BlankConstraint
setParameter(Object) - Method in Constraint
The parameter which the constraint is validated against.
setParameter(Object) - Method in CreditCardConstraint
setParameter(Object) - Method in EmailConstraint
setParameter(Object) - Method in InListConstraint
setParameter(Object) - Method in MatchesConstraint
setParameter(Object) - Method in MaxConstraint
setParameter(Object) - Method in MaxSizeConstraint
setParameter(Object) - Method in MinConstraint
setParameter(Object) - Method in MinSizeConstraint
setParameter(Object) - Method in NotEqualConstraint
setParameter(Object) - Method in NullableConstraint
setParameter(Object) - Method in RangeConstraint
setParameter(Object) - Method in ScaleConstraint
setParameter(Object) - Method in SizeConstraint
setParameter(Object) - Method in UrlConstraint
setParameter(Object) - Method in ValidatorConstraint
setParent(Object, Object) - Method in ConstrainedPropertyBuilder
setPassword(boolean) - Method in ConstrainedProperty
setProperty(String, Object) - Method in ConstrainedPropertyBuilder
setPropertyName(String) - Method in AbstractConstraint
@param constraintPropertyName The constraintPropertyName to set.
setPropertyName(String) - Method in ConstrainedProperty
@param propertyName The propertyName to set.
setPropertyName(String) - Method in Constraint
The name of the property the constraint applies to
setRange(Range) - Method in ConstrainedProperty
@param range The range to set.
setSize(Range) - Method in ConstrainedProperty
@param size The size to set.
setUrl(boolean) - Method in ConstrainedProperty
@param url The url to set.
setWidget(String) - Method in ConstrainedProperty
SIZE_CONSTRAINT - Field in ConstrainedProperty
SizeConstraint - Class in org.grails.validation
Validates size of the property, for strings and arrays this is the length, collections the size and numbers the value.
skipBlankValues() - Method in AbstractConstraint
skipBlankValues() - Method in BlankConstraint
skipBlankValues() - Method in ValidatorConstraint
skipNullValues() - Method in AbstractConstraint
skipNullValues() - Method in NullableConstraint
skipNullValues() - Method in ValidatorConstraint
supports(Class) - Method in BlankConstraint
supports(Class) - Method in Constraint
Returns whether the constraint supports being applied against the specified type;
supports(Class) - Method in CreditCardConstraint
supports(Class) - Method in EmailConstraint
supports(Class) - Method in GrailsDomainClassValidator
supports(Class) - Method in InListConstraint
supports(Class) - Method in MatchesConstraint
supports(Class) - Method in MaxConstraint
supports(Class) - Method in MaxSizeConstraint
supports(Class) - Method in MinConstraint
supports(Class) - Method in MinSizeConstraint
supports(Class) - Method in NotEqualConstraint
supports(Class) - Method in NullableConstraint
supports(Class) - Method in RangeConstraint
supports(Class) - Method in ScaleConstraint
supports(Class) - Method in SizeConstraint
supports(Class) - Method in UrlConstraint
supports(Class) - Method in ValidatorConstraint
supportsContraint(String) - Method in ConstrainedProperty
Checks with this ConstraintedProperty instance supports applying the specified constraint.

T

targetClass - Field in GrailsDomainClassValidator
TOOBIG_SUFFIX - Field in ConstrainedProperty
TOOLONG_SUFFIX - Field in ConstrainedProperty
TOOSHORT_SUFFIX - Field in ConstrainedProperty
TOOSMALL_SUFFIX - Field in ConstrainedProperty
toString() - Method in AbstractConstraint
toString() - Method in ConstrainedProperty
toString() - Method in RegexValidator
Provide a String representation of this validator.

U

URL_CONSTRAINT - Field in ConstrainedProperty
UrlConstraint - Class in org.grails.validation
Validates a url.
UrlValidator - Class in org.grails.validation.routines
UrlValidator(String, RegexValidator, long) - Constructor in UrlValidator
Customizable constructor.

V

valid - Field in ResultPair
validate(Object, Object, Errors) - Method in AbstractConstraint
validate(Object, Errors, boolean) - Method in CascadingValidator
An extended version of the validate(errors,obj) method that takes an additional argument specifying whether the Validator should cascade into associations or not.
validate(Object, Object, Errors) - Method in ConstrainedProperty
Validate this constrainted property against specified property value
validate(Object, Object, Errors) - Method in Constraint
Validate this constraint against a property value.
validate(Object, Errors) - Method in GrailsDomainClassValidator
@see org.springframework.validation.Validator#validate(Object, org.springframework.validation.Errors)
validate(String) - Method in RegexValidator
Validate a value against the set of regular expressions returning a String value of the aggregated groups.
validateWithVetoing(Object, Object, Errors) - Method in AbstractVetoingConstraint
validateWithVetoing(Object, Object, Errors) - Method in VetoingConstraint
VALIDATOR_CONSTRAINT - Field in ConstrainedProperty
ValidatorConstraint - Class in org.grails.validation
VetoingConstraint - Interface in grails.validation
Marker interface for vetoing constraint.

W

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _