|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.msv.grammar.Expression
com.sun.msv.grammar.ElementExp
public abstract class ElementExp
Element declaration. For RELAX, this is a base implementation of 'elementRule' declaration. For TREX, this is a base implementation of 'element' pattern. Each grammar must/can provide only one concrete implementation. Therefore, they cannot override visit method.
This class can be extended.
| Field Summary | |
|---|---|
Expression |
contentModel
content model of this element declaration. |
boolean |
ignoreUndeclaredAttributes
a flag that indicates undeclared attributes should be ignored. |
| Fields inherited from class com.sun.msv.grammar.Expression |
|---|
anyString, epsilon, nullSet, verifierTag |
| Constructor Summary | |
|---|---|
ElementExp(Expression contentModel,
boolean ignoreUndeclaredAttributes)
|
|
| Method Summary | |
|---|---|
protected boolean |
calcEpsilonReducibility()
computes epsilon reducibility |
protected int |
calcHashCode()
Computes the hashCode again. |
boolean |
equals(Object o)
|
Expression |
getContentModel()
|
abstract NameClass |
getNameClass()
obtains a constraint over tag name. |
Object |
visit(ExpressionVisitor visitor)
|
boolean |
visit(ExpressionVisitorBoolean visitor)
|
Expression |
visit(ExpressionVisitorExpression visitor)
|
void |
visit(ExpressionVisitorVoid visitor)
|
| Methods inherited from class com.sun.msv.grammar.Expression |
|---|
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Expression contentModel
public boolean ignoreUndeclaredAttributes
| Constructor Detail |
|---|
public ElementExp(Expression contentModel,
boolean ignoreUndeclaredAttributes)
| Method Detail |
|---|
public final Expression getContentModel()
getContentModel in interface NameClassAndExpressionpublic abstract NameClass getNameClass()
getNameClass in interface NameClassAndExpressionprotected final int calcHashCode()
ExpressionThis method and the parameter to the constructor has to be the same. This method is used when the object is being read from the stream.
calcHashCode in class Expressionpublic final boolean equals(Object o)
equals in class Expressionpublic final Object visit(ExpressionVisitor visitor)
visit in class Expressionpublic final Expression visit(ExpressionVisitorExpression visitor)
visit in class Expressionpublic final boolean visit(ExpressionVisitorBoolean visitor)
visit in class Expressionpublic final void visit(ExpressionVisitorVoid visitor)
visit in class Expressionprotected final boolean calcEpsilonReducibility()
Expression
calcEpsilonReducibility in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||