org.semanticweb.owl.impl.model
Class OWLObjectCardinalityRestrictionImpl

java.lang.Object
  |
  +--org.semanticweb.owl.impl.model.OWLObjectImpl
        |
        +--org.semanticweb.owl.impl.model.OWLObjectRestrictionImpl
              |
              +--org.semanticweb.owl.impl.model.OWLObjectCardinalityRestrictionImpl
All Implemented Interfaces:
Cloneable, OWLCardinalityRestriction, OWLDescription, OWLObject, OWLObjectCardinalityRestriction, OWLObjectRestriction, OWLRestriction, Serializable

public class OWLObjectCardinalityRestrictionImpl
extends OWLObjectRestrictionImpl
implements OWLObjectCardinalityRestriction

A CardinalityRestriction that applies to an OWLObjectProperty.

Version:
$Id: OWLObjectCardinalityRestrictionImpl.java,v 1.2 2004/01/26 07:24:01 digitalis Exp $
See Also:
Serialized Form

Field Summary
static int UNSET
          A value that represents an unset cardinality.
 
Constructor Summary
OWLObjectCardinalityRestrictionImpl(OWLDataFactoryImpl factory, OWLObjectProperty property, int atLeast, int atMost)
           
 
Method Summary
 void accept(OWLDescriptionVisitor visitor)
          Accept a visit from a visitor
 void accept(OWLObjectVisitor visitor)
          Accept a visit from a visitor
 int getAtLeast()
           
 int getAtMost()
           
 boolean isAtLeast()
          Is this an atleast cardinality restriction?
 boolean isAtMost()
          Is this an atmost cardinality restriction?
 boolean isExactly()
          Is this an exact cardinality restriction, i.e. does atleast == atmost?
 
Methods inherited from class org.semanticweb.owl.impl.model.OWLObjectRestrictionImpl
getObjectProperty, getProperty
 
Methods inherited from class org.semanticweb.owl.impl.model.OWLObjectImpl
clone, getAnnotations, getAnnotations, getContainedObjects, getMetadata, getOWLConnection, getOWLDataFactory
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owl.model.OWLObjectRestriction
getObjectProperty
 
Methods inherited from interface org.semanticweb.owl.model.OWLRestriction
getProperty
 
Methods inherited from interface org.semanticweb.owl.model.OWLObject
clone, getAnnotations, getAnnotations, getContainedObjects, getMetadata, getOWLConnection, getOWLDataFactory
 

Field Detail

UNSET

public static final int UNSET
A value that represents an unset cardinality.

See Also:
Constant Field Values
Constructor Detail

OWLObjectCardinalityRestrictionImpl

public OWLObjectCardinalityRestrictionImpl(OWLDataFactoryImpl factory,
                                           OWLObjectProperty property,
                                           int atLeast,
                                           int atMost)
Method Detail

getAtLeast

public int getAtLeast()
               throws OWLException
Specified by:
getAtLeast in interface OWLCardinalityRestriction
OWLException

getAtMost

public int getAtMost()
              throws OWLException
Specified by:
getAtMost in interface OWLCardinalityRestriction
OWLException

isAtMost

public boolean isAtMost()
Is this an atmost cardinality restriction?

Specified by:
isAtMost in interface OWLCardinalityRestriction

isAtLeast

public boolean isAtLeast()
Is this an atleast cardinality restriction?

Specified by:
isAtLeast in interface OWLCardinalityRestriction

isExactly

public boolean isExactly()
Description copied from interface: OWLCardinalityRestriction
Is this an exact cardinality restriction, i.e. does atleast == atmost?

Specified by:
isExactly in interface OWLCardinalityRestriction

accept

public void accept(OWLObjectVisitor visitor)
            throws OWLException
Description copied from interface: OWLObject
Accept a visit from a visitor

Specified by:
accept in interface OWLObject
Specified by:
accept in class OWLObjectImpl
OWLException

accept

public void accept(OWLDescriptionVisitor visitor)
            throws OWLException
Description copied from interface: OWLDescription
Accept a visit from a visitor

Specified by:
accept in interface OWLDescription
OWLException


WonderWeb