com.sun.msv.generator
Class Generator

java.lang.Object
  extended bycom.sun.msv.generator.Generator

public class Generator
extends Object

generates an XML DOM instance that conforms to the given schema.

Author:
Kohsuke KAWAGUCHI

Method Summary
static void generate(Expression exp, Document emptyDoc)
          generates instance by using default settings.
static void generate(Expression exp, Document emptyDoc, GeneratorOption opts)
          generates instance by custom settings.
 void onAnyString()
           
 void onAttribute(AttributeExp exp)
           
 void onChoice(ChoiceExp cp)
           
 void onConcur(ConcurExp exp)
           
 void onData(DataExp exp)
           
 void onElement(ElementExp exp)
           
 void onEpsilon()
           
 void onInterleave(InterleaveExp ip)
           
 void onList(ListExp exp)
           
 void onMixed(MixedExp exp)
           
 void onNullSet()
           
 void onOneOrMore(OneOrMoreExp exp)
           
 void onOther(OtherExp exp)
           
 void onRef(ReferenceExp exp)
           
 void onSequence(SequenceExp exp)
           
 void onValue(ValueExp exp)
           
 void onZeroOrMore(OneOrMoreExp exp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public static void generate(Expression exp,
                            Document emptyDoc)
generates instance by using default settings.


generate

public static void generate(Expression exp,
                            Document emptyDoc,
                            GeneratorOption opts)
generates instance by custom settings.


onEpsilon

public void onEpsilon()

onNullSet

public void onNullSet()

onSequence

public void onSequence(SequenceExp exp)

onInterleave

public void onInterleave(InterleaveExp ip)

onChoice

public void onChoice(ChoiceExp cp)

onMixed

public void onMixed(MixedExp exp)

onList

public void onList(ListExp exp)

onRef

public void onRef(ReferenceExp exp)

onOther

public void onOther(OtherExp exp)

onAttribute

public void onAttribute(AttributeExp exp)

onElement

public void onElement(ElementExp exp)

onAnyString

public void onAnyString()

onOneOrMore

public void onOneOrMore(OneOrMoreExp exp)

onZeroOrMore

public void onZeroOrMore(OneOrMoreExp exp)

onValue

public void onValue(ValueExp exp)

onData

public void onData(DataExp exp)

onConcur

public void onConcur(ConcurExp exp)