Class StringOperations
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.StringOperations
-
public class StringOperations extends java.lang.ObjectImplements string operations.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classStringOperations.CaseChangeImplements the case change operations.(package private) static classStringOperations.CompareOperationImplements the string compare operations.
-
Field Summary
Fields Modifier and Type Field Description (package private) static IOperationEvaluatorATImplements the "at" operation.(package private) static IOperationEvaluatorCHARACTERS(package private) static IOperationEvaluatorCONCATImplements the "concat" operation.(package private) static IOperationEvaluatorEQUALS_IGNORE_CASEImplements the "equalsIgnoreCase" operation.(package private) static IOperationEvaluatorINDEX_OFImplements the "indexOf" operation.(package private) static IOperationEvaluatorMATCHESImplements the "matches" operation.(package private) static IOperationEvaluatorSIZEImplements the "size" operation.(package private) static IOperationEvaluatorSUBSTITUTESImplements the "substitutes" operation.(package private) static IOperationEvaluatorSUBSTRINGImplements the "substring" operation.(package private) static IOperationEvaluatorTO_BOOLEANImplements the "toBoolean" operation.(package private) static IOperationEvaluatorTO_INTImplements the "toInt" operation.(package private) static IOperationEvaluatorTO_REALImplements the "toReal" operation.
-
Constructor Summary
Constructors Modifier Constructor Description privateStringOperations()Prevents external creation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static booleanequalsIgnoreCase(java.lang.String s1, java.lang.String s2, EvaluationAccessor accessor)Compares two strings without considering cases using the locale given by the evaluationaccessor.private static booleanequalsIgnoreCase(java.lang.String s1, java.lang.String s2, EvaluationContext context)Compares two strings without considering cases using the locale given by the evaluationcontext.static voidregister()Registers the defined operations.
-
-
-
Field Detail
-
SIZE
static final IOperationEvaluator SIZE
Implements the "size" operation.
-
TO_INT
static final IOperationEvaluator TO_INT
Implements the "toInt" operation.
-
TO_REAL
static final IOperationEvaluator TO_REAL
Implements the "toReal" operation.
-
TO_BOOLEAN
static final IOperationEvaluator TO_BOOLEAN
Implements the "toBoolean" operation.
-
EQUALS_IGNORE_CASE
static final IOperationEvaluator EQUALS_IGNORE_CASE
Implements the "equalsIgnoreCase" operation.
-
CONCAT
static final IOperationEvaluator CONCAT
Implements the "concat" operation.
-
SUBSTRING
static final IOperationEvaluator SUBSTRING
Implements the "substring" operation.
-
AT
static final IOperationEvaluator AT
Implements the "at" operation.
-
INDEX_OF
static final IOperationEvaluator INDEX_OF
Implements the "indexOf" operation.
-
MATCHES
static final IOperationEvaluator MATCHES
Implements the "matches" operation.
-
CHARACTERS
static final IOperationEvaluator CHARACTERS
-
SUBSTITUTES
static final IOperationEvaluator SUBSTITUTES
Implements the "substitutes" operation.
-
-
Method Detail
-
equalsIgnoreCase
private static boolean equalsIgnoreCase(java.lang.String s1, java.lang.String s2, EvaluationAccessor accessor)Compares two strings without considering cases using the locale given by the evaluationaccessor.- Parameters:
s1- the first strings2- the second stringaccessor- the evaluation accessor carrying the evaluation context / locale- Returns:
truefor equality,falseelse- See Also:
equalsIgnoreCase(String, String, EvaluationContext)
-
equalsIgnoreCase
private static boolean equalsIgnoreCase(java.lang.String s1, java.lang.String s2, EvaluationContext context)Compares two strings without considering cases using the locale given by the evaluationcontext.- Parameters:
s1- the first strings2- the second stringcontext- the evaluation context carrying the locale- Returns:
truefor equality,falseelse
-
register
public static final void register()
Registers the defined operations.
-
-