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

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

public abstract class AbstractScopedCardinalityConstraint
extends AbstractCardinalityConstraint
implements ScopedConstraintIF

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


Field Summary
protected  ScopeSpecification scope
           
 
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
AbstractScopedCardinalityConstraint()
           
 
Method Summary
 ScopeSpecification getScopeSpecification()
          INTERNAL: Returns the object containing the scope specification.
 boolean matches(TMObjectIF object)
          PUBLIC: Returns true if the object given is constrained by this constraint.
 void setScopeSpecification(ScopeSpecification scope)
          INTERNAL: Sets the object containing the scope specification.
 
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

scope

protected ScopeSpecification scope
Constructor Detail

AbstractScopedCardinalityConstraint

public AbstractScopedCardinalityConstraint()
Method Detail

setScopeSpecification

public void setScopeSpecification(ScopeSpecification scope)
Description copied from interface: ScopedConstraintIF
INTERNAL: Sets the object containing the scope specification.

Specified by:
setScopeSpecification in interface ScopedConstraintIF

getScopeSpecification

public ScopeSpecification getScopeSpecification()
Description copied from interface: ScopedConstraintIF
INTERNAL: Returns the object containing the scope specification.

Specified by:
getScopeSpecification in interface ScopedConstraintIF

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.