Modifier and Type | Field and Description |
---|---|
protected LocatorIF |
address |
protected Collection |
assocClasses |
protected Map |
rulesets |
protected boolean |
strict |
protected Collection |
topicClasses |
protected Map |
topicsById |
protected SchemaValidatorIF |
validator |
Constructor and Description |
---|
OSLSchema(LocatorIF address)
PUBLIC: Creates a new OSL schema object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Collection |
getAssociationClasses()
INTERNAL: Returns all the association classes in this schema.
|
RuleSet |
getRuleSet(String id)
INTERNAL: Returns the rule set that has the given ID.
|
Collection |
getRuleSets()
INTERNAL: Returns all the rule sets in this schema.
|
TopicClass |
getTopicClass(String id)
INTERNAL: Returns the topic class that has the given ID.
|
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.
|
protected SchemaValidatorIF validator
protected Collection topicClasses
protected Collection assocClasses
protected boolean strict
protected Map rulesets
protected Map topicsById
protected LocatorIF address
public OSLSchema(LocatorIF address)
address
- The base address of the schema.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 Collection getRuleSets()
public Collection getTopicClasses()
public Collection getAssociationClasses()
public void removeRuleSet(RuleSet rule)
public void removeTopicClass(TopicClass topicClass)
public void removeAssociationClass(AssociationClass assocClass)
public TopicClass getTopicClass(String id)
public RuleSet getRuleSet(String id)
public boolean isStrict()
public void setIsStrict(boolean strict)