Package org.eclipse.lyo.shacl
Class ValidationReport
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.shacl.ValidationReport
- All Implemented Interfaces:
IExtendedResource
,IResource
,IValidationReport
@OslcNamespace("http://www.w3.org/ns/shacl#")
@OslcName("ValidationReport")
@OslcResourceShape(title="ValidationReport Resource Shape",
describes="http://www.w3.org/ns/shacl#ValidationReport")
public class ValidationReport
extends AbstractResource
implements IValidationReport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResult
(ValidationResult result) static ResourceShape
void
setConforms
(Boolean conforms) void
setResult
(HashSet<ValidationResult> result) toString()
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
ValidationReport
- Throws:
URISyntaxException
-
ValidationReport
- Throws:
URISyntaxException
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
addResult
- Specified by:
addResult
in interfaceIValidationReport
-
isConforms
@OslcName("conforms") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#conforms") @OslcOccurs(ExactlyOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isConforms()- Specified by:
isConforms
in interfaceIValidationReport
-
getResult
@OslcName("result") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#result") @OslcOccurs(ZeroOrMany) @OslcValueType(LocalResource) @OslcRange("http://www.w3.org/ns/shacl#ValidationResult") @OslcReadOnly(false) public HashSet<ValidationResult> getResult()- Specified by:
getResult
in interfaceIValidationReport
-
setConforms
- Specified by:
setConforms
in interfaceIValidationReport
-
setResult
- Specified by:
setResult
in interfaceIValidationReport
-
toString
-