public class FormatSpecification extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FormatSpecification()
Creates an empty object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public FormatSpecification()
redefine(int, String)
later.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()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.