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

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.AssociationClass
All Implemented Interfaces:
ConstraintIF, ScopedConstraintIF, TypedConstraintIF

public class AssociationClass
extends java.lang.Object
implements TypedConstraintIF, ConstraintIF, ScopedConstraintIF

INTERNAL: Represents an association class definition. Contains all the constraints the definition consists of.


Constructor Summary
AssociationClass(OSLSchema schema)
          INTERNAL: Creates an association class definition belonging to the schema.
 
Method Summary
 void addRoleConstraint(AssociationRoleConstraint constraint)
          INTERNAL: Adds a new role constraint.
 java.util.Collection getRoleConstraints()
          INTERNAL: Returns the collection of role constraints in this class definition.
 ScopeSpecification getScopeSpecification()
          INTERNAL: Returns the scope constraint.
 TypeSpecification getTypeSpecification()
          INTERNAL: Returns the type constraint.
 boolean matches(TMObjectIF object)
          PUBLIC: Returns true if the object given is constrained by this constraint.
 void removeRoleConstraint(AssociationRoleConstraint constraint)
          INTERNAL: Removes a role constraint from the class.
 void setScopeSpecification(ScopeSpecification scopespec)
          INTERNAL: Sets the scope constraint.
 void setTypeSpecification(TypeSpecification typespec)
          INTERNAL: Sets the type constraint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationClass

public AssociationClass(OSLSchema schema)
INTERNAL: Creates an association class definition belonging to the schema.

Method Detail

getScopeSpecification

public ScopeSpecification getScopeSpecification()
INTERNAL: Returns the scope constraint.

Specified by:
getScopeSpecification in interface ScopedConstraintIF

setScopeSpecification

public void setScopeSpecification(ScopeSpecification scopespec)
INTERNAL: Sets the scope constraint.

Specified by:
setScopeSpecification in interface ScopedConstraintIF

setTypeSpecification

public void setTypeSpecification(TypeSpecification typespec)
INTERNAL: Sets the type constraint.

Specified by:
setTypeSpecification in interface TypedConstraintIF

getTypeSpecification

public TypeSpecification getTypeSpecification()
INTERNAL: Returns the type constraint.

Specified by:
getTypeSpecification in interface TypedConstraintIF

addRoleConstraint

public void addRoleConstraint(AssociationRoleConstraint constraint)
INTERNAL: Adds a new role constraint. If the role constraint is already present the call is ignored.


getRoleConstraints

public java.util.Collection getRoleConstraints()
INTERNAL: Returns the collection of role constraints in this class definition.


removeRoleConstraint

public void removeRoleConstraint(AssociationRoleConstraint constraint)
INTERNAL: Removes a role constraint from the class. If the constraint is not already in the class the call is ignored.


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


Copyright © 2000-2010 Ontopia.