net.ontopia.topicmaps.schema.impl.osl
Class AbstractCardinalityConstraint
java.lang.Object
net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
- All Implemented Interfaces:
- CardinalityConstraintIF, ConstraintIF
- Direct Known Subclasses:
- AbstractScopedCardinalityConstraint, AbstractTypedCardinalityConstraint
public abstract class AbstractCardinalityConstraint
- extends Object
- implements CardinalityConstraintIF
INTERNAL: Common base class for constraints which have cardinality
facets.
Method Summary |
int |
getMaximum()
INTERNAL: Returns the maximum number of objects that the constraint
may match. |
int |
getMinimum()
INTERNAL: Returns the minimum number of objects that the constraint
must match. |
void |
setMaximum(int maximum)
INTERNAL: Sets the maximum number of objects that the constraint
may match. |
void |
setMinimum(int minimum)
INTERNAL: Sets the minimum number of objects that the constraint
must match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
minimum
protected int minimum
maximum
protected int maximum
AbstractCardinalityConstraint
public AbstractCardinalityConstraint()
getMinimum
public int getMinimum()
- Description copied from interface:
CardinalityConstraintIF
- INTERNAL: Returns the minimum number of objects that the constraint
must match.
- Specified by:
getMinimum
in interface CardinalityConstraintIF
getMaximum
public int getMaximum()
- Description copied from interface:
CardinalityConstraintIF
- INTERNAL: Returns the maximum number of objects that the constraint
may match.
- Specified by:
getMaximum
in interface CardinalityConstraintIF
setMinimum
public void setMinimum(int minimum)
- Description copied from interface:
CardinalityConstraintIF
- INTERNAL: Sets the minimum number of objects that the constraint
must match.
- Specified by:
setMinimum
in interface CardinalityConstraintIF
setMaximum
public void setMaximum(int maximum)
- Description copied from interface:
CardinalityConstraintIF
- INTERNAL: Sets the maximum number of objects that the constraint
may match.
- Specified by:
setMaximum
in interface CardinalityConstraintIF
Copyright © 2000-2012 Ontopia.