org.hibernate.validator.internal.metadata.raw
Class ConstrainedField
java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
org.hibernate.validator.internal.metadata.raw.ConstrainedField
- All Implemented Interfaces:
- Iterable<MetaConstraint<?>>, ConstrainedElement
public class ConstrainedField
- extends AbstractConstrainedElement
Represents a field of a Java type and all its associated meta-data relevant
in the context of bean validation, for instance its constraints.
- Author:
- Gunnar Morling
ConstrainedField
public ConstrainedField(ConfigurationSource source,
BeanConstraintLocation location,
Set<MetaConstraint<?>> constraints,
Map<Class<?>,Class<?>> groupConversions,
boolean isCascading)
- Creates a new field meta data object.
- Parameters:
source - The source of meta data.location - The location of the represented field.constraints - The constraints of the represented field, if any.groupConversions - The group conversions of the represented field, if any.isCascading - Whether a cascaded validation of the represented field shall
be performed or not.
getLocation
public BeanConstraintLocation getLocation()
- Description copied from interface:
ConstrainedElement
- Returns the location of this constrained element.
- Specified by:
getLocation in interface ConstrainedElement- Overrides:
getLocation in class AbstractConstrainedElement
- Returns:
- The location of this constrained element.
Copyright © 2007-2013 Red Hat Middleware, LLC. All Rights Reserved