public abstract class Aggregator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected java.lang.String |
mDecimalFormatString |
protected java.lang.String |
mWholeNumberFormatString |
Constructor and Description |
---|
Aggregator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDecimalFormatString()
Getter for the decimal format string
|
java.util.List<java.lang.String> |
getOperations()
Getter for the operations property, which is the list
of operations that this aggregator supports.
|
java.lang.String |
getOverrideProperty()
Getter for the override property, which is the the name of the
property that this aggregator is overriding (if any at all).
|
java.lang.String |
getWholeNumberFormatString()
Getter for the whole number format string
|
boolean |
isValidOperation(java.lang.String pOperation)
Returns
true if the given operation is supported for the
aggregator, false otherwise. |
java.lang.String |
parseToLocalizedValue(java.lang.String pValue,
java.lang.Class<?> pType)
Parses a string value and returns a localized string representation.
|
void |
setDecimalFormatString(java.lang.String pDecimalFormatString)
Setter for the decimal format string
|
void |
setOperations(java.util.List<java.lang.String> pOperations)
Setter for the aggregators property.
|
void |
setOverrideProperty(java.lang.String pOverrideProperty)
Setter for the override property.
|
void |
setWholeNumberFormatString(java.lang.String pWholeNumberFormatString)
Setter for the whole number format string
|
public static java.lang.String CLASS_VERSION
protected java.lang.String mDecimalFormatString
protected java.lang.String mWholeNumberFormatString
public void setOperations(java.util.List<java.lang.String> pOperations)
pOperations
- map of aggregatorspublic java.util.List<java.lang.String> getOperations()
public void setOverrideProperty(java.lang.String pOverrideProperty)
pOverrideProperty
- the name of the property that this aggregator is overriding (if any at all)public java.lang.String getOverrideProperty()
public java.lang.String getDecimalFormatString()
public void setDecimalFormatString(java.lang.String pDecimalFormatString)
pDecimalFormatString
- Stringpublic java.lang.String getWholeNumberFormatString()
public void setWholeNumberFormatString(java.lang.String pWholeNumberFormatString)
pWholeNumberFormatString
- Stringpublic boolean isValidOperation(java.lang.String pOperation)
true
if the given operation is supported for the
aggregator, false
otherwise.pOperation
- the name of the operation to validatetrue
if the operation is supported for the aggregator,
false
otherwisepublic java.lang.String parseToLocalizedValue(java.lang.String pValue, java.lang.Class<?> pType) throws java.lang.NumberFormatException
pValue
- value to be parsedpType
- class type of pValuejava.lang.NumberFormatException
- if pValue could not be parsed