public abstract class TopicConstraintCollection extends Object
Modifier and Type | Field and Description |
---|---|
protected Collection |
basenames |
protected String |
id |
protected Collection |
occurrences |
protected Collection |
roles |
protected OSLSchema |
schema |
protected Collection |
subrules |
Constructor and Description |
---|
TopicConstraintCollection(OSLSchema schema,
String id)
INTERNAL: Creates a new collection of topic constraints.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Collection |
getAllOccurrenceConstraints()
INTERNAL: Returns the complete set of occurrence constraints in this
collection, including those of sub collections.
|
Collection |
getAllRoleConstraints()
INTERNAL: Returns the complete set of role constraints in this
collection, including those of sub collections.
|
Collection |
getAllTopicNameConstraints()
INTERNAL: Returns the complete set of base name constraints in this
collection, including those of sub collections.
|
String |
getId()
INTERNAL: Returns the ID of the collection.
|
Collection |
getOccurrenceConstraints()
INTERNAL: Returns the set of occurrence constraints in this collection.
|
Collection |
getRoleConstraints()
INTERNAL: Returns the set of role constraints in this collection.
|
Collection |
getSubRules()
INTERNAL: Returns the set of sub collections of this collection.
|
Collection |
getTopicNameConstraints()
INTERNAL: Returns the set of base name constraints in this collection.
|
protected OSLSchema schema
protected Collection basenames
protected Collection occurrences
protected Collection roles
protected Collection subrules
protected String id
public String getId()
public void addTopicNameConstraint(TopicNameConstraint constraint)
public void addOccurrenceConstraint(OccurrenceConstraint constraint)
public void addRoleConstraint(TopicRoleConstraint constraint)
public void addSubRule(TopicConstraintCollection subrule)
public Collection getSubRules()
public Collection getTopicNameConstraints()
public Collection getOccurrenceConstraints()
public Collection getRoleConstraints()
public Collection getAllTopicNameConstraints()
public Collection getAllOccurrenceConstraints()
public Collection getAllRoleConstraints()