net.ontopia.topicmaps.schema.core
Interface CardinalityConstraintIF

All Superinterfaces:
ConstraintIF
All Known Implementing Classes:
AbstractCardinalityConstraint, AbstractScopedCardinalityConstraint, AbstractScopedTypedCardinalityConstraint, AbstractTypedCardinalityConstraint, AssociationRoleConstraint, OccurrenceConstraint, TopicNameConstraint, TopicRoleConstraint, VariantConstraint

public interface CardinalityConstraintIF
extends ConstraintIF

INTERNAL: Represents constraints that may only match a specified number of objects.


Field Summary
static int INFINITY
           
 
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 interface net.ontopia.topicmaps.schema.core.ConstraintIF
matches
 

Field Detail

INFINITY

static final int INFINITY
See Also:
Constant Field Values
Method Detail

getMinimum

int getMinimum()
INTERNAL: Returns the minimum number of objects that the constraint must match.


getMaximum

int getMaximum()
INTERNAL: Returns the maximum number of objects that the constraint may match.


setMinimum

void setMinimum(int minimum)
INTERNAL: Sets the minimum number of objects that the constraint must match.


setMaximum

void setMaximum(int maximum)
INTERNAL: Sets the maximum number of objects that the constraint may match.



Copyright © 2000-2012 Ontopia.