uk.ac.manchester.cs.owl
Class OWLDataRangeRestrictionImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.OWLDataRangeRestrictionImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLDataRange, OWLDataRangeRestriction, OWLObject, OWLPropertyRange

public class OWLDataRangeRestrictionImpl
extends OWLObjectImpl
implements OWLDataRangeRestriction

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


Constructor Summary
OWLDataRangeRestrictionImpl(OWLDataFactory dataFactory, OWLDataRange dataRange, java.util.Set<OWLDataRangeFacetRestriction> facetRestrictions)
           
 
Method Summary
 void accept(OWLDataVisitor visitor)
           
<O> O
accept(OWLDataVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 boolean equals(java.lang.Object obj)
           
 OWLDataRange getDataRange()
          Gets the data range that this data range restricts.
 java.util.Set<OWLDataRangeFacetRestriction> getFacetRestrictions()
          Gets the facet restrictions on this data range
 boolean isDataType()
          Determines if this data range is a datatype (int, float, ...)
 
Methods inherited from class uk.ac.manchester.cs.owl.OWLObjectImpl
compareTo, getOWLDataFactory, getSignature, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
getSignature
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLDataRangeRestrictionImpl

public OWLDataRangeRestrictionImpl(OWLDataFactory dataFactory,
                                   OWLDataRange dataRange,
                                   java.util.Set<OWLDataRangeFacetRestriction> facetRestrictions)
Method Detail

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.

getDataRange

public OWLDataRange getDataRange()
Description copied from interface: OWLDataRangeRestriction
Gets the data range that this data range restricts.

Specified by:
getDataRange in interface OWLDataRangeRestriction

getFacetRestrictions

public java.util.Set<OWLDataRangeFacetRestriction> getFacetRestrictions()
Gets the facet restrictions on this data range

Specified by:
getFacetRestrictions in interface OWLDataRangeRestriction
Returns:
A Set of facet restrictions that apply to this data range

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