public static class PropertyMetaData.Builder extends MetaDataBuilder
constraintHelper| Constructor and Description |
|---|
Builder(Class<?> beanClass,
ConstrainedExecutable constrainedMethod,
ConstraintHelper constraintHelper) |
Builder(Class<?> beanClass,
ConstrainedField constrainedField,
ConstraintHelper constraintHelper) |
Builder(Class<?> beanClass,
ConstrainedType constrainedType,
ConstraintHelper constraintHelper) |
| 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.
|
PropertyMetaData |
build()
Creates a new, read-only
ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder. |
UnwrapMode |
unwrapMode() |
adaptOriginsAndImplicitGroups, getBeanClass, getConstraints, getGroupConversions, isCascadingpublic Builder(Class<?> beanClass, ConstrainedField constrainedField, ConstraintHelper constraintHelper)
public Builder(Class<?> beanClass, ConstrainedType constrainedType, ConstraintHelper constraintHelper)
public Builder(Class<?> beanClass, ConstrainedExecutable constrainedMethod, ConstraintHelper constraintHelper)
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 UnwrapMode unwrapMode()
unwrapMode in class MetaDataBuilderpublic PropertyMetaData build()
MetaDataBuilderConstraintMetaData object with all
constraint information related to the method or property represented by
this builder.build in class MetaDataBuilderConstraintMetaData object.Copyright © 2018 JBoss by Red Hat. All rights reserved.