public abstract class ConstraintMappingContextImplBase extends Object
Modifier and Type | Field and Description |
---|---|
protected DefaultConstraintMapping |
mapping |
Constructor and Description |
---|
ConstraintMappingContextImplBase(DefaultConstraintMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConstraint(ConfiguredConstraint<?,?> constraint)
Adds a constraint to the set of constraints managed by this creational context.
|
protected DefaultConstraintMapping |
getConstraintMapping() |
protected Set<MetaConstraint<?>> |
getConstraints(ConstraintHelper constraintHelper)
Converts all constraints managed by this creational context into
MetaConstraint s. |
protected abstract ConstraintDescriptorImpl.ConstraintType |
getConstraintType()
Returns the type of constraints hosted on the element configured by this creational context.
|
<C> TypeConstraintMappingContext<C> |
type(Class<C> type) |
protected final DefaultConstraintMapping mapping
public ConstraintMappingContextImplBase(DefaultConstraintMapping mapping)
public <C> TypeConstraintMappingContext<C> type(Class<C> type)
protected abstract ConstraintDescriptorImpl.ConstraintType getConstraintType()
protected DefaultConstraintMapping getConstraintMapping()
protected void addConstraint(ConfiguredConstraint<?,?> constraint)
constraint
- the constraint to addprotected Set<MetaConstraint<?>> getConstraints(ConstraintHelper constraintHelper)
MetaConstraint
s.constraintHelper
- constraint helper required for creation of meta constraints.Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved