org.hibernate.validator.internal.metadata.descriptor
Class ElementDescriptorImpl
java.lang.Object
org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
- All Implemented Interfaces:
- ElementDescriptor
- Direct Known Subclasses:
- BeanDescriptorImpl, MethodDescriptorImpl, ParameterDescriptorImpl, PropertyDescriptorImpl
public class ElementDescriptorImpl
- extends Object
- implements ElementDescriptor
Describes a validated element (class, field or property).
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementDescriptorImpl
public ElementDescriptorImpl(Class<?> type,
Set<ConstraintDescriptorImpl<?>> constraintDescriptors,
boolean cascaded,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
isCascaded
public boolean isCascaded()
hasConstraints
public final boolean hasConstraints()
- Specified by:
hasConstraints in interface ElementDescriptor
getElementClass
public final Class<?> getElementClass()
- Specified by:
getElementClass in interface ElementDescriptor
getConstraintDescriptors
public final Set<ConstraintDescriptor<?>> getConstraintDescriptors()
- Specified by:
getConstraintDescriptors in interface ElementDescriptor
findConstraints
public final ElementDescriptor.ConstraintFinder findConstraints()
- Specified by:
findConstraints in interface ElementDescriptor
asDescriptors
protected static Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved