Class GeneratorOption
java.lang.Object
com.sun.msv.generator.GeneratorOption
set of options that controls generation behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintif the generated element exceeds this depth, the generator tries to cut back.booleanif set to true, comments are inserted whenever an error is generated.doubleprobability of "attribute name typo" per # of attributes.doubleprobability of "element name typo" per # of elements.doubleprobability of "greedy choice error" per # of choice.doubleprobability of "missing attribute error" per # of attributes.doubleprobability of "missing element error" per # of elements.doubleprobability of "missing plus error" per # of '+' operator.doubleprobability of "mutated attribute error" per # of attributes.doubleprobability of "mutated element error" per # of elements.doubleprobability of "sequencing error" per # of sequences.doubleprobability of "slip-in attribute error" per # of attributes.doubleprobability of "slip-in element error" per # of elements.random number generator.this object is responsible to calculate how many times '*' or '+' is repeated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfills unspecified parameters by default values.
-
Field Details
-
random
random number generator. -
cutBackDepth
public int cutBackDepthif the generated element exceeds this depth, the generator tries to cut back. -
width
this object is responsible to calculate how many times '*' or '+' is repeated. -
nameGenerator
-
dtGenerator
-
pool
-
probSeqError
public double probSeqErrorprobability of "sequencing error" per # of sequences. 0: no error, 1.0: error at every occurence of sequence. sequencing error is to generate B,A where its content model is A,B. -
probMissingElemError
public double probMissingElemErrorprobability of "missing element error" per # of elements. Missing element error is to generate epsilon where its content model is A. -
probMissingPlus
public double probMissingPlusprobability of "missing plus error" per # of '+' operator. Missing plus error is to generate epsilon where the content model is A+. Similar to "missing element error" -
probSlipInElemError
public double probSlipInElemErrorprobability of "slip-in element error" per # of elements. slip-in element error is to generate a random element before valid element X. -
probMutatedElemError
public double probMutatedElemErrorprobability of "mutated element error" per # of elements. mutated element error is to replace a valid element by a random element. Or this error can be considered as combination of "missing element error" and "slip-in element error". -
probMissingAttrError
public double probMissingAttrErrorprobability of "missing attribute error" per # of attributes. -
probSlipInAttrError
public double probSlipInAttrErrorprobability of "slip-in attribute error" per # of attributes. slip-in attribute error is to generate a random attribute before valid attribute X. -
probMutatedAttrError
public double probMutatedAttrErrorprobability of "mutated attribute error" per # of attributes. mutated attribute error is to replace a valid attribute by a random attribute. Or this error can be considered as combination of "missing attribute error" and "slip-in attribute error". -
probGreedyChoiceError
public double probGreedyChoiceErrorprobability of "greedy choice error" per # of choice. greedy choice error is to generate A,B (or B,A) where its content model is (A|B). -
probElemNameTypo
public double probElemNameTypoprobability of "element name typo" per # of elements. -
probAttrNameTypo
public double probAttrNameTypoprobability of "attribute name typo" per # of attributes. -
insertComment
public boolean insertCommentif set to true, comments are inserted whenever an error is generated.
-
-
Constructor Details
-
GeneratorOption
public GeneratorOption()
-
-
Method Details
-
fillInByDefault
public void fillInByDefault()fills unspecified parameters by default values. -
errorSpecified
public boolean errorSpecified()
-