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

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.raw.ConstrainedElement
ConstrainedElement.ConstrainedElementKind
 
Constructor Summary
ConstrainedType(ConfigurationSource source, BeanConstraintLocation location, Set<MetaConstraint<?>> constraints)
          Creates a new type 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, getKind, getSource, hashCode, isCascading, isConstrained, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
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 © 2012 Oracle Corporation. All Rights Reserved.