BrightSide Workbench Full Report + Source Code
org.turro.indicator.Formulas Class Reference
Inheritance diagram for org.turro.indicator.Formulas:
Collaboration diagram for org.turro.indicator.Formulas:

Public Member Functions

String getFormula (Class javaClass)
 
String getFormula (Class javaClass, String defaultValue)
 
String getFormula (String classContext)
 
String getFormula (String classContext, String defaultValue)
 
void setFormula (String classContext, String value)
 
String getFormulaAttr (Class javaClass, String attribute)
 
String getFormulaAttr (Class javaClass, String attribute, String defaultValue)
 
String getFormulaAttr (String classContext, String attribute)
 
String getFormulaAttr (String classContext, String attribute, String defaultValue)
 

Static Public Member Functions

static Formulas load ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file Formulas.java.

Member Function Documentation

◆ getFormula() [1/4]

String org.turro.indicator.Formulas.getFormula ( Class  javaClass)

Definition at line 38 of file Formulas.java.

38  {
39  return getFormula(javaClass.getSimpleName());
40  }
String getFormula(Class javaClass)
Definition: Formulas.java:38
Here is the caller graph for this function:

◆ getFormula() [2/4]

String org.turro.indicator.Formulas.getFormula ( Class  javaClass,
String  defaultValue 
)

Definition at line 42 of file Formulas.java.

42  {
43  return getFormula(javaClass.getSimpleName(), defaultValue);
44  }
Here is the call graph for this function:

◆ getFormula() [3/4]

String org.turro.indicator.Formulas.getFormula ( String  classContext)

Definition at line 46 of file Formulas.java.

46  {
47  return getProperty(classContext);
48  }

◆ getFormula() [4/4]

String org.turro.indicator.Formulas.getFormula ( String  classContext,
String  defaultValue 
)

Definition at line 50 of file Formulas.java.

50  {
51  return getProperty(classContext, defaultValue);
52  }

◆ getFormulaAttr() [1/4]

String org.turro.indicator.Formulas.getFormulaAttr ( Class  javaClass,
String  attribute 
)

Definition at line 61 of file Formulas.java.

61  {
62  return getFormulaAttr(javaClass.getSimpleName(), attribute);
63  }
String getFormulaAttr(Class javaClass, String attribute)
Definition: Formulas.java:61
Here is the caller graph for this function:

◆ getFormulaAttr() [2/4]

String org.turro.indicator.Formulas.getFormulaAttr ( Class  javaClass,
String  attribute,
String  defaultValue 
)

Definition at line 65 of file Formulas.java.

65  {
66  return getFormulaAttr(javaClass.getSimpleName(), attribute, defaultValue);
67  }
Here is the call graph for this function:

◆ getFormulaAttr() [3/4]

String org.turro.indicator.Formulas.getFormulaAttr ( String  classContext,
String  attribute 
)

Definition at line 69 of file Formulas.java.

69  {
70  return getProperty(createProperty(classContext, attribute));
71  }

◆ getFormulaAttr() [4/4]

String org.turro.indicator.Formulas.getFormulaAttr ( String  classContext,
String  attribute,
String  defaultValue 
)

Definition at line 73 of file Formulas.java.

73  {
74  return getProperty(createProperty(classContext, attribute), defaultValue);
75  }

◆ load()

static Formulas org.turro.indicator.Formulas.load ( )
static

Definition at line 90 of file Formulas.java.

90  {
91  boolean exists = FileWatch.exists(ElephantContext.getRealPath(formulaFile));
92  if(_formulas == null || FileWatch.isNewer(ElephantContext.getRealPath(formulaFile), _lastLoad) || !exists) {
93  if(exists) {
94  try(FileInputStream fis = new FileInputStream(ElephantContext.getRealPath(formulaFile))) {
95  _formulas = new Formulas();
96  _formulas.load(fis);
97  } catch (IOException ex) {
98  Logger.getLogger(Formulas.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
99  }
100  } else {
101  _formulas = new Formulas();
102  }
103  _lastLoad = FileWatch.getTime(ElephantContext.getRealPath(formulaFile));
104  }
105  return _formulas;
106  }
static Formulas load()
Definition: Formulas.java:90
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFormula()

void org.turro.indicator.Formulas.setFormula ( String  classContext,
String  value 
)

Definition at line 54 of file Formulas.java.

54  {
55  setProperty(classContext, value);
56  store();
57  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: