net.ontopia.topicmaps.schema.impl.osl
Class TopicRoleConstraint
java.lang.Object
net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.AbstractScopedCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.AbstractScopedTypedCardinalityConstraint
net.ontopia.topicmaps.schema.impl.osl.TopicRoleConstraint
- All Implemented Interfaces:
- CardinalityConstraintIF, ConstraintIF, ScopedConstraintIF, TypedConstraintIF
public class TopicRoleConstraint
- extends AbstractScopedTypedCardinalityConstraint
INTERNAL: Represents a constraint on the allowed association roles of
the instances of a topic class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected TopicConstraintCollection parent
assoctypes
protected java.util.Collection assoctypes
TopicRoleConstraint
public TopicRoleConstraint(TopicConstraintCollection parent)
- PUBLIC: Creates a new topic role constraint belonging to the given
collection.
getAssociationTypes
public java.util.Collection getAssociationTypes()
- PUBLIC: Returns the set of allowed types of associations in
which this instances of this role may participate.
- Returns:
- A collection of TypeSpecification objects.
removeAssociationType
public void removeAssociationType(TypeSpecification typespec)
- PUBLIC: Removes an allowed association type.
addAssociationType
public void addAssociationType(TypeSpecification typespec)
- PUBLIC: Adds an allowed association type.
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 AbstractScopedTypedCardinalityConstraint
Copyright © 2000-2012 Ontopia.