|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjet.cs.Param
public class Param
Class Param
defines a parameter description of a report.
Method Summary | |
---|---|
static java.util.Vector |
changedHashToVector(java.util.Hashtable hash)
Changes Hashtable to Vector. |
static java.util.Hashtable |
changedVectorToHash(java.util.Vector v)
Changes Vector to Hash table. |
int |
getBeColumn()
Returns if the parameter only accepts a column name as its value. |
java.lang.String |
getBinding()
Returns the parameter bound value. |
int |
getDefaultIndex()
Returns the parameter default index. |
java.lang.String |
getDefaultValue()
Returns the default value of the parameter. |
java.lang.String |
getFormat()
Returns the format of the parameter. |
java.util.Vector |
getLimit()
Returns the limit of the parameter value range. |
java.lang.String[] |
getMultiStrValue()
Returns parameter multiple values. |
java.lang.String |
getName()
Returns the name of the parameter. |
java.lang.String |
getNextLevel()
For cascading parameter, returns the lower level parameter name. |
int |
getOperation()
Returns the operation of the parameter. |
java.lang.String |
getPreviousLevel()
For a cascading parameter, returns the higher level parameter name. |
java.lang.String |
getPrompt()
Returns the prompt message of the parameter. |
java.util.Vector |
getReferedBy()
Returns if the parameter is referred by other parameters. |
int |
getType()
Returns the type of the parameter. |
static int |
getType(java.lang.String sType)
Returns the int value of a data type string. |
java.lang.String |
getTypeName()
Returns the name of the data type of the parameter. |
java.lang.String |
getValue()
Returns the value of the parameter. |
java.util.Vector |
getValueOptions()
Returns the value option for the parameter. |
java.util.Vector |
getValues()
Returns the value of the parameter. |
int |
getWhenOutOfRange()
Returns the processing way when a type-in value is out of range. |
boolean |
isAllowAll()
Returns whether the parameter allows for multiple values to be selected. |
boolean |
isAllowTypeIn()
Returns whether the parameter allows for type-in values directly. If it is true, UI should allow users to type in values directly, regardless of whether the parameter is bound with the column. |
boolean |
isAllSelected()
Returns whether the parameter allows the ALL value to represent all the values of the 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. |
boolean |
isDistinct()
Returns if the parameter is distinct. |
boolean |
isMultipleValue()
Returns whether the parameter allows for multiple values to be selected. |
boolean |
isReferedBy()
Returns if the parameter is referred by other parameters. |
boolean |
isRequired()
Returns if the parameter is required. |
boolean |
isSetAsParameter()
|
static Param |
parseFromParamDescToParam(ParamDesc desc,
java.util.Locale locale)
Parses ParamDesc into the Param object. |
static java.util.Vector[] |
parseParamDescStream(java.io.BufferedReader inStream,
java.util.Hashtable oldParams)
Parses the buffer stream into the Param with the defined parameter properties. |
void |
setValue(java.lang.String value)
Sets the value of the parameter. |
static ParamDesc |
toParamDesc(Param param,
java.util.Locale loc)
Gets ParamDesc object with Param object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getTypeName()
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String getPrompt()
public java.lang.String getDefaultValue()
public int getType()
public java.util.Vector getValueOptions()
public boolean isColumn()
public void setValue(java.lang.String value)
Value
- of the parameter.public static int getType(java.lang.String sType)
public boolean isMultipleValue()
public boolean isAllowAll()
public boolean isCascading()
public java.lang.String getPreviousLevel()
public java.lang.String getNextLevel()
public boolean isSetAsParameter()
public boolean isAllowTypeIn()
public int getWhenOutOfRange()
ParamDesc.ADOPT_DIRECTLY
,
ParamDesc.USE_DEFAULT
,
or ParamDesc.WARN
.ParamDesc
public java.lang.String[] getMultiStrValue()
public boolean isAllSelected()
public static java.util.Vector[] parseParamDescStream(java.io.BufferedReader inStream, java.util.Hashtable oldParams) throws java.io.IOException
inStream
- The parameter input stream.oldParams
- The hastable contains the parameter name and value. If the oldParams is not null
and the parameter name exists at the stream, the parsed parameter value will be affected by
oldParams.
java.io.IOException
public java.util.Vector getLimit()
public java.util.Vector getValues()
public java.lang.String getFormat()
public int getOperation()
public int getDefaultIndex()
public java.lang.String getBinding()
public int getBeColumn()
public boolean isDistinct()
public boolean isRequired()
public boolean isReferedBy()
public java.util.Vector getReferedBy()
public static ParamDesc toParamDesc(Param param, java.util.Locale loc)
param
- The Param object.loc
- The locale of parameter.
ParamDesc
,
Param
public static Param parseFromParamDescToParam(ParamDesc desc, java.util.Locale locale)
desc
- The ParamDesc object.locale
- The local of the parameter.
ParamDesc
,
Param
public static java.util.Hashtable changedVectorToHash(java.util.Vector v)
v
-
public static java.util.Vector changedHashToVector(java.util.Hashtable hash)
hash
- The key is ParamDesc.name; the value is ParamDesc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |