Class LowercaseDefinitionError
java.lang.Object
org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
org.incenp.obofoundry.odk.fixreport.LowercaseDefinitionError
- All Implemented Interfaces:
IFixableError
Represents the
lowercase_definition error.
This error is fixed simply by upper-casing the first character of the original value. However we avoid doing that by default if the initial lowercase character is followed by an uppercase character, as this could indicate the initial character is purposefully lowercase.
-
Field Summary
Fields inherited from class org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
property, subject, value -
Constructor Summary
ConstructorsConstructorDescriptionLowercaseDefinitionError(org.semanticweb.owlapi.model.IRI subject, String value) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.semanticweb.owlapi.model.OWLLiteralfixValue(org.semanticweb.owlapi.model.OWLLiteral oldValue, org.semanticweb.owlapi.model.OWLDataFactory factory, boolean dubious) Fixes the annotation value.Methods inherited from class org.incenp.obofoundry.odk.fixreport.LiteralAnnotationError
fixError
-
Constructor Details
-
LowercaseDefinitionError
-
-
Method Details
-
fixValue
protected org.semanticweb.owlapi.model.OWLLiteral fixValue(org.semanticweb.owlapi.model.OWLLiteral oldValue, org.semanticweb.owlapi.model.OWLDataFactory factory, boolean dubious) Description copied from class:LiteralAnnotationErrorFixes the annotation value.- Specified by:
fixValuein classLiteralAnnotationError- Parameters:
oldValue- The literal representing the invalid annotation value.factory- A factory that can be used to create the correct value.dubious- Iftrue, fix the error even if we are not certain it is actually an error.- Returns:
- The correct value to use to replace the original one, or
nullif correction could not be performed for any reason.
-