public final class CollectionConstraint extends CollectionComponentParameter implements Constraint
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolver| Modifier and Type | Field and Description |
|---|---|
protected Constraint |
constraint |
ARRAY, ARRAY_ALLOW_EMPTY| Constructor and Description |
|---|
CollectionConstraint(Constraint constraint) |
CollectionConstraint(Constraint constraint,
boolean emptyCollection) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PicoVisitor visitor) |
boolean |
evaluate(ComponentAdapter adapter)
Evaluate whether the given component adapter matches this constraint.
|
getMatchingComponentAdapters, resolve, verifyisResolvable, resolveInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisResolvable, resolve, resolveInstance, verifyprotected final Constraint constraint
public CollectionConstraint(Constraint constraint)
public CollectionConstraint(Constraint constraint, boolean emptyCollection)
public boolean evaluate(ComponentAdapter adapter)
Constraintevaluate in interface Constraintevaluate in class CollectionComponentParameteradapter - a ComponentAdapter valuepublic void accept(PicoVisitor visitor)
accept in interface Parameteraccept in class CollectionComponentParameterCopyright © 2003-2014 Codehaus. All Rights Reserved.