com.sun.msv.generator
Class NoneTypeRemover

java.lang.Object
  extended bycom.sun.msv.grammar.ExpressionCloner
      extended bycom.sun.msv.generator.NoneTypeRemover
All Implemented Interfaces:
com.sun.msv.grammar.ExpressionVisitorExpression

public class NoneTypeRemover
extends com.sun.msv.grammar.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

Constructor Summary
NoneTypeRemover(com.sun.msv.grammar.ExpressionPool pool)
           
 
Method Summary
 com.sun.msv.grammar.Expression onAttribute(com.sun.msv.grammar.AttributeExp exp)
           
 com.sun.msv.grammar.Expression onData(com.sun.msv.grammar.DataExp exp)
           
 com.sun.msv.grammar.Expression onElement(com.sun.msv.grammar.ElementExp exp)
           
 com.sun.msv.grammar.Expression onOther(com.sun.msv.grammar.OtherExp exp)
           
 com.sun.msv.grammar.Expression onRef(com.sun.msv.grammar.ReferenceExp exp)
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneTypeRemover

public NoneTypeRemover(com.sun.msv.grammar.ExpressionPool pool)
Method Detail

onElement

public com.sun.msv.grammar.Expression onElement(com.sun.msv.grammar.ElementExp exp)

onAttribute

public com.sun.msv.grammar.Expression onAttribute(com.sun.msv.grammar.AttributeExp exp)

onData

public com.sun.msv.grammar.Expression onData(com.sun.msv.grammar.DataExp exp)

onRef

public com.sun.msv.grammar.Expression onRef(com.sun.msv.grammar.ReferenceExp exp)

onOther

public com.sun.msv.grammar.Expression onOther(com.sun.msv.grammar.OtherExp exp)