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. |
UNSET
public static final int UNSET
- A value that represents an unset cardinality.
- See Also:
- Constant Field Values
OWLObjectCardinalityRestrictionImpl
public OWLObjectCardinalityRestrictionImpl(OWLDataFactoryImpl factory,
OWLObjectProperty property,
int atLeast,
int atMost)
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