public abstract class ParamList
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ParamList() |
Modifier and Type | Method and Description |
---|---|
void |
addParamValue(ParamValue paramValue)
Add saved parameter value object.
|
java.lang.String |
get(java.lang.String attributeName)
Get other properties of current report or sheet
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get other properties of current report or sheet.
|
java.lang.String |
getName()
Get the name of saved parameter value list
|
ParamValue |
getParamValue(java.lang.String paramName)
Get parameter value object by specified parameter name.
|
java.util.Map<java.lang.String,ParamValue> |
getParamValueMap()
this is a map of above paramValues prop.
|
java.util.List<ParamValue> |
getParamValues()
Get saved parameter values which are corresponding with <para>(deprecated since V11.1Update1) or <Param> nodes.
|
boolean |
isParamValuesEquals(java.util.List<ParamValue> thatParamValues)
Check whether this parameter values equals with that parameter values specified by thatParamValues
|
void |
set(java.lang.String attributeName,
java.lang.String attributeValue)
Set other properties of current report or sheet
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> properties)
Get other properties of current report or sheet.
|
void |
setName(java.lang.String name)
Set the name of saved parameter value list
|
void |
setParamValues(java.util.List<ParamValue> paramValues)
Set saved parameter values which are corresponding with <para>(deprecated since V11.1Update1) or <Param> nodes.
|
int |
sizeOfParamValues()
evaluate size of parameter values.
|
java.util.List<ParamValue> |
sort(java.lang.String currentParamName,
java.lang.String[] sortedParamNames)
Sort ParamValue list for specified parameter, used to build drop down list in parameter UI.
|
public java.util.List<ParamValue> getParamValues()
public void setParamValues(java.util.List<ParamValue> paramValues)
paramValues
- public void addParamValue(ParamValue paramValue)
The parameter value will be save to <Param> node in XML file.
paramValue
- Saved parameter value object.public java.util.Map<java.lang.String,ParamValue> getParamValueMap()
So, this map will not be effort after calling getParamValuesMap firstly if paramValues changed.
public int sizeOfParamValues()
public ParamValue getParamValue(java.lang.String paramName)
paramName
- specified parameter namepublic java.lang.String getName()
For report level parameter value list:
For sheet level parameter value list:
public void setName(java.lang.String name)
For report level parameter value list:
For sheet level parameter value list:
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
They are corresponding with other attributes of <ReportParamList> or <SheetParamList> node
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> properties)
They are corresponding with other attributes of <ReportParamList> or <SheetParamList> node and will be saved into XML file.
properties
- public java.lang.String get(java.lang.String attributeName)
attributeName will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as: "locale" etc.
return value will be attribute value of XML node(<ReportParamList> or <SheetParamList>), such as: locale = "en_US"
such as: <<ReportParamList locale="en_US">
attributeName
- attribute name will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as: "locale" etc.public void set(java.lang.String attributeName, java.lang.String attributeValue)
attributeName will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as "locale" etc.
attributeValue will be regard as attribute value of XML node(<ReportParamList> or <SheetParamList>), such as locale is "en_US"
such as: <ReportParamList locale="en_US">
attributeName
- attribute name will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as "locale" etc.attributeValue
- attribute value will be regard as attribute value of XML node(<ReportParamList> or <SheetParamList>), such as locale is "en_US"public java.util.List<ParamValue> sort(java.lang.String currentParamName, java.lang.String[] sortedParamNames)
The parameter specified currentParamName should be show in first column, others will be order by sortedParamNames.
currentParamName
- the name of current parameter when building combobox UI.sortedParamNames
- the sorted parameter names of the current running report, contains current parameter name.public boolean isParamValuesEquals(java.util.List<ParamValue> thatParamValues)
thatParamValues
- that parameter values specified by thatParamValues