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
protected  AssociationClass parent
           
protected  java.util.Collection players
           
 
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.AbstractTypedCardinalityConstraint
typespec
 
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected AssociationClass parent

players

protected java.util.Collection players
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-2012 Ontopia.