Class AbstractSubstringMask
- java.lang.Object
-
- com.aquima.interactions.framework.mask.impl.AbstractMask
-
- com.aquima.interactions.framework.mask.impl.AbstractSubstringMask
-
- All Implemented Interfaces:
IMask
- Direct Known Subclasses:
FirstToUpperCase
,SetCase
public abstract class AbstractSubstringMask extends AbstractMask
Abstract mask class to parse the following optional parameters.- start-index: start string mask at index.
- end-index: stop string mask at index.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Constructor Description AbstractSubstringMask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
applySingleValue(ISingleValue singleValue, IMaskContext context, ILanguage language)
This method is called when this mask is applied.protected abstract String
applyStringValue(StringValue stringValue, IMaskContext context)
protected DataType[]
getValidDataTypes()
Should return the datatypes for which this mask can be applied.-
Methods inherited from class com.aquima.interactions.framework.mask.impl.AbstractMask
apply
-
-
-
-
Method Detail
-
applyStringValue
protected abstract String applyStringValue(StringValue stringValue, IMaskContext context) throws Exception
- Throws:
Exception
-
applySingleValue
protected String applySingleValue(ISingleValue singleValue, IMaskContext context, ILanguage language) throws Exception
Description copied from class:AbstractMask
This method is called when this mask is applied.- Specified by:
applySingleValue
in classAbstractMask
- Parameters:
singleValue
- The value, never null and never unknown.context
- Mask context- Returns:
- The applied mask result.
- Throws:
Exception
- When something went wrong.
-
getValidDataTypes
protected DataType[] getValidDataTypes()
Description copied from class:AbstractMask
Should return the datatypes for which this mask can be applied.- Specified by:
getValidDataTypes
in classAbstractMask
- Returns:
- Array of datatypes.
-
-