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

java.lang.Object
  extended by net.ontopia.topicmaps.schema.impl.osl.TopicConstraintCollection
Direct Known Subclasses:
RuleSet, TopicClass

public abstract class TopicConstraintCollection
extends java.lang.Object

INTERNAL: Abstract superclass for objects that contain topic constraints.


Field Summary
protected  java.util.Collection basenames
           
protected  java.lang.String id
           
protected  java.util.Collection occurrences
           
protected  java.util.Collection roles
           
protected  OSLSchema schema
           
protected  java.util.Collection subrules
           
 
Constructor Summary
TopicConstraintCollection(OSLSchema schema, java.lang.String id)
          INTERNAL: Creates a new collection of topic constraints.
 
Method Summary
 void addOccurrenceConstraint(OccurrenceConstraint constraint)
          INTERNAL: Adds a new occurrence constraint to the collection.
 void addRoleConstraint(TopicRoleConstraint constraint)
          INTERNAL: Adds a new role constraint to the collection.
 void addSubRule(TopicConstraintCollection subrule)
          INTERNAL: Adds a new sub collection to the collection.
 void addTopicNameConstraint(TopicNameConstraint constraint)
          INTERNAL: Adds a new base name constraint to the collection.
 java.util.Collection getAllOccurrenceConstraints()
          INTERNAL: Returns the complete set of occurrence constraints in this collection, including those of sub collections.
 java.util.Collection getAllRoleConstraints()
          INTERNAL: Returns the complete set of role constraints in this collection, including those of sub collections.
 java.util.Collection getAllTopicNameConstraints()
          INTERNAL: Returns the complete set of base name constraints in this collection, including those of sub collections.
 java.lang.String getId()
          INTERNAL: Returns the ID of the collection.
 java.util.Collection getOccurrenceConstraints()
          INTERNAL: Returns the set of occurrence constraints in this collection.
 java.util.Collection getRoleConstraints()
          INTERNAL: Returns the set of role constraints in this collection.
 java.util.Collection getSubRules()
          INTERNAL: Returns the set of sub collections of this collection.
 java.util.Collection getTopicNameConstraints()
          INTERNAL: Returns the set of base name constraints in this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

protected OSLSchema schema

basenames

protected java.util.Collection basenames

occurrences

protected java.util.Collection occurrences

roles

protected java.util.Collection roles

subrules

protected java.util.Collection subrules

id

protected java.lang.String id
Constructor Detail

TopicConstraintCollection

public TopicConstraintCollection(OSLSchema schema,
                                 java.lang.String id)
INTERNAL: Creates a new collection of topic constraints.

Parameters:
schema - The parent schema.
id - The ID of the collection. May be null.
Method Detail

getId

public java.lang.String getId()
INTERNAL: Returns the ID of the collection. May be null.


addTopicNameConstraint

public void addTopicNameConstraint(TopicNameConstraint constraint)
INTERNAL: Adds a new base name constraint to the collection.


addOccurrenceConstraint

public void addOccurrenceConstraint(OccurrenceConstraint constraint)
INTERNAL: Adds a new occurrence constraint to the collection.


addRoleConstraint

public void addRoleConstraint(TopicRoleConstraint constraint)
INTERNAL: Adds a new role constraint to the collection.


addSubRule

public void addSubRule(TopicConstraintCollection subrule)
INTERNAL: Adds a new sub collection to the collection. The constraints contained in the sub collection are not added to this collection, but included by reference.


getSubRules

public java.util.Collection getSubRules()
INTERNAL: Returns the set of sub collections of this collection.

Returns:
A collection of TopicConstraintCollection objects.

getTopicNameConstraints

public java.util.Collection getTopicNameConstraints()
INTERNAL: Returns the set of base name constraints in this collection.

Returns:
A collection of TopicNameConstraint objects.

getOccurrenceConstraints

public java.util.Collection getOccurrenceConstraints()
INTERNAL: Returns the set of occurrence constraints in this collection.

Returns:
A collection of OccurrenceConstraint objects.

getRoleConstraints

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

Returns:
A collection of RoleConstraint objects.

getAllTopicNameConstraints

public java.util.Collection getAllTopicNameConstraints()
INTERNAL: Returns the complete set of base name constraints in this collection, including those of sub collections.

Returns:
A collection of TopicNameConstraint objects.

getAllOccurrenceConstraints

public java.util.Collection getAllOccurrenceConstraints()
INTERNAL: Returns the complete set of occurrence constraints in this collection, including those of sub collections.

Returns:
A collection of OccurrenceConstraint objects.

getAllRoleConstraints

public java.util.Collection getAllRoleConstraints()
INTERNAL: Returns the complete set of role constraints in this collection, including those of sub collections.

Returns:
A collection of TopicRoleConstraint objects.


Copyright © 2000-2012 Ontopia.