Class FileContentGeneratorSettings
- java.lang.Object
-
- org.eclipse.lemminx.extensions.generators.FileContentGeneratorSettings
-
- Direct Known Subclasses:
DTDGeneratorSettings,RelaxNGGeneratorSettings,XMLSchemaGeneratorSettings
public class FileContentGeneratorSettings extends Object
Base class for generator settings.
-
-
Constructor Summary
Constructors Constructor Description FileContentGeneratorSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxEnumerationValues()Returns the maximum number of distinct attribute values to be included in an enumeration.intgetMaxIdValues()Returns the maximum number of attribute values to be saved while checking for uniqueness.intgetMinEnumerationInstances()Returns the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration typeintgetMinEnumerationRatio()Returns the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratiointgetMinFixed()Returns the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.intgetMinIdValues()Returns the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.voidsetMaxEnumerationValues(int maxEnumerationValues)Set the maximum number of distinct attribute values to be included in an enumeration.voidsetMaxIdValues(int maxIdValues)Set the maximum number of attribute values to be saved while checking for uniqueness.voidsetMinEnumerationInstances(int minEnumerationInstances)Set the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration typevoidsetMinEnumerationRatio(int minEnumerationRatio)Set the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratiovoidsetMinFixed(int minFixed)Set the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.voidsetMinIdValues(int minIdValues)Set the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.
-
-
-
Method Detail
-
getMinEnumerationInstances
public int getMinEnumerationInstances()
Returns the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration type- Returns:
- the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration type
-
setMinEnumerationInstances
public void setMinEnumerationInstances(int minEnumerationInstances)
Set the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration type- Parameters:
minEnumerationInstances- the minimum number of appearances of an attribute for it to be considered a candidate for an enumeration type
-
getMaxEnumerationValues
public int getMaxEnumerationValues()
Returns the maximum number of distinct attribute values to be included in an enumeration.- Returns:
- the maximum number of distinct attribute values to be included in an enumeration.
-
setMaxEnumerationValues
public void setMaxEnumerationValues(int maxEnumerationValues)
Set the maximum number of distinct attribute values to be included in an enumeration.- Parameters:
maxEnumerationValues- the maximum number of distinct attribute values to be included in an enumeration.
-
getMinEnumerationRatio
public int getMinEnumerationRatio()
Returns the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratio- Returns:
- the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratio
-
setMinEnumerationRatio
public void setMinEnumerationRatio(int minEnumerationRatio)
Set the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratio- Parameters:
minEnumerationRatio- the ratio for an attribute will be regarded as an enumeration attribute only if the number of instances divided by the number of distinct values is >= this ratio
-
getMinFixed
public int getMinFixed()
Returns the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.- Returns:
- the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.
-
setMinFixed
public void setMinFixed(int minFixed)
Set the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.- Parameters:
minFixed- the minimum number of attributes that must appear, with the same value each time, for the value to be regarded as FIXED.
-
getMinIdValues
public int getMinIdValues()
Returns the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.- Returns:
- the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.
-
setMinIdValues
public void setMinIdValues(int minIdValues)
Set the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.- Parameters:
minIdValues- the minumum number of attribute values that must appear for the attribute to be regarded as an ID value.
-
getMaxIdValues
public int getMaxIdValues()
Returns the maximum number of attribute values to be saved while checking for uniqueness.- Returns:
- the maximum number of attribute values to be saved while checking for uniqueness.
-
setMaxIdValues
public void setMaxIdValues(int maxIdValues)
Set the maximum number of attribute values to be saved while checking for uniqueness.- Parameters:
maxIdValues- the maximum number of attribute values to be saved while checking for uniqueness.
-
-