org.hibernate.validator.internal.metadata.raw
Class ConstrainedType
java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
org.hibernate.validator.internal.metadata.raw.ConstrainedType
- All Implemented Interfaces:
- Iterable<MetaConstraint<?>>, ConstrainedElement
public class ConstrainedType
- extends AbstractConstrainedElement
Represents a Java type and all its associated meta-data relevant in the
context of bean validation, for instance its constraints. Only class level
meta-data is represented by this type, but not meta-data for any members.
- Author:
- Gunnar Morling
ConstrainedType
public ConstrainedType(ConfigurationSource source,
BeanConstraintLocation location,
Set<MetaConstraint<?>> constraints)
- Creates a new type meta data object.
- Parameters:
source - The source of meta data.location - The location of the represented type.constraints - The constraints of the represented type, if any.
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