Class AtpFormulaStringHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String AVAILABILITY  
      protected static java.util.List<java.lang.String> operatorList  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(AtpFormulaModel atpFormulaModel)
      Holds logic behind getter for dynamic attribute.
      protected java.util.Map<java.lang.String,​java.lang.String> getAtpFormulaVar2ArithmeticOperatorMap()  
      protected void interpretFormulaVariable​(AtpFormulaModel atpFormulaModel, java.lang.StringBuilder formulaString, java.beans.PropertyDescriptor formulaVarPropDescriptor)
      Interpret the given formula variable and append it to the given StringBuilder
      protected static java.util.function.Predicate<java.beans.PropertyDescriptor> isAvailable()
      Checks if the given PropertyDescriptor is for AtpFormulaModel.AVAILABILITY
      protected void prepareFormulaString​(AtpFormulaModel atpFormulaModel, java.lang.StringBuilder formulaString, java.util.Set<java.beans.PropertyDescriptor> propertyDescriptors)
      Prepares formula string from atpformula variables
      void set​(AtpFormulaModel atpFormulaModel, java.lang.String formulaString)
      Holds logic behind setter for dynamic attribute.
      void setAtpFormulaVar2ArithmeticOperatorMap​(java.util.Map<java.lang.String,​java.lang.String> atpFormulaVar2ArithmeticOperatorMap)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • operatorList

        protected static final java.util.List<java.lang.String> operatorList
    • Constructor Detail

      • AtpFormulaStringHandler

        public AtpFormulaStringHandler()
    • Method Detail

      • prepareFormulaString

        protected void prepareFormulaString​(AtpFormulaModel atpFormulaModel,
                                            java.lang.StringBuilder formulaString,
                                            java.util.Set<java.beans.PropertyDescriptor> propertyDescriptors)
        Prepares formula string from atpformula variables
        Parameters:
        atpFormulaModel -
        formulaString -
        propertyDescriptors -
      • interpretFormulaVariable

        protected void interpretFormulaVariable​(AtpFormulaModel atpFormulaModel,
                                                java.lang.StringBuilder formulaString,
                                                java.beans.PropertyDescriptor formulaVarPropDescriptor)
        Interpret the given formula variable and append it to the given StringBuilder
        Parameters:
        atpFormulaModel - the AtpFormulaModel
        formulaString - the StringBuilder
        formulaVarPropDescriptor - the PropertyDescriptor
      • set

        public void set​(AtpFormulaModel atpFormulaModel,
                        java.lang.String formulaString)
        Description copied from interface: DynamicAttributeHandler
        Holds logic behind setter for dynamic attribute.
        Specified by:
        set in interface DynamicAttributeHandler<java.lang.String,​AtpFormulaModel>
        Parameters:
        atpFormulaModel - model for which dynamic attribute is declared.
        formulaString - the value which will be used by setter logic.
      • getAtpFormulaVar2ArithmeticOperatorMap

        protected java.util.Map<java.lang.String,​java.lang.String> getAtpFormulaVar2ArithmeticOperatorMap()
      • setAtpFormulaVar2ArithmeticOperatorMap

        public void setAtpFormulaVar2ArithmeticOperatorMap​(java.util.Map<java.lang.String,​java.lang.String> atpFormulaVar2ArithmeticOperatorMap)