com.sun.msv.generator

Class Generator

public class Generator extends Object implements ExpressionVisitorVoid

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

Author: Kohsuke KAWAGUCHI

Method Summary
static voidgenerate(Expression exp, Document emptyDoc)
generates instance by using default settings.
static voidgenerate(Expression exp, Document emptyDoc, GeneratorOption opts)
generates instance by custom settings.
voidonAnyString()
voidonAttribute(AttributeExp exp)
voidonChoice(ChoiceExp cp)
voidonConcur(ConcurExp exp)
voidonData(DataExp exp)
voidonElement(ElementExp exp)
voidonEpsilon()
voidonInterleave(InterleaveExp ip)
voidonList(ListExp exp)
voidonMixed(MixedExp exp)
voidonNullSet()
voidonOneOrMore(OneOrMoreExp exp)
voidonOther(OtherExp exp)
voidonRef(ReferenceExp exp)
voidonSequence(SequenceExp exp)
voidonValue(ValueExp exp)
voidonZeroOrMore(OneOrMoreExp exp)

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.

onAnyString

public void onAnyString()

onAttribute

public void onAttribute(AttributeExp exp)

onChoice

public void onChoice(ChoiceExp cp)

onConcur

public void onConcur(ConcurExp exp)

onData

public void onData(DataExp exp)

onElement

public void onElement(ElementExp exp)

onEpsilon

public void onEpsilon()

onInterleave

public void onInterleave(InterleaveExp ip)

onList

public void onList(ListExp exp)

onMixed

public void onMixed(MixedExp exp)

onNullSet

public void onNullSet()

onOneOrMore

public void onOneOrMore(OneOrMoreExp exp)

onOther

public void onOther(OtherExp exp)

onRef

public void onRef(ReferenceExp exp)

onSequence

public void onSequence(SequenceExp exp)

onValue

public void onValue(ValueExp exp)

onZeroOrMore

public void onZeroOrMore(OneOrMoreExp exp)