uk.ac.manchester.cs.owl.owlapi
Class OWLDataComplementOfImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLDataComplementOfImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLDataComplementOf, OWLDataRange, OWLObject, OWLPropertyRange, SWRLPredicate

public class OWLDataComplementOfImpl
extends OWLObjectImpl
implements OWLDataComplementOf

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006


Constructor Summary
OWLDataComplementOfImpl(OWLDataFactory dataFactory, OWLDataRange dataRange)
           
 
Method Summary
 void accept(OWLDataRangeVisitor visitor)
           
<O> O
accept(OWLDataRangeVisitorEx<O> visitor)
           
 void accept(OWLDataVisitor visitor)
           
<O> O
accept(OWLDataVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 OWLDatatype asOWLDatatype()
          If this data range is a datatype then this method may be used to obtain it as a datatype (rather than using an explicit cast).
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 OWLDataRange getDataRange()
          Gets the data range which this data range is a complement of.
 DataRangeType getDataRangeType()
          Gets the type of this data range
 boolean isDatatype()
          Determines if this data range is a datatype (int, float, ...)
 boolean isTopDatatype()
          Determines if this data range is the top data type.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWLDataComplementOfImpl

public OWLDataComplementOfImpl(OWLDataFactory dataFactory,
                               OWLDataRange dataRange)
Method Detail

getDataRangeType

public DataRangeType getDataRangeType()
Description copied from interface: OWLDataRange
Gets the type of this data range

Specified by:
getDataRangeType in interface OWLDataRange
Returns:
The data range type

isDatatype

public boolean isDatatype()
Description copied from interface: OWLDataRange
Determines if this data range is a datatype (int, float, ...)

Specified by:
isDatatype in interface OWLDataRange
Returns:
true if this datarange is a datatype, or false if it is not a datatype and is some other data range such as a data range restriction, data oneOf or data complementOf.

isTopDatatype

public boolean isTopDatatype()
Description copied from interface: OWLDataRange
Determines if this data range is the top data type.

Specified by:
isTopDatatype in interface OWLDataRange
Returns:
true if this data range is the top datatype otherwise false

getDataRange

public OWLDataRange getDataRange()
Description copied from interface: OWLDataComplementOf
Gets the data range which this data range is a complement of.

Specified by:
getDataRange in interface OWLDataComplementOf
Returns:
The complemented data range.

asOWLDatatype

public OWLDatatype asOWLDatatype()
Description copied from interface: OWLDataRange
If this data range is a datatype then this method may be used to obtain it as a datatype (rather than using an explicit cast).

Specified by:
asOWLDatatype in interface OWLDataRange
Returns:
This data range as an OWLDatatype

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl

accept

public void accept(OWLDataVisitor visitor)
Specified by:
accept in interface OWLDataRange

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

public <O> O accept(OWLDataVisitorEx<O> visitor)
Specified by:
accept in interface OWLDataRange

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject

accept

public void accept(OWLDataRangeVisitor visitor)
Specified by:
accept in interface OWLDataRange

accept

public <O> O accept(OWLDataRangeVisitorEx<O> visitor)
Specified by:
accept in interface OWLDataRange

compareObjectOfSameType

protected int compareObjectOfSameType(OWLObject object)
Specified by:
compareObjectOfSameType in class OWLObjectImpl