org.gcube.contentmanagement.contentmanager.stubs.model.constraints
Interface Constraint<T>

Type Parameters:
T - the constrained type.
All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
After, AfterDate, All, AnyValue, BaseConstraint, Before, BeforeDate, Either, Less, Match, More, Not, Same

public interface Constraint<T>
extends java.io.Serializable

A constraint on values of a given type.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 boolean accepts(T t)
          Indicates whether a value satisfies the constraint.
 

Method Detail

accepts

boolean accepts(T t)
Indicates whether a value satisfies the constraint.

Parameters:
t - the value.
Returns:
true if it does, false otherwise.