net.ontopia.topicmaps.schema.impl.osl
Class TopicNameConstraint
java.lang.Object
net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected TopicConstraintCollection parent
variants
protected java.util.Collection variants
TopicNameConstraint
public TopicNameConstraint(TopicConstraintCollection parent)
- INTERNAL: Creates a base name constraint.
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.