|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.schedule.ScheduleReport
public class ScheduleReport
This class holds the information about a report which is part of a task.
It contains all properties with which the report is executed.
It is also possible to register a DynamicProperties
class which will create several instances of the report by dynamic report properties
at execution.
| Method Summary | |
|---|---|
void |
addAllProperties(java.util.Properties properties)
Adds all properties passed to the report properties of this report. |
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a report property with a certain value to this report. |
java.lang.String |
getDynamicPropertiesClass()
Returns the name of the DynamicProperties class which is registered
for this report. |
java.lang.String[] |
getErrorMessages()
Returns the errors this report currently has. |
java.util.Properties |
getProperties()
Returns all report properties of this report currently defined. |
int |
getPropertyType(java.lang.String propertyName)
Returns the value type of a report property. |
java.lang.String |
getPropertyValue(java.lang.String name)
Returns the value of a report property of this report. |
java.lang.String |
getScheduleName()
Returns the schedule name of this report. |
boolean |
isDynamic()
Returns if a DynamicProperties class is defined for this report. |
boolean |
isValid()
Returns if this report is valid for execution. |
void |
removeProperty(java.lang.String propertyName)
Removes the given property from the list of report properties of this report. |
void |
setDynamicPropertiesClass(java.lang.String userPropertyName)
Sets the class name of the DynamicProperties class which should
be registered for this report. |
void |
setPropertyType(java.lang.String propertyName,
int propertyType)
This will set a value type for a given report property. |
java.lang.String |
toString()
Returns a string representation of this task with the format scheduleName=<getScheduleName() of this task>. |
| Method Detail |
|---|
public void addProperty(java.lang.String name,
java.lang.String value)
throws ScheduleException
name - The name of the property. Usually this should be one of the
URL parameters of i-net Clear Reports, e.g. prompt0 or the export_fmtvalue - The value of the given property.
ScheduleException - If the name of the property is null
or empty. (SE0032)public java.lang.String getPropertyValue(java.lang.String name)
name - The name of the report property of which the value is requested.
public java.lang.String getDynamicPropertiesClass()
DynamicProperties class which is registered
for this report.
DynamicProperties class or null
if none is defined.public void setDynamicPropertiesClass(java.lang.String userPropertyName)
DynamicProperties class which should
be registered for this report.package.classname(parameter,parameter)com.inet.report.MyDynamic("myString",true,3.1415) boolean, int, double, java.util.Date, java.lang.String.
userPropertyName - The given classname including parameter for a specific Constructor
or null if none should be registered.BaseUtils.getParams(String, String)public boolean isDynamic()
DynamicProperties class is defined for this report.
True if there is a class defined otherwise falsepublic java.lang.String getScheduleName()
public void addAllProperties(java.util.Properties properties)
properties - The properties which should be added to the report
properties of this report. If null is passed then nothing
will be done.public java.util.Properties getProperties()
public void removeProperty(java.lang.String propertyName)
propertyName - The name of the property which should be removed.public boolean isValid()
True if the report is valid and can be executed
otherwise false.public java.lang.String[] getErrorMessages()
isValid()
for details when a report has an error.
0
if the report has no errors.public java.lang.String toString()
toString in class java.lang.Object
public void setPropertyType(java.lang.String propertyName,
int propertyType)
throws ScheduleException
Field.BINARY, Field.BOOLEAN,
Field.CURRENCY, Field.DATE,
Field.DATETIME, Field.NUMBER,
Field.STRING or Field.TIME.
The set property type will be used by the web configuration tool of the
i-net Scheduler only.
propertyName - The name of the report property you want to set the value type for.propertyType - The value type of the report property. (See above for possible values)
ScheduleException - If a property with the given name does not exist. (SE0033)getPropertyType(String),
addProperty(String, String)public int getPropertyType(java.lang.String propertyName)
propertyName - The name of the report property you want to get the value type of.
-1 if no value type has been set for this report property otherwise
one of the values shown in setPropertyType(String, int) is returned.setPropertyType(String, int),
addProperty(String, String)
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||