|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.FormatSpecification
public class FormatSpecification
The FormatSpecification classifies a format string into the 4 known classes of format-strings of Java. This is used by the Excel-export to transform the raw-formatstring into a suitable cell-format.
This class is plain value-carrier. It is mutable and should not be used outside the scope of querying raw-datasources.
| Field Summary | |
|---|---|
static int |
TYPE_CHOICE_FORMAT
A constant declaring that the format-type is a choice-format. |
static int |
TYPE_DATE_FORMAT
A constant declaring that the format-type is a simple date-format. |
static int |
TYPE_DECIMAL_FORMAT
A constant declaring that the format-type is a decimal-format. |
static int |
TYPE_MESSAGE_FORMAT
A constant declaring that the format-type is a message-format. |
static int |
TYPE_UNDEFINED
A constant declaring that the format-type cannot be determined in a reliable way. |
| Constructor Summary | |
|---|---|
FormatSpecification()
Creates an empty object. |
|
| Method Summary | |
|---|---|
String |
getFormatString()
Returns the raw-format-string. |
int |
getType()
Returns the type of the format string contained in this class. |
void |
redefine(int type,
String formatString)
Redefines the values stored in this specification object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_UNDEFINED
public static final int TYPE_DATE_FORMAT
public static final int TYPE_DECIMAL_FORMAT
public static final int TYPE_MESSAGE_FORMAT
public static final int TYPE_CHOICE_FORMAT
| Constructor Detail |
|---|
public FormatSpecification()
redefine(int,String)
later.
| Method Detail |
|---|
public void redefine(int type,
String formatString)
type - the type, one of the constants declared in this class.formatString - the format string.public int getType()
public String getFormatString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||