Package org.imixs.workflow.engine
Class TextPropertyValueAdapter
- java.lang.Object
-
- org.imixs.workflow.engine.TextPropertyValueAdapter
-
public class TextPropertyValueAdapter extends Object
The TextPropertyValueAdapter replaces text fragments with named system property values.- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description TextPropertyValueAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatItemValues(List<?> aItem, String aSeparator, String sFormat, Locale locale, String sPosition)This method returns a formated a string object.voidonEvent(TextEvent event)This method reacts on CDI events of the type TextEvent and parses a string for xml tag.
-
-
-
Method Detail
-
onEvent
public void onEvent(@Observes TextEvent event)This method reacts on CDI events of the type TextEvent and parses a string for xml tag. Those tags will be replaced with the corresponding system property value.
-
formatItemValues
public String formatItemValues(List<?> aItem, String aSeparator, String sFormat, Locale locale, String sPosition)
This method returns a formated a string object. In case a Separator is provided, multiValues will be separated by the provided separator. If no separator is provide, only the first value will returned. The format and locale attributes can be used to format number and date values.
-
-