|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.schema.impl.ExpressionCloner
sk.uniba.euromath.document.schema.impl.loader.GrammarRulesModifier
public final class GrammarRulesModifier
Modifies given grammar, so it has following features:
Expression.getExpandedExp() method.OtherExp and ReferenceExp is
replaced by its child expressions. They are simply removed from grammar.
(<@EP>+|e).((EP+|e)
INTERLEAVE original_child),
where ALL is nameclass accepting everything but local
namespace.Const.EM_URI_SELECT namespace.
| Constructor Summary | |
|---|---|
GrammarRulesModifier(com.sun.msv.grammar.ExpressionPool oldPool,
com.sun.msv.grammar.ExpressionPool newPool,
NameClassTools ncTools,
boolean allowOtherNS)
Creates instance of the modifier. |
|
| Method Summary | |
|---|---|
protected com.sun.msv.grammar.Expression |
cloneAttribute(com.sun.msv.grammar.AttributeExp exp,
com.sun.msv.grammar.Expression clonedContent)
Returns clone of this attribute expression. |
protected com.sun.msv.grammar.Expression |
cloneElement(com.sun.msv.grammar.ElementExp exp)
Returns clone of this element expression. |
protected void |
setContentModel(com.sun.msv.grammar.ElementExp exp,
com.sun.msv.grammar.Expression contentModel)
Sets content model of given element expression. |
| Methods inherited from class sk.uniba.euromath.document.schema.impl.ExpressionCloner |
|---|
clone, getPool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrammarRulesModifier(com.sun.msv.grammar.ExpressionPool oldPool,
com.sun.msv.grammar.ExpressionPool newPool,
NameClassTools ncTools,
boolean allowOtherNS)
oldPool - current grammar rules are placed herenewPool - new grammar rules will be placed herencTools - instance of tools.allowOtherNS - if true then elements and attributes
from foreign namespace are insertable anywhere.| Method Detail |
|---|
protected com.sun.msv.grammar.Expression cloneAttribute(com.sun.msv.grammar.AttributeExp exp,
com.sun.msv.grammar.Expression clonedContent)
ExpressionCloner
cloneAttribute in class ExpressionClonerexp - attribute expression to clone.clonedContent - cloned content model.
protected com.sun.msv.grammar.Expression cloneElement(com.sun.msv.grammar.ElementExp exp)
ExpressionClonergetPool().createEpsilon().
cloneElement in class ExpressionClonerexp - Element expression to clone.
protected void setContentModel(com.sun.msv.grammar.ElementExp exp,
com.sun.msv.grammar.Expression contentModel)
ExpressionCloner
setContentModel in class ExpressionClonerexp - element expressioncontentModel - cloned content model, that must be set to given
element exp.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||