public interface ParamInfo
ParamInfo
contains the descriptions of the parameters of a report.Modifier and Type | Method and Description |
---|---|
boolean |
allowToShowUnencryptedValue()
Check whether allow to show unencrypted parameter value.
|
void |
check(java.lang.String value)
Checks whether a value is valid for the parameter,
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String[] |
detectInvalidValues(java.lang.String[] values)
Detects whether values are out of range (value list of parameter),
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String[][] |
getBooleanLiteral()
For Boolean type parameter, returns boolean literals.
|
java.lang.String |
getBoundSQL()
Returns the parameter bound SQL.
|
java.lang.String |
getDefaultDateFormat()
Returns the default date format of this parameter,
based on the Locale of this object set by
setLocale(Locale) . |
long |
getDefaultDateValue()
Returns the default value in milliseconds represented by this parameter object,
the number of milliseconds since January 1, 1970, 00:00:00 GMT.
The parameter type must be date/time/datetime, otherwise return 0. |
java.lang.String |
getDefaultValue()
Returns default value of the parameter,
based on the Locale of this object set by
setLocale(Locale) . |
java.util.Locale |
getDisplayLocale()
Get the display locale.
|
java.util.Vector |
getDisplayValues()
Returns the parameter display values,
based on the Locale of this object set by
setLocale(Locale) . |
java.util.Vector |
getDisplayValues(java.util.Locale locale)
Deprecated.
replaced by
getDisplayValues() , and set locale via setLocale(Locale) . |
java.lang.String |
getDynamicDisplayValue(long currTime)
Returns dynamic datetime display value for the specified time in milliseconds,
format based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String |
getDynamicDisplayValue(long currTime,
java.util.Locale local)
Deprecated.
replaced by
getDynamicDisplayValue(long) , and set locale via setLocale(Locale) . |
java.util.Locale |
getLocale()
Returns the Locale of the parameter.
|
java.lang.String |
getMaxLimit()
Returns the maximum limit of the parameter value range,
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String |
getMaxLimit(java.util.Locale locale)
Deprecated.
replaced by
getMaxLimit() , and set locale via setLocale(Locale) . |
java.lang.String |
getMinLimit()
Returns the minimum limit of the parameter value range,
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String |
getMinLimit(java.util.Locale locale)
Deprecated.
replaced by
getMinLimit() , and set locale via setLocale(Locale) . |
java.lang.String |
getName()
Returns the name of the parameter.
|
java.lang.String |
getNextLevel()
For cascading parameter, returns the lower level parameter name.
|
java.util.Vector<java.lang.String[]> |
getPagedValueList()
Gets the parameter value, show value, display value and NLS value by default condition
|
java.util.Vector<java.lang.String[]> |
getPagedValueList(int sortType,
java.lang.String searchStr,
int pointer,
int recordNumber)
Gets the parameter value, show value, display value and NLS value
|
java.lang.String |
getPreviousLevel()
For cascading parameter,
returns the higher level parameter name.
|
java.lang.String |
getPrompt()
Returns the prompt message of the parameter.
If this Param is "Required" prompt message will append a "*" at the end of normal prompt text. |
java.util.Vector |
getReferedBy()
Returns the parameter referred by other parameters.
|
java.util.TimeZone |
getTimeZone()
Get the time zone
|
java.lang.String |
getType()
Returns the type of the parameter.
|
java.lang.String |
getUserFormat()
Returns the user defined format of the parameter.
|
java.util.Vector<java.lang.String[]> |
getValueList()
Gets the parameter value, show value, display value and NLS value
|
java.util.Vector |
getValueOptions()
Returns the options of the parameter value,
based on the Locale of this object set by
setLocale(Locale) . |
java.util.Vector |
getValueOptions(java.util.Locale locale)
Deprecated.
replaced by
getValueOptions() , and set locale via setLocale(Locale) . |
int |
getWhenOutOfRange()
Returns the processing way when a typed value is out of range.
|
boolean |
isAllowAll()
Returns whether the parameter allows the ALL value to represent all the values of the parameter.
|
boolean |
isAllowTypeIn()
Returns whether the parameter allows for typing in values directly.
If it is true, UI should allow users to type in values directly regardless whether the parameter is bound with column. |
boolean |
isBindColumn()
returns if it is a bind-column parameter
|
boolean |
isCascading()
Returns whether the parameter is a member of a group of cascading parameters.
|
boolean |
isColumn()
Returns if the parameter only accepts a column name as its value.
|
boolean |
isDistinct()
Returns if the parameter is distinct.
|
boolean |
isDynamicDateParameter()
Indicates whether the parameter is dynamic datetime parameter.
|
boolean |
isGetValueFromAPI()
Check whether the parameter is API level parameter.
|
boolean |
isHideParameterWhenSingleValueReturn()
For bound with column parameter, return whether this parameter is hidden when single value is returned.
|
boolean |
isMultiple()
Returns whether the parameter allows for multiple values to be selected.
|
boolean |
isParameters()
Returns if the parameter type is Parameters.
|
boolean |
isReferedBy()
Returns if the parameter is referred by other parameters.
|
boolean |
isReferOther()
Returns if the parameter refers other parameters.
|
boolean |
isRequired()
Returns if the parameter is required.
|
boolean |
isSetAsParameter()
For cascading parameter, returns whether the parameter is set as an independent parameter that can be used alone.
|
boolean |
needEncryptValue()
Check whether need encrypt parameter value .
|
boolean |
needEncryptValueCheckbox()
Check whether need show encrypt parameter value check box.
|
boolean |
needNLSDisplayValue()
Check whether the display value need nls
|
void |
setDisplayLocale(java.util.Locale clientLocale)
Set the display locale.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding of the parameter.
|
void |
setLocale(java.util.Locale locale)
Sets the Locale of the parameter,
default is system default locale
The Locale will affect the result format which you get from this ParamInfo object, and the input format which you set into this ParamInfo object: getDefaultValue() , getDisplayValues() , getValueOptions() ,
getDefaultDateFormat() , getDynamicDisplayValue(long) ,
detectInvalidValues(String[]) , check(String) ,
setValue(String) , setValue(String[]) , etc. |
void |
setTimeZone(java.util.TimeZone tz)
Set the time zone
|
void |
setValue(java.lang.String value)
Sets the parameter value if this parameter allows for only one value,
based on the Locale of this object set by
setLocale(Locale) . |
void |
setValue(java.lang.String[] value)
Sets the parameter values if this parameter allows for multiple values,
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String |
validateValue(java.lang.String paramValue)
Checks whether a value is valid for the parameter,
based on the Locale of this object set by
setLocale(Locale) . |
java.lang.String getName()
java.lang.String getType()
java.lang.String getPrompt()
APIConst.TAG_REPORT_LANGUAGE
and APIConst.TAG_REPORT_COUNTRY
tags for calling RptServer.getReportInfo(String, String, int, String, int, Hashtable)
.isRequired()
void setLocale(java.util.Locale locale)
getDefaultValue()
, getDisplayValues()
, getValueOptions()
,
getDefaultDateFormat()
, getDynamicDisplayValue(long)
,
detectInvalidValues(String[])
, check(String)
,
setValue(String)
, setValue(String[])
, etc.locale
- the Locale of the parameter.java.util.Locale getLocale()
java.lang.String getDefaultValue()
setLocale(Locale)
.long getDefaultDateValue()
boolean isColumn()
boolean isDistinct()
boolean isRequired()
boolean isBindColumn()
java.util.Vector getValueOptions(java.util.Locale locale)
getValueOptions()
, and set locale via setLocale(Locale)
.locale
- the Locale will be ignored.setLocale(Locale)
java.util.Vector getValueOptions()
setLocale(Locale)
.java.util.Vector getDisplayValues(java.util.Locale locale)
getDisplayValues()
, and set locale via setLocale(Locale)
.locale
- the Locale will be ignored.setLocale(Locale)
java.util.Vector getDisplayValues()
setLocale(Locale)
.void setEncoding(java.lang.String encoding)
encoding
- the encoding of the parameter.void setValue(java.lang.String value)
setLocale(Locale)
.
value
- the parameter value.isMultiple()
void setValue(java.lang.String[] value)
setLocale(Locale)
.
value
- the parameter's multiple values.isMultiple()
java.lang.String getMaxLimit(java.util.Locale locale)
getMaxLimit()
, and set locale via setLocale(Locale)
.locale
- the Locale will be ignored.setLocale(Locale)
java.lang.String getMaxLimit()
setLocale(Locale)
.java.lang.String getMinLimit(java.util.Locale locale)
getMinLimit()
, and set locale via setLocale(Locale)
.locale
- the Locale will be ignored.setLocale(Locale)
java.lang.String getMinLimit()
setLocale(Locale)
.java.lang.String getUserFormat()
getType()
java.lang.String getDefaultDateFormat()
setLocale(Locale)
.type
is not
"Date", "DateTime", or "Time", return null
.getType()
boolean isParameters()
getType()
.equals("Parameters").getType()
boolean isReferedBy()
java.util.Vector getReferedBy()
boolean isReferOther()
java.lang.String getBoundSQL()
boolean isDynamicDateParameter()
java.lang.String getDynamicDisplayValue(long currTime, java.util.Locale local)
getDynamicDisplayValue(long)
, and set locale via setLocale(Locale)
.currTime
- the current local system time in milliseconds.locale
- the Locale will be ignored.setLocale(Locale)
java.lang.String getDynamicDisplayValue(long currTime)
setLocale(Locale)
.currTime
- the current local system time in milliseconds.boolean isHideParameterWhenSingleValueReturn()
isColumn()
is true
.isColumn()
java.lang.String[][] getBooleanLiteral()
true
, String[1][] are literals for false
.boolean isMultiple()
boolean isAllowAll()
boolean isCascading()
java.lang.String getPreviousLevel()
java.lang.String getNextLevel()
boolean isSetAsParameter()
boolean isAllowTypeIn()
int getWhenOutOfRange()
ParamDesc.ADOPT_DIRECTLY
or ParamDesc.USE_DEFAULT
or ParamDesc.WARN
ParamDesc
java.lang.String[] detectInvalidValues(java.lang.String[] values)
setLocale(Locale)
.values
- The values to be detected.void check(java.lang.String value) throws RptServerException
setLocale(Locale)
.value
- the value to be checked.RptServerException
- if the value is invalid for the parameter.java.lang.String validateValue(java.lang.String paramValue) throws RptServerException
setLocale(Locale)
.paramValue
- the value to be checked.RptServerException
- if the value is invalid for the parameter.boolean isGetValueFromAPI()
java.util.Vector<java.lang.String[]> getValueList()
boolean needNLSDisplayValue()
boolean needEncryptValueCheckbox()
boolean allowToShowUnencryptedValue()
boolean needEncryptValue()
void setDisplayLocale(java.util.Locale clientLocale)
clientLocale,
- the locale which was used to do NLS.java.util.Locale getDisplayLocale()
void setTimeZone(java.util.TimeZone tz)
tz
- the time zone that uses to format date type valuejava.util.TimeZone getTimeZone()
java.util.Vector<java.lang.String[]> getPagedValueList(int sortType, java.lang.String searchStr, int pointer, int recordNumber)
sortType
- the sort type of the parameter valuethe
- search string for the parameter values.the
- current pointer of the parameter values.the
- fetch record number of the parameter values.java.util.Vector<java.lang.String[]> getPagedValueList()