org.hibernate.validator.internal.metadata.raw
Class ConstrainedField

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.raw.ConstrainedElement
ConstrainedElement.ConstrainedElementKind
 
Field Summary
 
Fields inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
constraints, groupConversions, isCascading, location, source
 
Constructor Summary
ConstrainedField(ConfigurationSource source, BeanConstraintLocation location, Set<MetaConstraint<?>> constraints, Map<Class<?>,Class<?>> groupConversions, boolean isCascading)
          Creates a new field meta data object.
 
Method Summary
 BeanConstraintLocation getLocation()
          Returns the location of this constrained element.
 
Methods inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
equals, getConstraints, getGroupConversions, getKind, hashCode, isCascading, isConstrained, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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, Inc. All Rights Reserved