uk.ac.manchester.cs.owl.owlapi
Class OWLCardinalityRestrictionImpl<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,F extends OWLPropertyRange>

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,F>
                  extended by uk.ac.manchester.cs.owl.owlapi.OWLCardinalityRestrictionImpl<R,P,F>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnonymousClassExpression, OWLCardinalityRestriction<R,P,F>, OWLClassExpression, OWLObject, OWLPropertyRange, OWLQuantifiedRestriction<R,P,F>, OWLRestriction<R,P,F>, SWRLPredicate
Direct Known Subclasses:
OWLDataCardinalityRestrictionImpl, OWLObjectCardinalityRestrictionImpl

public abstract class OWLCardinalityRestrictionImpl<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,F extends OWLPropertyRange>
extends OWLRestrictionImpl<R,P,F>
implements OWLCardinalityRestriction<R,P,F>

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


Constructor Summary
protected OWLCardinalityRestrictionImpl(OWLDataFactory dataFactory, P property, int cardinality, F filler)
           
 
Method Summary
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 int getCardinality()
          Gets the cardinality of this restriction
 F getFiller()
           
 
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.OWLCardinalityRestriction
isQualified
 
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

OWLCardinalityRestrictionImpl

protected OWLCardinalityRestrictionImpl(OWLDataFactory dataFactory,
                                        P property,
                                        int cardinality,
                                        F filler)
Method Detail

getCardinality

public int getCardinality()
Description copied from interface: OWLCardinalityRestriction
Gets the cardinality of this restriction

Specified by:
getCardinality in interface OWLCardinalityRestriction<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,F extends OWLPropertyRange>
Returns:
The cardinality of this restriction

getFiller

public F getFiller()
Specified by:
getFiller in interface OWLQuantifiedRestriction<R extends OWLPropertyRange,P extends OWLPropertyExpression<R,P>,F extends OWLPropertyRange>

equals

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

compareObjectOfSameType

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