org.semanticweb.owl.model.change
Class AddDataType

java.lang.Object
  |
  +--org.semanticweb.owl.model.change.OntologyChange
        |
        +--org.semanticweb.owl.model.change.AddDataType

public class AddDataType
extends OntologyChange

Add a new Entity.

Version:
$Id: AddDataType.java,v 1.1.1.1 2003/10/14 17:10:09 sean_bechhofer Exp $

Field Summary
 
Fields inherited from class org.semanticweb.owl.model.change.OntologyChange
cause, ontology
 
Constructor Summary
AddDataType(OWLOntology ontology, OWLDataType datatype, OntologyChange cause)
           
 
Method Summary
 void accept(ChangeVisitor visitor)
          Accept a visit from a change visitor.
 OWLDataType getDatatype()
          The datatype that should be added.
 String toString()
           
 
Methods inherited from class org.semanticweb.owl.model.change.OntologyChange
getCause, getOntology, setCause, setOntology
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddDataType

public AddDataType(OWLOntology ontology,
                   OWLDataType datatype,
                   OntologyChange cause)
Parameters:
ontology - an OWLOntology value
datatype - an OWLDataType value
cause - a OntologyChange value
Method Detail

getDatatype

public OWLDataType getDatatype()
The datatype that should be added.

Returns:
an OWLDataType value

accept

public void accept(ChangeVisitor visitor)
            throws OWLException
Description copied from class: OntologyChange
Accept a visit from a change visitor.

Specified by:
accept in class OntologyChange
Parameters:
visitor - a ChangeVisitor value
OWLException

toString

public String toString()
Overrides:
toString in class Object


WonderWeb