public class ConstraintViolation extends Object
| Constructor and Description |
|---|
ConstraintViolation(org.apache.jena.rdf.model.Resource root,
Collection<SimplePropertyPath> paths,
Collection<TemplateCall> fixes,
String message,
org.apache.jena.rdf.model.Resource source)
Constructs a new ConstraintViolation.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<TemplateCall> |
getFixes() |
org.apache.jena.rdf.model.Resource |
getLevel() |
String |
getMessage() |
Collection<SimplePropertyPath> |
getPaths() |
org.apache.jena.rdf.model.Resource |
getRoot() |
org.apache.jena.rdf.model.Resource |
getSource()
Gets the SPIN Query or template call that has caused this violation.
|
org.apache.jena.rdf.model.RDFNode |
getValue() |
boolean |
isError()
Checks if this represents an Error or Fatal.
|
void |
setLevel(org.apache.jena.rdf.model.Resource level) |
void |
setValue(org.apache.jena.rdf.model.RDFNode value) |
public ConstraintViolation(org.apache.jena.rdf.model.Resource root,
Collection<SimplePropertyPath> paths,
Collection<TemplateCall> fixes,
String message,
org.apache.jena.rdf.model.Resource source)
root - the root resource of the violationpaths - the paths (may be empty)fixes - potential fixes for the violations (may be empty)message - the message explaining the errorsource - the SPIN Query or template call that has caused this violation
(may be null)public Collection<TemplateCall> getFixes()
public org.apache.jena.rdf.model.Resource getLevel()
public String getMessage()
public Collection<SimplePropertyPath> getPaths()
public org.apache.jena.rdf.model.Resource getRoot()
public org.apache.jena.rdf.model.Resource getSource()
public org.apache.jena.rdf.model.RDFNode getValue()
public boolean isError()
public void setLevel(org.apache.jena.rdf.model.Resource level)
public void setValue(org.apache.jena.rdf.model.RDFNode value)
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.