com.sun.msv.generator
Class NoneTypeRemover

java.lang.Object
  extended by com.sun.msv.grammar.ExpressionCloner
      extended by 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

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

Constructor Detail

NoneTypeRemover

public NoneTypeRemover(ExpressionPool pool)
Method Detail

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