|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.generator.Generator
public class Generator
generates an XML DOM instance that conforms to the given schema.
Constructor Summary | |
---|---|
protected |
Generator(Expression exp,
Document emptyDoc,
GeneratorOption opts)
|
Method Summary | |
---|---|
protected boolean |
cutBack()
returns true if generator should cut back. |
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. |
protected StringPair |
generateTypo(StringPair pair)
generates 'typo'. |
protected ContextProviderImpl |
getContext()
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Generator(Expression exp, Document emptyDoc, GeneratorOption opts)
Method Detail |
---|
protected boolean cutBack()
public static void generate(Expression exp, Document emptyDoc)
public static void generate(Expression exp, Document emptyDoc, GeneratorOption opts)
public void onEpsilon()
onEpsilon
in interface ExpressionVisitorVoid
public void onNullSet()
onNullSet
in interface ExpressionVisitorVoid
public void onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitorVoid
public void onInterleave(InterleaveExp ip)
onInterleave
in interface ExpressionVisitorVoid
public void onChoice(ChoiceExp cp)
onChoice
in interface ExpressionVisitorVoid
public void onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitorVoid
public void onList(ListExp exp)
onList
in interface ExpressionVisitorVoid
public void onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitorVoid
public void onOther(OtherExp exp)
onOther
in interface ExpressionVisitorVoid
public void onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitorVoid
public void onElement(ElementExp exp)
onElement
in interface ExpressionVisitorVoid
public void onAnyString()
onAnyString
in interface ExpressionVisitorVoid
public void onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitorVoid
public void onZeroOrMore(OneOrMoreExp exp)
public void onValue(ValueExp exp)
onValue
in interface ExpressionVisitorVoid
public void onData(DataExp exp)
onData
in interface ExpressionVisitorVoid
public void onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitorVoid
protected ContextProviderImpl getContext()
protected StringPair generateTypo(StringPair pair)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |