public static class ClassMetaData.Builder extends MetaDataBuilder
constraintCreationContext| Constructor and Description |
|---|
Builder(Class<?> beanClass,
ConstrainedType constrainedType,
ConstraintCreationContext constraintCreationContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ConstrainedElement constrainedElement)
Whether this builder allows to add the given element or not.
|
void |
add(ConstrainedElement constrainedElement)
Adds the given element to this builder.
|
ClassMetaData |
build()
Creates a new, read-only
ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder. |
adaptConstraints, adaptOriginsAndImplicitGroups, getBeanClass, getContainerElementConstraints, getDirectConstraints, isCascadingpublic Builder(Class<?> beanClass, ConstrainedType constrainedType, ConstraintCreationContext constraintCreationContext)
public boolean accepts(ConstrainedElement constrainedElement)
MetaDataBuilderaccepts in class MetaDataBuilderconstrainedElement - The element to check.true if the given element can be added to this
builder, false otherwise.public final void add(ConstrainedElement constrainedElement)
MetaDataBuilderMetaDataBuilder.accepts(ConstrainedElement) before, whether this is allowed or
not.add in class MetaDataBuilderconstrainedElement - The element to add.public ClassMetaData build()
MetaDataBuilderConstraintMetaData object with all
constraint information related to the method or property represented by
this builder.build in class MetaDataBuilderConstraintMetaData object.Copyright © 2007-2020 Red Hat, Inc. All Rights Reserved