|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.dao.chart.AbstractDAO.DataValueParser
protected class AbstractDAO.DataValueParser
Internal helper object that parses the numeric string value to a double so that it can be validated. Also tracks and sets the max value if the new value is larger and contains getters to retrieve the raw value, the unformatted passed in value, and a java formatter formatted string value.
| Constructor Summary | |
|---|---|
AbstractDAO.DataValueParser()
Explicit default constructor. |
|
AbstractDAO.DataValueParser(java.lang.String javaNumberFormatPattern)
Data structure and helper methods that deal with a verifying and formatting a data value. |
|
| Method Summary | |
|---|---|
double |
getDoubleValue()
|
java.lang.String |
getFormattedValue()
Gets the formatted value based on the value set with the format specified in the format pattern property. |
double |
getMaxValue()
|
java.lang.String |
getParsedValue()
|
void |
set(java.lang.String value)
Sets (and verifies) the numeric value to be cleaned and formatted. |
void |
setNumberFormatPattern(java.lang.String javaNumberFormatPattern)
Sets the format pattern to be used for the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDAO.DataValueParser()
public AbstractDAO.DataValueParser(java.lang.String javaNumberFormatPattern)
javaNumberFormatPattern - Standard Java numeric format pattern.| Method Detail |
|---|
public void setNumberFormatPattern(java.lang.String javaNumberFormatPattern)
javaNumberFormatPattern - Standard Java numeric format pattern.public void set(java.lang.String value)
value - Value to be cleaned and formatted.public java.lang.String getFormattedValue()
public java.lang.String getParsedValue()
public double getDoubleValue()
public double getMaxValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||