com.sun.msv.generator
Class NoneTypeRemover
java.lang.Object
com.sun.msv.grammar.ExpressionCloner
com.sun.msv.generator.NoneTypeRemover
- All Implemented Interfaces:
- ExpressionVisitorExpression
public class NoneTypeRemover
- extends ExpressionCloner
removes "none" type of RELAX from AGM.
"none" type is harmful for instance generation. This visitor changes
"none" type to nullSet.
- Author:
- Kohsuke KAWAGUCHI
Methods inherited from class com.sun.msv.grammar.ExpressionCloner |
onAnyString, onChoice, onConcur, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onSequence, onValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoneTypeRemover
public NoneTypeRemover(ExpressionPool pool)
onElement
public Expression onElement(ElementExp exp)
onAttribute
public Expression onAttribute(AttributeExp exp)
onData
public Expression onData(DataExp exp)
- Specified by:
onData
in interface ExpressionVisitorExpression
- Overrides:
onData
in class ExpressionCloner
onRef
public Expression onRef(ReferenceExp exp)
onOther
public Expression onOther(OtherExp exp)
MSV