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

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

public abstract class AbstractScopedTypedCardinalityConstraint
extends AbstractScopedCardinalityConstraint
implements TypedConstraintIF

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


Field Summary
 
Fields inherited from interface net.ontopia.topicmaps.schema.core.CardinalityConstraintIF
INFINITY
 
Constructor Summary
AbstractScopedTypedCardinalityConstraint()
           
 
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.AbstractScopedCardinalityConstraint
getScopeSpecification, setScopeSpecification
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
getMaximum, getMinimum, setMaximum, setMinimum
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScopedTypedCardinalityConstraint

public AbstractScopedTypedCardinalityConstraint()
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
Overrides:
matches in class AbstractScopedCardinalityConstraint


Copyright © 2000-2010 Ontopia.