com.sun.msv.generator

Class Generator

Implemented Interfaces:
ExpressionVisitorVoid

public class Generator
extends Object
implements ExpressionVisitorVoid

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)

Method Details

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)