org.semanticweb.owlapi.profiles
Class UseOfUnknownDatatype

java.lang.Object
  extended by org.semanticweb.owlapi.profiles.OWLProfileViolation
      extended by org.semanticweb.owlapi.profiles.UseOfUnknownDatatype
All Implemented Interfaces:
OWL2ProfileViolation

public class UseOfUnknownDatatype
extends OWLProfileViolation
implements OWL2ProfileViolation

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 03-Aug-2009 Use of an unknown datatype. That is, the datatype isn't in the OWL 2 datatype map, the datatype IRI doesn't begin with the xsd: prefix, the datatype isn't rdfs:Literal, and the datatype isn't defined with a DatatypeDefinition axiom


Constructor Summary
UseOfUnknownDatatype(OWLOntology ontology, OWLAxiom axiom, OWLDatatype datatype)
           
 
Method Summary
 void accept(OWL2ProfileViolationVisitor visitor)
           
 OWLDatatype getDatatype()
          Gets the datatype that is invalid
 java.lang.String toString()
           
 
Methods inherited from class org.semanticweb.owlapi.profiles.OWLProfileViolation
getAxiom, getDocumentIRI, getImportsClosure, getOntologyID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UseOfUnknownDatatype

public UseOfUnknownDatatype(OWLOntology ontology,
                            OWLAxiom axiom,
                            OWLDatatype datatype)
Method Detail

accept

public void accept(OWL2ProfileViolationVisitor visitor)
Specified by:
accept in interface OWL2ProfileViolation

getDatatype

public OWLDatatype getDatatype()
Gets the datatype that is invalid

Returns:
The invalid datatype

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object