public class DSLUtil
extends java.lang.Object
Constructor and Description |
---|
DSLUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertTypeName(java.lang.String type)
Converts the type name to be usable in the domain-specific-language.
|
static Configuration |
createBlacklist(java.lang.String query,
java.lang.String quantifier,
java.lang.String comparison)
Create a blacklist entry.
|
static Configuration |
createOrderConstraint(java.lang.String query,
java.lang.String quantifier,
java.lang.String order)
Create an order constraint entry.
|
static Configuration |
createStringFormat(java.lang.String query,
java.lang.String quantifier,
java.lang.String format)
Create a string format entry.
|
static ConfigurationArray |
getAbstractionArray()
Get the abstraction rule configuration array.
|
static java.util.List<BrowserEditor.EditorField> |
getAbstractionFields()
Get the list of fields which must be used in the abstraction rule editor.
|
static ConfigurationArray |
getBlacklistArray()
Get the blacklist configuration array.
|
static java.util.List<BrowserEditor.EditorField> |
getBlacklistFields()
Get the list of fields which must be used in the blacklist rule editor.
|
static Validator |
getComparisonValidator()
Returns a validator to validate the comparison part of a domain-specific language item, as found
in blacklist rules and abstraction rules.
|
static EditableConfigurationArray |
getEditableAbstractionArray()
Get the editable abstraction rule configuration array.
|
static EditableConfigurationArray |
getEditableBlacklistArray()
Get the editable blacklist configuration array.
|
static EditableConfigurationArray |
getEditableOrderConstraintArray()
Get the editable order constraint configuration array.
|
static EditableConfigurationArray |
getEditableStringFormatArray()
Get the editable string format configuration array.
|
static java.util.List<BrowserEditor.EditorField> |
getFormatFields()
Get the list of fields which must be used in the string format editor.
|
static Validator |
getFormatValidator()
Returns a validator to validate the format part of a domain-specific language item, as found
in string formats.
|
static ConfigurationArray |
getOrderConstraintArray()
Get the order constraint configuration array.
|
static java.util.List<BrowserEditor.EditorField> |
getOrderFields()
Get the list of fields which must be used in the order constraint editor.
|
static Validator |
getOrderValidator()
Returns a validator to validate the order part of a domain-specific language item, as found
in ordering constraints.
|
static Validator |
getQueryValidator()
Returns a validator to validate the query part of a domain-specific language item, as found
in ordering constraints, string formats, blacklist rules and abstraction rules,
|
static ConfigurationArray |
getStringFormatArray()
Get the string format configuration array.
|
public static Validator getQueryValidator()
public static Validator getOrderValidator()
public static Validator getFormatValidator()
public static Validator getComparisonValidator()
public static java.util.List<BrowserEditor.EditorField> getBlacklistFields()
public static java.util.List<BrowserEditor.EditorField> getOrderFields()
public static java.util.List<BrowserEditor.EditorField> getFormatFields()
public static java.util.List<BrowserEditor.EditorField> getAbstractionFields()
public static java.lang.String convertTypeName(java.lang.String type)
type
- The type name to convert.public static Configuration createBlacklist(java.lang.String query, java.lang.String quantifier, java.lang.String comparison)
query
- The query for the blacklist entry.quantifier
- The quantifier for the blacklist entry.comparison
- The comparison for the blacklist entry.public static Configuration createStringFormat(java.lang.String query, java.lang.String quantifier, java.lang.String format)
query
- The query for the string format entry.quantifier
- The quantifier for the string format entry.format
- The comparison for the string format entry.public static Configuration createOrderConstraint(java.lang.String query, java.lang.String quantifier, java.lang.String order)
query
- The query for the order constraint entry.quantifier
- The quantifier for the order constraint entry.order
- The order for the order constraint entry.public static ConfigurationArray getBlacklistArray()
public static EditableConfigurationArray getEditableBlacklistArray()
public static ConfigurationArray getStringFormatArray()
public static EditableConfigurationArray getEditableStringFormatArray()
public static ConfigurationArray getOrderConstraintArray()
public static EditableConfigurationArray getEditableOrderConstraintArray()
public static ConfigurationArray getAbstractionArray()
public static EditableConfigurationArray getEditableAbstractionArray()