uk.ac.manchester.cs.owl.owlapi
Class OWLValueRestrictionImpl<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,V extends OWLObject>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLClassExpressionImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLAnonymousClassExpressionImpl
              extended by uk.ac.manchester.cs.owl.owlapi.OWLRestrictionImpl<R,P,P>
                  extended by uk.ac.manchester.cs.owl.owlapi.OWLValueRestrictionImpl<R,P,V>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnonymousClassExpression, OWLClassExpression, OWLHasValueRestriction<R,P,V>, OWLObject, OWLPropertyRange, OWLRestriction<R,P,P>, SWRLPredicate
Direct Known Subclasses:
OWLDataHasValueImpl, OWLObjectHasValueImpl

public abstract class OWLValueRestrictionImpl<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,V extends OWLObject>
extends OWLRestrictionImpl<R,P,P>
implements OWLHasValueRestriction<R,P,V>

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


Constructor Summary
protected OWLValueRestrictionImpl(OWLDataFactory dataFactory, P property, V value)
           
 
Method Summary
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 V getValue()
          Gets the value which is the filler for this restriction.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLRestrictionImpl
getProperty, isClassExpressionLiteral
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLAnonymousClassExpressionImpl
asConjunctSet, asDisjunctSet, asOWLClass, containsConjunct, getComplementNNF, getNNF, getObjectComplementOf, isAnonymous, isOWLNothing, isOWLThing
 
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
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLHasValueRestriction
asSomeValuesFrom
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLRestriction
getProperty, isDataRestriction, isObjectRestriction
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLClassExpression
accept, accept, asConjunctSet, asDisjunctSet, asOWLClass, containsConjunct, getClassExpressionType, getComplementNNF, getNNF, getObjectComplementOf, isAnonymous, isClassExpressionLiteral, isOWLNothing, isOWLThing
 

Constructor Detail

OWLValueRestrictionImpl

protected OWLValueRestrictionImpl(OWLDataFactory dataFactory,
                                  P property,
                                  V value)
Method Detail

getValue

public V getValue()
Description copied from interface: OWLHasValueRestriction
Gets the value which is the filler for this restriction. In the case of an object restriction this will be an individual, in the case of a data restriction this will be a constant (data value).

Specified by:
getValue in interface OWLHasValueRestriction<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,V extends OWLObject>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLRestrictionImpl<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,P extends OWLPropertyExpression<R,P>>

compareObjectOfSameType

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