|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.ExpressionCloner
public abstract class ExpressionCloner
Clones an expression. Descending classes must implement the
cloneElement
and cloneAttribute
methods to
ensure correct cloning. All ReferenceExp
s and
OtherExp
s are replaced by their contents and thus not cloned
themselves.
Constructor Summary | |
---|---|
ExpressionCloner(com.sun.msv.grammar.ExpressionPool oldPool,
com.sun.msv.grammar.ExpressionPool newPool)
Constructs new instance of cloner. |
Method Summary | |
---|---|
com.sun.msv.grammar.Expression |
clone(com.sun.msv.grammar.Expression exp)
Clones the expression. |
protected abstract 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 abstract com.sun.msv.grammar.Expression |
cloneElement(com.sun.msv.grammar.ElementExp exp)
Returns clone of this element expression. |
protected com.sun.msv.grammar.ExpressionPool |
getPool()
Returns the pool, where new expressions are placed. |
protected abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionCloner(com.sun.msv.grammar.ExpressionPool oldPool, com.sun.msv.grammar.ExpressionPool newPool)
newPool
- the expression pool, where cloned expressions are to be
placed.oldPool
- expression pool, to which the expressions to clone should
belong.Method Detail |
---|
protected final com.sun.msv.grammar.ExpressionPool getPool()
public final com.sun.msv.grammar.Expression clone(com.sun.msv.grammar.Expression exp)
exp
- expression to be cloned.
protected abstract com.sun.msv.grammar.Expression cloneElement(com.sun.msv.grammar.ElementExp exp)
getPool().createEpsilon()
.
exp
- Element expression to clone.
protected abstract com.sun.msv.grammar.Expression cloneAttribute(com.sun.msv.grammar.AttributeExp exp, com.sun.msv.grammar.Expression clonedContent)
exp
- attribute expression to clone.clonedContent
- cloned content model.
protected abstract void setContentModel(com.sun.msv.grammar.ElementExp exp, com.sun.msv.grammar.Expression contentModel)
exp
- 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 |