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

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.AbstractCardinalityConstraint
      extended by net.ontopia.topicmaps.schema.impl.osl.AbstractTypedCardinalityConstraint
          extended by net.ontopia.topicmaps.schema.impl.osl.AssociationRoleConstraint
All Implemented Interfaces:
CardinalityConstraintIF, ConstraintIF, TypedConstraintIF

public class AssociationRoleConstraint
extends AbstractTypedCardinalityConstraint

INTERNAL: Represents a constraint on the association roles of an association.


Field Summary
 
Fields inherited from interface net.ontopia.topicmaps.schema.core.CardinalityConstraintIF
INFINITY
 
Constructor Summary
AssociationRoleConstraint(AssociationClass parent)
          INTERNAL: Creates an association role constraint belonging to an association class.
 
Method Summary
 void addPlayerType(TypeSpecification typespec)
          INTERNAL: Add a new type to the allowed types of role players.
 java.util.Collection getPlayerTypes()
          INTERNAL: Returns the set of allowed types of topics playing this role.
 void removePlayerType(TypeSpecification typespec)
          INTERNAL: Removes an topic player type from the set of allowed player types.
 
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractTypedCardinalityConstraint
getTypeSpecification, matches, setTypeSpecification
 
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

AssociationRoleConstraint

public AssociationRoleConstraint(AssociationClass parent)
INTERNAL: Creates an association role constraint belonging to an association class.

Method Detail

getPlayerTypes

public java.util.Collection getPlayerTypes()
INTERNAL: Returns the set of allowed types of topics playing this role.

Returns:
A collection of TypeSpecification objects.

removePlayerType

public void removePlayerType(TypeSpecification typespec)
INTERNAL: Removes an topic player type from the set of allowed player types.


addPlayerType

public void addPlayerType(TypeSpecification typespec)
INTERNAL: Add a new type to the allowed types of role players.



Copyright © 2000-2010 Ontopia.