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

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.TopicNameConstraint
All Implemented Interfaces:
CardinalityConstraintIF, ConstraintIF, ScopedConstraintIF

public class TopicNameConstraint
extends AbstractScopedCardinalityConstraint

INTERNAL: Represents a constraint on a base name within a topic class definition.


Field Summary
protected  TopicConstraintCollection parent
           
protected  java.util.Collection variants
           
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
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
TopicNameConstraint(TopicConstraintCollection parent)
          INTERNAL: Creates a base name constraint.
 
Method Summary
 void addVariantConstraint(VariantConstraint variant)
          INTERNAL: Adds the variant constraint to this base name.
 java.util.Collection getVariantConstraints()
          INTERNAL: Returns the constraints on the variants of this base name.
 void removeVariantConstraint(VariantConstraint variant)
          INTERNAL: Removes the variant constraint from this base name.
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
getScopeSpecification, matches, setScopeSpecification
 
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

parent

protected TopicConstraintCollection parent

variants

protected java.util.Collection variants
Constructor Detail

TopicNameConstraint

public TopicNameConstraint(TopicConstraintCollection parent)
INTERNAL: Creates a base name constraint.

Method Detail

getVariantConstraints

public java.util.Collection getVariantConstraints()
INTERNAL: Returns the constraints on the variants of this base name.

Returns:
A collection of VariantConstraint objects.

removeVariantConstraint

public void removeVariantConstraint(VariantConstraint variant)
INTERNAL: Removes the variant constraint from this base name. If the variant constraint is not already registered with this base name constraint the call is ignored.


addVariantConstraint

public void addVariantConstraint(VariantConstraint variant)
INTERNAL: Adds the variant constraint to this base name. If the variant constraint is already registered with this base name constraint the call is ignored.



Copyright © 2000-2012 Ontopia.