Package org.eclipse.lyo.shacl
Class ValidationResult
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.shacl.ValidationResult
- All Implemented Interfaces:
IExtendedResource
,IResource
,IValidationResult
@OslcNamespace("http://www.w3.org/ns/shacl#")
@OslcName("ValidationResult")
@OslcResourceShape(title="ValidationResult Resource Shape",
describes="http://www.w3.org/ns/shacl#ValidationResult")
public class ValidationResult
extends AbstractResource
implements IValidationResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceShape
void
setFocusNode
(URI focusNode) void
setMessage
(String message) void
setResultPath
(URI resultPath) void
setResultSeverity
(URI resultSeverity) toString()
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
ValidationResult
- Throws:
URISyntaxException
-
ValidationResult
- Throws:
URISyntaxException
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
getResultPath
@OslcName("resultPath") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#resultPath") @OslcOccurs(ExactlyOne) @OslcReadOnly(false) public URI getResultPath()- Specified by:
getResultPath
in interfaceIValidationResult
-
getFocusNode
@OslcName("focusNode") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#focusNode") @OslcOccurs(ExactlyOne) @OslcReadOnly(false) public URI getFocusNode()- Specified by:
getFocusNode
in interfaceIValidationResult
-
getMessage
@OslcName("message") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#message") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getMessage()- Specified by:
getMessage
in interfaceIValidationResult
-
getResultSeverity
@OslcName("resultSeverity") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#resultSeverity") @OslcOccurs(ExactlyOne) @OslcReadOnly(false) @OslcAllowedValue({"http://www.w3.org/ns/shacl#Info","http://www.w3.org/ns/shacl#Warning","http://www.w3.org/ns/shacl#Violation"}) public URI getResultSeverity()- Specified by:
getResultSeverity
in interfaceIValidationResult
-
setResultPath
- Specified by:
setResultPath
in interfaceIValidationResult
-
setFocusNode
- Specified by:
setFocusNode
in interfaceIValidationResult
-
setMessage
- Specified by:
setMessage
in interfaceIValidationResult
-
setResultSeverity
- Specified by:
setResultSeverity
in interfaceIValidationResult
-
toString
-