public static class MethodMetaData.Builder extends MetaDataBuilder
MethodMetaData
instances.constraintHelper
Constructor and Description |
---|
MethodMetaData.Builder(ConstrainedMethod constrainedMethod,
ConstraintHelper constraintHelper)
Creates a new builder based on the given method meta data.
|
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.
|
MethodMetaData |
build()
Creates a new, read-only
ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder. |
adaptOriginsAndImplicitGroups
public MethodMetaData.Builder(ConstrainedMethod constrainedMethod, ConstraintHelper constraintHelper)
constrainedMethod
- The base method for this builder. This is the lowest
method with a given signature within a type hierarchy.constraintHelper
- the constraint helperpublic boolean accepts(ConstrainedElement constrainedElement)
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.accepts(ConstrainedElement)
before, whether this is allowed or
not.add
in class MetaDataBuilder
constrainedElement
- The element to add.public MethodMetaData build()
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