cdc.applic.expressions.literals.EscapingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdc-applic-expressions Show documentation
Show all versions of cdc-applic-expressions Show documentation
Applicabilities Expressions.
package cdc.applic.expressions.literals;
/**
* Possible escaping contexts.
*
* Literals that must be escaped depend on that context.
*
* @author Damien Carbonne
*/
public enum EscapingContext {
/**
* The literal is:
*
* - a property name,
*
- an alias name (reference),
*
- a string item.
*
* In that case, if the non escaped literal is a number or a boolean, it must be escaped.
* If the literal contains some separation characters or patterns, it must be escaped.
* Otherwise, it does not need to be escaped.
*/
NAME,
/**
* The literal is:
*
* - an integer item,
*
- a real item.
*
* In that case, the literal MUST NOT be escaped.
*/
NUMBER,
/**
* The literal is:
*
* - a boolean item.
*
* In that case, the literal MUST NOT be escaped.
*/
BOOLEAN
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy