Class TextPropertyValueAdapter


  • public class TextPropertyValueAdapter
    extends Object
    The TextPropertyValueAdapter replaces text fragments with named system property values.
    Author:
    rsoika
    • Constructor Detail

      • TextPropertyValueAdapter

        public TextPropertyValueAdapter()
    • 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.