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

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

public abstract class AbstractTypedCardinalityConstraint
extends AbstractCardinalityConstraint
implements TypedConstraintIF

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


Field Summary
protected  TypeSpecification typespec
           
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
maximum, minimum
 
Fields inherited from interface net.ontopia.topicmaps.schema.core.CardinalityConstraintIF
INFINITY
 
Constructor Summary
AbstractTypedCardinalityConstraint()
           
 
Method Summary
 TypeSpecification getTypeSpecification()
          INTERNAL: Returns the object specifying the allowed types.
 boolean matches(TMObjectIF object)
          PUBLIC: Returns true if the object given is constrained by this constraint.
 void setTypeSpecification(TypeSpecification typespec)
          INTERNAL: Sets the object specifying the allowed types.
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
getMaximum, getMinimum, setMaximum, setMinimum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typespec

protected TypeSpecification typespec
Constructor Detail

AbstractTypedCardinalityConstraint

public AbstractTypedCardinalityConstraint()
Method Detail

setTypeSpecification

public void setTypeSpecification(TypeSpecification typespec)
Description copied from interface: TypedConstraintIF
INTERNAL: Sets the object specifying the allowed types.

Specified by:
setTypeSpecification in interface TypedConstraintIF

getTypeSpecification

public TypeSpecification getTypeSpecification()
Description copied from interface: TypedConstraintIF
INTERNAL: Returns the object specifying the allowed types.

Specified by:
getTypeSpecification in interface TypedConstraintIF

matches

public boolean matches(TMObjectIF object)
Description copied from interface: ConstraintIF
PUBLIC: Returns true if the object given is constrained by this constraint.

Specified by:
matches in interface ConstraintIF


Copyright © 2000-2012 Ontopia.