|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.schema.impl.osl.AssociationClass
public class AssociationClass
INTERNAL: Represents an association class definition. Contains all the constraints the definition consists of.
Field Summary | |
---|---|
protected java.util.Collection |
roles
|
protected OSLSchema |
schema
|
protected ScopeSpecification |
scopespec
|
protected TypeSpecification |
typespec
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OSLSchema schema
protected java.util.Collection roles
protected TypeSpecification typespec
protected ScopeSpecification scopespec
Constructor Detail |
---|
public AssociationClass(OSLSchema schema)
Method Detail |
---|
public ScopeSpecification getScopeSpecification()
getScopeSpecification
in interface ScopedConstraintIF
public void setScopeSpecification(ScopeSpecification scopespec)
setScopeSpecification
in interface ScopedConstraintIF
public void setTypeSpecification(TypeSpecification typespec)
setTypeSpecification
in interface TypedConstraintIF
public TypeSpecification getTypeSpecification()
getTypeSpecification
in interface TypedConstraintIF
public void addRoleConstraint(AssociationRoleConstraint constraint)
public java.util.Collection getRoleConstraints()
public void removeRoleConstraint(AssociationRoleConstraint constraint)
public boolean matches(TMObjectIF object)
ConstraintIF
matches
in interface ConstraintIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |