org.topbraid.spin.constraints
Class ConstraintViolation
java.lang.Object
org.topbraid.spin.constraints.ConstraintViolation
public class ConstraintViolation
- extends java.lang.Object
An object representing a failure of a SPIN constraint.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintViolation
public ConstraintViolation(Resource root,
java.util.Collection<SimplePropertyPath> paths,
java.util.Collection<TemplateCall> fixes,
java.lang.String message,
Resource source)
getFixes
public java.util.Collection<TemplateCall> getFixes()
getMessage
public java.lang.String getMessage()
getPaths
public java.util.Collection<SimplePropertyPath> getPaths()
getRoot
public Resource getRoot()
getSource
public Resource getSource()
- Gets the SPIN Query or template call that has caused this violation.
- Returns:
- the source (code should be robust against null values)