|
||||||||||
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.OSLSchema
public class OSLSchema
PUBLIC: Represents an entire OSL schema.
Field Summary | |
---|---|
protected LocatorIF |
address
|
protected java.util.Collection |
assocClasses
|
protected java.util.Map |
rulesets
|
protected boolean |
strict
|
protected java.util.Collection |
topicClasses
|
protected java.util.Map |
topicsById
|
protected SchemaValidatorIF |
validator
|
Constructor Summary | |
---|---|
OSLSchema(LocatorIF address)
PUBLIC: Creates a new OSL schema object. |
Method Summary | |
---|---|
void |
addAssociationClass(AssociationClass assocClass)
INTERNAL: Adds an AssociationClass object to the schema. |
void |
addRuleSet(RuleSet rule)
INTERNAL: Adds a RuleSet object to the schema. |
void |
addTopicClass(TopicClass topicClass)
INTERNAL: Adds a TopicClass object to the schema. |
LocatorIF |
getAddress()
PUBLIC: Returns the address of the schema. |
java.util.Collection |
getAssociationClasses()
INTERNAL: Returns all the association classes in this schema. |
RuleSet |
getRuleSet(java.lang.String id)
INTERNAL: Returns the rule set that has the given ID. |
java.util.Collection |
getRuleSets()
INTERNAL: Returns all the rule sets in this schema. |
TopicClass |
getTopicClass(java.lang.String id)
INTERNAL: Returns the topic class that has the given ID. |
java.util.Collection |
getTopicClasses()
INTERNAL: Returns all the topic classes in this schema. |
SchemaValidatorIF |
getValidator()
PUBLIC: Returns a validator object that can be used to validate topic map objects against the schema. |
boolean |
isStrict()
INTERNAL: True if the schema uses strict matching, false otherwise. |
void |
removeAssociationClass(AssociationClass assocClass)
INTERNAL: Removes the association class from this schema. |
void |
removeRuleSet(RuleSet rule)
INTERNAL: Removes the rule set from this schema. |
void |
removeTopicClass(TopicClass topicClass)
INTERNAL: Removes the topic class from this schema. |
void |
setIsStrict(boolean strict)
INTERNAL: Sets the matching policy of the schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SchemaValidatorIF validator
protected java.util.Collection topicClasses
protected java.util.Collection assocClasses
protected boolean strict
protected java.util.Map rulesets
protected java.util.Map topicsById
protected LocatorIF address
Constructor Detail |
---|
public OSLSchema(LocatorIF address)
address
- The base address of the schema.Method Detail |
---|
public SchemaValidatorIF getValidator()
SchemaIF
getValidator
in interface SchemaIF
public LocatorIF getAddress()
SchemaIF
getAddress
in interface SchemaIF
public void addRuleSet(RuleSet rule)
public void addTopicClass(TopicClass topicClass)
public void addAssociationClass(AssociationClass assocClass)
public java.util.Collection getRuleSets()
public java.util.Collection getTopicClasses()
public java.util.Collection getAssociationClasses()
public void removeRuleSet(RuleSet rule)
public void removeTopicClass(TopicClass topicClass)
public void removeAssociationClass(AssociationClass assocClass)
public TopicClass getTopicClass(java.lang.String id)
public RuleSet getRuleSet(java.lang.String id)
public boolean isStrict()
public void setIsStrict(boolean strict)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |