org.topbraid.spin.constraints
Class ConstraintViolation

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

public class ConstraintViolation
extends java.lang.Object

An object representing a failure of a SPIN constraint.

Author:
Holger Knublauch

Constructor Summary
ConstraintViolation(Resource root, java.util.Collection<SimplePropertyPath> paths, java.util.Collection<TemplateCall> fixes, java.lang.String message, Resource source)
           
 
Method Summary
 java.util.Collection<TemplateCall> getFixes()
           
 java.lang.String getMessage()
           
 java.util.Collection<SimplePropertyPath> getPaths()
           
 Resource getRoot()
           
 Resource getSource()
          Gets the SPIN Query or template call that has caused this violation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintViolation

public ConstraintViolation(Resource root,
                           java.util.Collection<SimplePropertyPath> paths,
                           java.util.Collection<TemplateCall> fixes,
                           java.lang.String message,
                           Resource source)
Method Detail

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)