Package org.obolibrary.robot.checks
Class InvalidReferenceViolation
- java.lang.Object
-
- org.obolibrary.robot.checks.InvalidReferenceViolation
-
public class InvalidReferenceViolation extends Object
Represents a reference violationTODO: we may want to make warnings if a class is slated for deprecation in the future: see https://github.com/information-artifact-ontology/ontology-metadata/issues/22
- Author:
- cjm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InvalidReferenceViolation.Category
A reference may be invalid for different reasons
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidReferenceViolation
create(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLEntity referencedObject, InvalidReferenceViolation.Category category)
org.semanticweb.owlapi.model.OWLAxiom
getAxiom()
InvalidReferenceViolation.Category
getCategory()
org.semanticweb.owlapi.model.OWLEntity
getReferencedObject()
String
toString()
-
-
-
Method Detail
-
create
public static InvalidReferenceViolation create(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLEntity referencedObject, InvalidReferenceViolation.Category category)
- Parameters:
axiom
- the OWLAxiom containing invalid referencereferencedObject
- the OWLEntity that is dangling or deprecatedcategory
- the Category of violation (deprecated or dangling)- Returns:
- new instance
-
getAxiom
public org.semanticweb.owlapi.model.OWLAxiom getAxiom()
- Returns:
- the axiom that contains the invalid reference
-
getReferencedObject
public org.semanticweb.owlapi.model.OWLEntity getReferencedObject()
- Returns:
- the referencedObject that is either deprecated or dangling
-
getCategory
public InvalidReferenceViolation.Category getCategory()
- Returns:
- the category of violation (deprecated or dangling)
-
-