net.ontopia.topicmaps.schema.impl.osl
Class AbstractCardinalityConstraint

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
All Implemented Interfaces:
CardinalityConstraintIF, ConstraintIF
Direct Known Subclasses:
AbstractScopedCardinalityConstraint, AbstractTypedCardinalityConstraint

public abstract class AbstractCardinalityConstraint
extends java.lang.Object
implements CardinalityConstraintIF

INTERNAL: Common base class for constraints which have cardinality facets.


Field Summary
protected  int maximum
           
protected  int minimum
           
 
Fields inherited from interface net.ontopia.topicmaps.schema.core.CardinalityConstraintIF
INFINITY
 
Constructor Summary
AbstractCardinalityConstraint()
           
 
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
 
Methods inherited from interface net.ontopia.topicmaps.schema.core.ConstraintIF
matches
 

Field Detail

minimum

protected int minimum

maximum

protected int maximum
Constructor Detail

AbstractCardinalityConstraint

public AbstractCardinalityConstraint()
Method Detail

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.