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
-
-
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
cascadingMetaDataBuilder, constraints, source, typeArgumentConstraints
-
-
Constructor Summary
Constructors Constructor Description ConstrainedType(ConfigurationSource source, Class<?> beanClass, Set<MetaConstraint<?>> constraints)Creates a new type meta data object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Class<?>getBeanClass()inthashCode()-
Methods inherited from class org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
getCascadingMetaDataBuilder, getConstraints, getKind, getSource, getTypeArgumentConstraints, isConstrained, iterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ConstrainedType
public ConstrainedType(ConfigurationSource source, Class<?> beanClass, Set<MetaConstraint<?>> constraints)
Creates a new type meta data object.- Parameters:
source- The source of meta data.beanClass- The represented type.constraints- The constraints of the represented type, if any.
-
-
Method Detail
-
getBeanClass
public Class<?> getBeanClass()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractConstrainedElement
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractConstrainedElement
-
-