|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibi.broker.api.data.schedule.AmperParameter
public class AmperParameter
AmperParameter is used to specify, discover, and retrieve parameter names and values located within a FOCUS procedure. This class is only thrown by the methodAmperParameter[] getAmperParameterList (Task task)
in theScheduleManager
class. The getAmperParameterList() method accepts a Task object which is used as a reference when the AmperParameter class is instantiated.getAmperParameterList()
will return an array of AmperParameter objects, with each member of the array representing a single parameter from the task that was passed as a reference. In ReportCaster a task represents one report within a ReportCaster scheduled distribution. A ReportCaster distribution can have multiple tasks, of which there are five types: WF_Procedure, Standard Report, My Report, URL, and File. AmperParameter is designed to work only with Standard Report and My Report (i.e.) within Managed Reporting). While it is true that WebFocus Server procedures are also FOCUS procedures, these are not supported in this release. Passing an invalid task to getAmperParameterList() will result in an error. Each AmperParameter object returned fromgetAmperParameterList()
represents an Amper variable declared within the FOCUS procedure associated with the task. The value of the parameters that are abstracted by the AmperParameter will be resolved at run time and will come from one of two places:The following example illustrates the use of AmperParameter. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Copyright (c) 2004 Information Builders, Inc. All Rights Reserved. + + + + Information Builders offers sample API programs as a heuristic device. + + They are not intended, as is, for production use. Licensed users are + + welcome to alter and extend these samples and deploy them in other + + environments, or alternate configurations, as they see fit. + + Information Builders will support the documented functionality of + + its API classes and methods. However, Information Builders is not + + responsible for functionality or behavior of products built with + + its API unless the documented behavior of its discrete classes and + + methods is different than the actual results. + + + + Redistributions of IBI source code and documentation must be within + + the scope of the Information Builders Software License Agreement. + + + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- The Advanced Option within the Tasks section of ReportCaster, which allows you to add parameter values to the report associated with a task.
- From parameters defined within the context of a FOCUS procedure.
ScheduleManager manager; //STANDARD TASK // -DEFAULT &CNTR=FRANCE // TABLE FILE CAR // PRINT CAR WHERE // COUNTRY EQ '&CNTR.(ENGLAND,FRANCE).' // END TaskStandardReport task = new TaskStandardReport(); task.setDescription("task"); task.setPassword("test"); task.setProcedureName("app/car.fex"); task.setUserName("test"); task.setServerName("EDASERVE"); task.setDomainHREF("untitled/untitled.htm"); task.setFolderHREF("#gr1iedjoow9e"); AmperParameter[] amperParameterList = manager.getAmperParameterList(task); AmperParameter amperParameter = amperParameterList[0]; String defaultValue = amperParameter.getDefaultValue(); // RESULT = "FRANCE" String parameterName = amperParameter.getParameterName(); // RESULT = "CNTR" OptionValue[] optionValueList = amperParameter.getOptionValueList(); OptionValue optionValue_0 = optionValueList[0]; String optionValue_0.getDescription(); // RESULT = "FRANCE" String optionName_0.getName(); // RESULT = "FRANCE" OptionValue optionValue_1 = optionValueList[1]; String optionValue_1.getDescription(); // RESULT = "ENGLAND" String optionName_1.getName(); // RESULT = "ENGLAND"
Constructor Summary | |
---|---|
AmperParameter()
|
Method Summary | |
---|---|
java.lang.String |
getDefaultValue()
getDefaultValue() obtains the default value that has been assigned to the parameter defined within the FOCUS procedure. |
java.lang.String |
getFormat()
|
java.lang.String |
getMaximum()
|
java.lang.String |
getMinimum()
|
java.lang.String |
getOperation()
|
OptionValue[] |
getOptionValueList()
Obtains an array of values, which represent the range of possible options that are valid for a particular instance of AmperParameter. |
java.lang.String |
getParameterDescription()
|
java.lang.String |
getParameterName()
Returns the name of the parameter associated with an instance of AmperParameter. |
boolean |
isMulti()
Returns value of isMulti property. |
java.lang.String |
nameToString()
|
void |
setDefaultValue(java.lang.String defaultValue)
getDefaultValue() assigns the default value that has been assigned to the parameter defined within the FOCUS procedure. |
void |
setFormat(java.lang.String format)
|
void |
setMaximum(java.lang.String maximum)
|
void |
setMinimum(java.lang.String minimum)
|
void |
setMulti(boolean b)
Sets value of isMulti property. |
void |
setOperation(java.lang.String operation)
|
void |
setOptionValueList(OptionValue[] optionValueList)
Populates an array representing the range of valid options for a given parameter as defined within a FOCUS procedure. |
void |
setParameterDescription(java.lang.String parameterDescription)
|
void |
setParameterName(java.lang.String parameterName)
Assigns a name of the parameter associated with an instance of AmperParameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AmperParameter()
Method Detail |
---|
public java.lang.String getDefaultValue()
The defined parameter in this case, CNTR, represents country. The default country is then set to be FRANCE, and thus the method returns this value. The maximum length of the defaultValue argument is 255 characters.// STANDARD TASK // -DEFAULT &CNTR=FRANCE // TABLE FILE CAR // PRINT CAR WHERE // COUNTRY EQ '&CNTR.(ENGLAND,FRANCE).' // END
defaultValue
.setDefaultValue(java.lang.String)
public void setDefaultValue(java.lang.String defaultValue)
// STANDARD TASK
// -DEFAULT &CNTR=FRANCE
// TABLE FILE CAR
// PRINT CAR WHERE
// COUNTRY EQ '&CNTR.(ENGLAND,FRANCE).'
// END
The defined parameter in this case, CNTR, represents country. The default county is then set to be FRANCE, and the method returns this value. The maximum length of the defaultValue argument is 255 characters.
defaultValue
- String representing the default value.getDefaultValue()
public OptionValue[] getOptionValueList()
OptionValue[] optionValueList =
amperParameter.getOptionValueList();
setOptionValueList(ibi.broker.api.data.schedule.OptionValue[])
public void setOptionValueList(OptionValue[] optionValueList)
optionValueList
- an array of valid options for a given
parameter.getOptionValueList()
public java.lang.String getParameterName()
parameterName
argument is 64 characters.
setParameterName(String)
public void setParameterName(java.lang.String parameterName)
parameterName
argument is 64 characters.
parameterName
- a String name for the parameter.getParameterName()
public boolean isMulti()
public void setMulti(boolean b)
b
- isMultipublic java.lang.String getMaximum()
public void setMaximum(java.lang.String maximum)
public java.lang.String getMinimum()
public void setMinimum(java.lang.String minimum)
public java.lang.String getOperation()
public void setOperation(java.lang.String operation)
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
public java.lang.String getParameterDescription()
public void setParameterDescription(java.lang.String parameterDescription)
public java.lang.String nameToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |