java.lang.Object
org.qubership.integration.platform.runtime.catalog.builder.templates.helpers.BaseHelper
org.qubership.integration.platform.runtime.catalog.builder.templates.helpers.PropertyHelperSource
Direct Known Subclasses:
IfPropertyHelper

public class PropertyHelperSource extends BaseHelper
  • Constructor Details

    • PropertyHelperSource

      public PropertyHelperSource()
  • Method Details

    • subProperty

      public CharSequence subProperty(String firstProperty, String targetProperty, com.github.jknack.handlebars.Options options)
      Method is used to receive ChainElement's sub property with name targetProperty from map with name firstProperty and get it's String value.
      Parameters:
      firstProperty - Name of source property
      targetProperty - Name of property, that must be extracted.
      options - Object, which contains handlebars information.
      Returns:
      Property string value
    • property

      public Object property(String propertyName, com.github.jknack.handlebars.Options options)
      Method is used to receive ChainElement's property with name propertyName and get it's String value.
      Parameters:
      propertyName - Name of property, that must be extracted.
      options - Object, which contains handlebars information.
      Returns:
      Property string value
    • cdata

      public CharSequence cdata(Object parameter)
      Method, that wraps String value of input argument into CDATA section and returns final value.
    • escape

      public CharSequence escape(Object value)
      Method, that replaces special chars in input String value with html entities.