Class StringRightContextConvertor
java.lang.Object
org.ametys.plugins.core.impl.right.StringRightContextConvertor
- All Implemented Interfaces:
RightContextConvertor
,Configurable
public class StringRightContextConvertor
extends Object
implements RightContextConvertor, Configurable
This RightContextConvertor is just an hardcoded translation from a configured string to another configured string
-
Field Details
-
_contextToRemove
The context to remove -
_contextToReplaceWith
The context to replace with
-
-
Constructor Details
-
StringRightContextConvertor
public StringRightContextConvertor()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
convert
Description copied from interface:RightContextConvertor
Converts the object.- Specified by:
convert
in interfaceRightContextConvertor
- Parameters:
object
- The initial object- Returns:
- The converted objects. A non-null set, that does not contains the initial object. So if you do not support the object to convert, you must return an empty set.
-