|
||||||||||
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.TopicConstraintCollection net.ontopia.topicmaps.schema.impl.osl.TopicClass
public class TopicClass
INTERNAL: Represents a topic class definition.
Field Summary | |
---|---|
protected java.util.Collection |
otherClasses
|
protected boolean |
strict
|
protected java.util.Collection |
subclasses
|
protected TopicClass |
superclass
|
protected TypeSpecification |
typespec
|
Fields inherited from class net.ontopia.topicmaps.schema.impl.osl.TopicConstraintCollection |
---|
basenames, id, occurrences, roles, schema, subrules |
Constructor Summary | |
---|---|
TopicClass(OSLSchema schema,
java.lang.String id)
INTERNAL: Creates a topic class belonging to the given schema. |
Method Summary | |
---|---|
void |
addOtherClass(TypeSpecification typespec)
INTERNAL: Add a specification of a class to which instances of this class may belong. |
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.util.Collection |
getOtherClasses()
INTERNAL: Returns the collection of other classes to which instances of this class may belong. |
java.util.Collection |
getSubclasses()
INTERNAL: Returns the (possibly empty) collection of subclasses of this class. |
TopicClass |
getSuperclass()
INTERNAL: Returns the superclass of this class. |
TypeSpecification |
getTypeSpecification()
INTERNAL: Returns the specification of the topic typing the class defined by this object. |
boolean |
isStrict()
INTERNAL: True if strict matching is used; false otherwise. |
boolean |
matches(TMObjectIF object)
PUBLIC: Returns true if the object given is constrained by this constraint. |
void |
removeOtherClass(TypeSpecification typespec)
INTERNAL: Remove the specification of a class to which instances of this class may no longer belong. |
void |
setIsStrict(boolean strict)
INTERNAL: Sets whether the class uses strict matching or not. |
void |
setSuperclass(TopicClass superclass)
INTERNAL: Sets the superclass of this class. |
void |
setTypeSpecification(TypeSpecification typespec)
INTERNAL: Sets the specification of the topic typing the class defined by this object. |
java.lang.String |
toString()
|
Methods inherited from class net.ontopia.topicmaps.schema.impl.osl.TopicConstraintCollection |
---|
addOccurrenceConstraint, addRoleConstraint, addSubRule, addTopicNameConstraint, getId, getOccurrenceConstraints, getRoleConstraints, getSubRules, getTopicNameConstraints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean strict
protected java.util.Collection otherClasses
protected TypeSpecification typespec
protected TopicClass superclass
protected java.util.Collection subclasses
Constructor Detail |
---|
public TopicClass(OSLSchema schema, java.lang.String id)
id
- The id of the topic class. May be null.Method Detail |
---|
public boolean isStrict()
public void setIsStrict(boolean strict)
public TypeSpecification getTypeSpecification()
getTypeSpecification
in interface TypedConstraintIF
public void setTypeSpecification(TypeSpecification typespec)
setTypeSpecification
in interface TypedConstraintIF
public void addOtherClass(TypeSpecification typespec)
public void removeOtherClass(TypeSpecification typespec)
public java.util.Collection getOtherClasses()
public TopicClass getSuperclass()
public void setSuperclass(TopicClass superclass)
superclass
- The superclass of this class. May be null.public java.util.Collection getSubclasses()
public java.util.Collection getAllTopicNameConstraints()
TopicConstraintCollection
getAllTopicNameConstraints
in class TopicConstraintCollection
public java.util.Collection getAllOccurrenceConstraints()
TopicConstraintCollection
getAllOccurrenceConstraints
in class TopicConstraintCollection
public java.util.Collection getAllRoleConstraints()
TopicConstraintCollection
getAllRoleConstraints
in class TopicConstraintCollection
public boolean matches(TMObjectIF object)
ConstraintIF
matches
in interface ConstraintIF
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |