public static class ParameterMetaData.Builder extends MetaDataBuilder
constraintHelper
Constructor and Description |
---|
ParameterMetaData.Builder(Class<?> rootClass,
ConstrainedParameter constrainedParameter,
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.
|
ParameterMetaData |
build()
Creates a new, read-only
ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder. |
adaptOriginsAndImplicitGroups
public ParameterMetaData.Builder(Class<?> rootClass, ConstrainedParameter constrainedParameter, ConstraintHelper constraintHelper)
public boolean accepts(ConstrainedElement constrainedElement)
MetaDataBuilder
accepts
in class MetaDataBuilder
constrainedElement
- The element to check.true
if the given element can be added to this
builder, false
otherwise.public void add(ConstrainedElement constrainedElement)
MetaDataBuilder
MetaDataBuilder.accepts(ConstrainedElement)
before, whether this is allowed or
not.add
in class MetaDataBuilder
constrainedElement
- The element to add.public ParameterMetaData build()
MetaDataBuilder
ConstraintMetaData
object with all
constraint information related to the method or property represented by
this builder.build
in class MetaDataBuilder
ConstraintMetaData
object.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved