|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.validation.internal.databuilders.ElementSchematronCacheBuilder.RuleBindings
public static class ElementSchematronCacheBuilder.RuleBindings
A data structure that stores the schematron rule bindings
| Field Summary | |
|---|---|
protected java.util.Map |
data
The data structure associated with this builder KEY = taget namespace of the schema containing the schematron rule OR UNTARGETED
VALUE = An object of type Map that contains:
KEY = The document alias, the element name, or the element type
VALUE = The schematron node that should be applied to the element |
| Constructor Summary | |
|---|---|
ElementSchematronCacheBuilder.RuleBindings()
|
|
| Method Summary | |
|---|---|
void |
addGloballyBoundRule(Schematron schematronRule)
Adds a globally bound rule |
void |
bindRule(java.lang.String alias,
Schematron schematronRule)
Binds a rule with the document alias passed in |
void |
bindRule(java.lang.String uri,
java.lang.String localName,
Schematron schematronRule)
Binds a rule with a namespace and a localname |
java.util.List |
getBoundRules(java.lang.String alias)
Returns a rule that's been bound to an alias via the ruleBindings element |
java.util.List |
getBoundRules(java.lang.String uri,
java.lang.String localName)
Returns a rule that's been bound to an element name or a element type declaration. |
java.util.List |
getGloballyBoundRules()
Returns the list of the rules bound to all documents in the model. |
boolean |
isRuleBindingPresent()
Returns true if the SML-IF document being parsed contains a ruleBindings element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map data
UNTARGETED
VALUE = An object of type Map that contains:
KEY = The document alias, the element name, or the element type
VALUE = The schematron node that should be applied to the element
| Constructor Detail |
|---|
public ElementSchematronCacheBuilder.RuleBindings()
| Method Detail |
|---|
public void bindRule(java.lang.String alias,
Schematron schematronRule)
alias - The document aliasschematronRule - The schematron rule
public void bindRule(java.lang.String uri,
java.lang.String localName,
Schematron schematronRule)
uri - The namespacelocalName - The local nameschematronRule - The schematron rulepublic void addGloballyBoundRule(Schematron schematronRule)
schematronRule - The rulepublic java.util.List getBoundRules(java.lang.String alias)
alias - The alias
public java.util.List getBoundRules(java.lang.String uri,
java.lang.String localName)
uri - The URIlocalName - The local name
public java.util.List getGloballyBoundRules()
public boolean isRuleBindingPresent()
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||