Class ResourceBrowserMappingExtension

java.lang.Object
com.axemble.vdoc.sdk.mapping.extensions.BaseMappingExtension
com.axemble.vdp.mapping.extensions.ResourceBrowserMappingExtension
All Implemented Interfaces:
Serializable

public class ResourceBrowserMappingExtension extends BaseMappingExtension
Author:
vlygeros
See Also:
  • Field Details

    • objectValue

      protected Object objectValue
  • Constructor Details

    • ResourceBrowserMappingExtension

      public ResourceBrowserMappingExtension()
  • Method Details

    • onChange

      public void onChange(IProperty property, Element element)
      Specified by:
      onChange in class BaseMappingExtension
    • onLoad

      public void onLoad(Element element)
      Specified by:
      onLoad in class BaseMappingExtension
    • getValue

      public Object getValue(String actionKey)
    • evaluateFormula

      public Object evaluateFormula(String actionKey)
      Evaluate a given formula
      Parameters:
      actionKey - The formula to evaluate
      Returns:
      Return a typed value if evalution succeded or null if failed.
    • trunc

      protected Object trunc(String value, String endIndex)
      Parameters:
      endIndex -
      theValue -
      Returns:
    • getTotal

      public Object getTotal(Collection<?> resourceLines, String propertyName)
    • getAverage

      public Object getAverage(Collection<?> resourceLines, String propertyName)
    • getMapValue

      public Object getMapValue(Map map, String key)
    • concat

      public String concat(String[] params)
    • toString

      public String toString(String param)
    • getFirstBracketIndex

      public int getFirstBracketIndex(String actionKey)
    • getLastBracketIndex

      public int getLastBracketIndex(String actionKey)
    • getActionKeyParam

      public String getActionKeyParam(String actionKey)
      Return param string of a actionKey
      Parameters:
      actionKey - The actionKey. Must look like :
      Returns:
      the param String or null if fail
    • getActionKeyParams

      public String[] getActionKeyParams(String actionKey)
      Return param strings array of a actionKey
      Parameters:
      actionKey - The actionKey. Must look like :
      Returns:
      the param strings array or null if fail
    • cutParams

      public static String[] cutParams(String param)
      Cut param on comma but not in brackets
      Parameters:
      param - The string to cut
      Returns:
      Array of string exemple :