org.hibernate.validator.internal.metadata.descriptor
Class ElementDescriptorImpl

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Constructor Summary
ElementDescriptorImpl(Class<?> type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean cascaded, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
           
 
Method Summary
protected static Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
           
 ElementDescriptor.ConstraintFinder findConstraints()
           
 Set<ConstraintDescriptor<?>> getConstraintDescriptors()
           
 Class<?> getElementClass()
           
 boolean hasConstraints()
           
 boolean isCascaded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementDescriptorImpl

public ElementDescriptorImpl(Class<?> type,
                             Set<ConstraintDescriptorImpl<?>> constraintDescriptors,
                             boolean cascaded,
                             boolean defaultGroupSequenceRedefined,
                             List<Class<?>> defaultGroupSequence)
Method Detail

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