@JsonData
public abstract class PromptValue
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.text.Format |
DATEFORMAT
formatter to use for dates (will use multiple fall backs)
|
static java.text.Format |
DATETIMEFORMAT
formatter to use for datetimes (will use multiple fall backs)
|
static java.text.Format |
DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS
formatter to use for datetimes with 4-digit years but without showing seconds
|
static java.text.Format |
DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS
formatter to use for datetimes with 4-digit years and seconds
|
static java.text.NumberFormat |
NUMBERFORMAT
formatter to use for numbers
|
static java.text.Format |
TIMEFORMAT
formatter to use for times (will use multiple fall backs)
|
Constructor and Description |
---|
PromptValue(int type)
Creates a prompt values of the given type initialized with the default value of its type
|
PromptValue(java.lang.String description,
int type)
Creates a prompt values of the given type initialized with the default value of its type
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the description of the parameter field that has been set using API or i-net Designer dialog.
|
abstract java.lang.Object |
getSQLTypedValue()
this method returns the value of this promptvalue using
an SQL compatible type.
|
abstract java.lang.String |
getStringRepresentation()
Returns a string representation of the value of this prompt.
|
int |
getType()
Get value type of the prompt, see the value type constants in
PromptData |
abstract java.lang.Object |
getValue()
Returns the value of this prompt - its type will depend on which value type this PromptValue has:
String for STRING
Double for NUMBER and CURRENCY Boolean for BOOLEAN Date for DATE and DATETIME Time for TIME byte[] for BINARY |
boolean |
isOnlyDescription()
If true only the description will be displayed in the report dialog.
|
void |
setDescription(java.lang.String description)
Set the description of the parameter field that can be used with API or in the prompt request dialog.
|
void |
setOnlyDescription(boolean onlyDescription)
Sets the appearance of this value in the prompt dialog.
|
java.lang.String |
toString()
Creates a formated string representation of this prompt value with its decription and value.
|
public static java.text.NumberFormat NUMBERFORMAT
public static final java.text.Format DATEFORMAT
public static final java.text.Format DATETIME_FOUR_DIGIT_YEAR_WITH_SECONDS
public static final java.text.Format DATETIME_FOUR_DIGIT_YEAR_NO_SECONDS
public static final java.text.Format DATETIMEFORMAT
public static final java.text.Format TIMEFORMAT
public PromptValue(int type)
type
- type of this default value.public PromptValue(java.lang.String description, int type)
type
- type of this default value.description
- description of this promptpublic abstract java.lang.String getStringRepresentation()
public abstract java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- of the parameter fieldpublic int getType()
PromptData
PromptData
public boolean isOnlyDescription()
public void setOnlyDescription(boolean onlyDescription)
onlyDescription
- whether only description shall be displayedpublic abstract java.lang.Object getSQLTypedValue()
Copyright © 1999-2020 by i-net software GmbH