org.topbraid.spin.constraints
Class SPINConstraints

java.lang.Object
  extended by org.topbraid.spin.constraints.SPINConstraints

public class SPINConstraints
extends java.lang.Object

Performs SPIN constraint checking on one or more instances, based on the spin:constraints defined on the types of those instances.

Author:
Holger Knublauch

Constructor Summary
SPINConstraints()
           
 
Method Summary
static java.util.List<ConstraintViolation> check(Resource resource, ProgressMonitor monitor)
          Checks all spin:constraints for a given Resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINConstraints

public SPINConstraints()
Method Detail

check

public static java.util.List<ConstraintViolation> check(Resource resource,
                                                        ProgressMonitor monitor)
Checks all spin:constraints for a given Resource.

Parameters:
resource - the instance to run constraint checks on
monitor - an (optional) progress monitor (currently ignored)
Returns:
a List of ConstraintViolations (empty if all is OK)