Class ScriptedColumnValueGenerator
- java.lang.Object
-
- com.nuix.superutilities.reporting.ColumnValueGenerator
-
- com.nuix.superutilities.reporting.ScriptedColumnValueGenerator
-
public class ScriptedColumnValueGenerator extends ColumnValueGenerator
AColumnValueGenerator
which uses the provided BiFunction expression to calculate its value.
-
-
Field Summary
-
Fields inherited from class com.nuix.superutilities.reporting.ColumnValueGenerator
columnLabel, label
-
-
Constructor Summary
Constructors Constructor Description ScriptedColumnValueGenerator(java.lang.String label, java.lang.String categoryLabel, java.util.function.BiFunction<nuix.Case,java.lang.String,java.lang.Object> expression)
ScriptedColumnValueGenerator(java.lang.String label, java.util.function.BiFunction<nuix.Case,java.lang.String,java.lang.Object> expression)
Creates a new instance which will used the specified expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
generateValue(nuix.Case nuixCase, java.lang.String query)
-
Methods inherited from class com.nuix.superutilities.reporting.ColumnValueGenerator
getColumnLabel, getLabel, setColumnLabel, setLabel
-
-
-
-
Constructor Detail
-
ScriptedColumnValueGenerator
public ScriptedColumnValueGenerator(java.lang.String label, java.util.function.BiFunction<nuix.Case,java.lang.String,java.lang.Object> expression)
Creates a new instance which will used the specified expression.- Parameters:
label
- The label to use when generating a reportexpression
- The expression used to calculate this column's value. Expression will be provided a Nuix case object and query String and is expected to return a value such as a string or integer.
-
ScriptedColumnValueGenerator
public ScriptedColumnValueGenerator(java.lang.String label, java.lang.String categoryLabel, java.util.function.BiFunction<nuix.Case,java.lang.String,java.lang.Object> expression)
-
-
Method Detail
-
generateValue
public java.lang.Object generateValue(nuix.Case nuixCase, java.lang.String query)
- Overrides:
generateValue
in classColumnValueGenerator
-
-