|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.spin.constraints.SPINConstraints
public class SPINConstraints
Performs SPIN constraint checking on one or more instances, based on the spin:constraints defined on the types of those instances.
| Constructor Summary | |
|---|---|
SPINConstraints()
|
|
| Method Summary | |
|---|---|
static void |
addConstraintViolationsRDF(java.util.List<ConstraintViolation> cvs,
Model result,
boolean createSource)
Creates an RDF representation (instances of spin:ConstraintViolation) from a collection of ConstraintViolation Java objects. |
static java.util.List<ConstraintViolation> |
check(Model model,
java.util.List<SPINStatistics> stats,
ProgressMonitor monitor)
Checks all instances in a given Model against all spin:constraints and returns a List of constraint violations. |
static java.util.List<ConstraintViolation> |
check(Model model,
ProgressMonitor monitor)
Checks all instances in a given Model against all spin:constraints and returns a List of constraint violations. |
static java.util.List<ConstraintViolation> |
check(Resource resource,
java.util.List<SPINStatistics> stats,
ProgressMonitor monitor)
Checks all spin:constraints for a given Resource. |
static java.util.List<ConstraintViolation> |
check(Resource resource,
ProgressMonitor monitor)
Checks all spin:constraints for a given Resource. |
static boolean |
isConstraintProperty(Property property)
Checks if a given property is a SPIN constraint property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPINConstraints()
| Method Detail |
|---|
public static void addConstraintViolationsRDF(java.util.List<ConstraintViolation> cvs,
Model result,
boolean createSource)
cvs - the violation objectsresult - the Model to add the results tocreateSource - true to also create the spin:violationSource
public static java.util.List<ConstraintViolation> check(Resource resource,
ProgressMonitor monitor)
resource - the instance to run constraint checks onmonitor - an (optional) progress monitor (currently ignored)
public static java.util.List<ConstraintViolation> check(Resource resource,
java.util.List<SPINStatistics> stats,
ProgressMonitor monitor)
resource - the instance to run constraint checks onstats - an (optional) List to add statistics tomonitor - an (optional) progress monitor (currently ignored)
public static java.util.List<ConstraintViolation> check(Model model,
ProgressMonitor monitor)
model - the Model to operate onmonitor - an optional ProgressMonitor
public static java.util.List<ConstraintViolation> check(Model model,
java.util.List<SPINStatistics> stats,
ProgressMonitor monitor)
model - the Model to operate onstats - an (optional) List to write statistics reports tomonitor - an optional ProgressMonitor
public static boolean isConstraintProperty(Property property)
property - the property to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||