Package org.apache.bval.jsr.metadata
Class HierarchyBuilder
- java.lang.Object
-
- org.apache.bval.jsr.metadata.CompositeBuilder
-
- org.apache.bval.jsr.metadata.HierarchyBuilder
-
public class HierarchyBuilder extends CompositeBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
HierarchyBuilder.ContainerDelegate<E extends AnnotatedElement>
(package private) static class
HierarchyBuilder.ElementDelegate<E extends AnnotatedElement,T extends MetadataBuilder.ForElement<E>>
(package private) static class
HierarchyBuilder.HierarchyDelegate<E extends AnnotatedElement,D extends HasAnnotationBehavior>
-
Nested classes/interfaces inherited from class org.apache.bval.jsr.metadata.CompositeBuilder
CompositeBuilder.Delegator<DELEGATE extends HasAnnotationBehavior>, CompositeBuilder.ForBean<T>, CompositeBuilder.ForClass<T>, CompositeBuilder.ForElement<DELEGATE extends MetadataBuilder.ForElement<E>,E extends AnnotatedElement>, CompositeBuilder.ForExecutable<DELEGATE extends MetadataBuilder.ForExecutable<E>,E extends Executable>
-
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.metadata.CompositeBuilder
validatorFactory
-
-
Constructor Summary
Constructors Constructor Description HierarchyBuilder(ApacheValidatorFactory validatorFactory, Function<Class<?>,MetadataBuilder.ForBean<?>> getBeanBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MetadataBuilder.ForBean<T>
forBean(Class<T> beanClass)
protected <DELEGATE extends MetadataBuilder.ForContainer<E>,E extends AnnotatedElement>
MetadataBuilder.ForContainer<E>forContainer(List<DELEGATE> delegates, Meta<E> meta, jakarta.validation.ElementKind elementKind)
protected <DELEGATE extends MetadataBuilder.ForElement<E>,E extends Executable>
MetadataBuilder.ForElement<E>forCrossParameter(List<DELEGATE> delegates, Meta<E> meta)
protected <E extends AnnotatedElement>
Map<Meta<E>,Annotation[]>getConstraintDeclarationMap(CompositeBuilder.ForElement<? extends MetadataBuilder.ForElement<E>,E> composite, Meta<E> meta)
protected <T> List<Class<?>>
getGroupSequence(CompositeBuilder.ForClass<T> composite, Meta<Class<T>> meta)
-
Methods inherited from class org.apache.bval.jsr.metadata.CompositeBuilder
compose, composeContainer, getMetaParameters, with
-
-
-
-
Constructor Detail
-
HierarchyBuilder
public HierarchyBuilder(ApacheValidatorFactory validatorFactory, Function<Class<?>,MetadataBuilder.ForBean<?>> getBeanBuilder)
-
-
Method Detail
-
forBean
public <T> MetadataBuilder.ForBean<T> forBean(Class<T> beanClass)
-
getConstraintDeclarationMap
protected <E extends AnnotatedElement> Map<Meta<E>,Annotation[]> getConstraintDeclarationMap(CompositeBuilder.ForElement<? extends MetadataBuilder.ForElement<E>,E> composite, Meta<E> meta)
- Overrides:
getConstraintDeclarationMap
in classCompositeBuilder
-
getGroupSequence
protected <T> List<Class<?>> getGroupSequence(CompositeBuilder.ForClass<T> composite, Meta<Class<T>> meta)
- Overrides:
getGroupSequence
in classCompositeBuilder
-
forContainer
protected <DELEGATE extends MetadataBuilder.ForContainer<E>,E extends AnnotatedElement> MetadataBuilder.ForContainer<E> forContainer(List<DELEGATE> delegates, Meta<E> meta, jakarta.validation.ElementKind elementKind)
- Overrides:
forContainer
in classCompositeBuilder
-
forCrossParameter
protected <DELEGATE extends MetadataBuilder.ForElement<E>,E extends Executable> MetadataBuilder.ForElement<E> forCrossParameter(List<DELEGATE> delegates, Meta<E> meta)
- Overrides:
forCrossParameter
in classCompositeBuilder
-
-