public class ReportItem extends java.lang.Object implements IReportItem, ICompatibleReportItem, java.lang.Cloneable
| 构造器和说明 |
|---|
ReportItem() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Iterator |
availableBindings()
Gets the iterator of all available bindings.
|
boolean |
canExport()
Indicates whether the report item can be allowed to export to library.
|
CompatibilityStatus |
checkCompatibility()
Checks the parser compatibilities for this report item and return the
status.
|
void |
checkProperty(java.lang.String propName,
java.lang.Object value)
Checks the value of a property prior to setting it.
|
IReportItem |
copy()
Creates deep copy of the IReportItem and return the new element.
|
void |
deserialize(java.lang.String propName,
java.io.ByteArrayInputStream data)
Deserializes the model.
|
IPropertyDefinition[] |
getMethods()
Returns the method definition list of extension elements.
|
IMethodInfo[] |
getMethods(java.lang.String methodName)
Returns the method info list of extension elements.
|
java.util.List |
getPredefinedStyles()
Gets list of the predefined styles.
|
java.lang.Object |
getProperty(java.lang.String propName)
Returns the value of a public property.
|
IPropertyDefinition[] |
getPropertyDefinitions()
Gets the list of all the property definitions that the extended element
model has.
|
StyleHandle[] |
getReferencedStyle() |
java.util.List |
getRowExpressions()
Returns a list containing the possible JavaScript expressions.
|
IPropertyDefinition |
getScriptPropertyDefinition()
Gets the script property definition of this report item.
|
IReportItem |
getSimpleElement()
Returns the interface for script operations.
|
void |
handleCompatibilityIssue()
handle the compatibility issue
|
boolean |
hasFixedSize()
Indicates whether the report item has fixed size.
|
boolean |
refreshPropertyDefinition()
Justifies whether the property list of the extended element is changed.
|
java.io.ByteArrayOutputStream |
serialize(java.lang.String propName)
Serializes the model given the property name.
|
void |
setHandle(ExtendedItemHandle handle)
Sets the handle of this report item.
|
void |
setProperty(java.lang.String propName,
java.lang.Object value)
Sets the value of a property.
|
void |
updateRowExpressions(java.util.Map newExpressions)
Updates existed expression with the given expressions.
|
void |
updateStyleReference(java.util.Map<java.lang.String,java.lang.String> styleMap) |
java.util.List<SemanticException> |
validate()
Performs a semantic check on the report item.
|
public java.io.ByteArrayOutputStream serialize(java.lang.String propName)
IReportItemXMLPropertyType. The
serialized data must be Unicode text. XML is preferred, but any text
format is legal. If the model is binary, then one solution is to
serialize the model as Base64 encoded data.serialize 在接口中 IReportItempropName - the model property name to serializepublic void deserialize(java.lang.String propName,
java.io.ByteArrayInputStream data)
throws ExtendedElementException
IReportItemXMLPropertyType. The data
provided will be that created by the serialize method. A
well-written extension will handle two exceptional cases. First, it will
handle all previous versions of this same extension. Second, it will
handle erroneous input, perhaps created when a human editied the saved
state by hand.deserialize 在接口中 IReportItempropName - the model property name to deserializedata - a byte array stream containing the serialized dataExtendedElementException - if the serialized model is invalidpublic IPropertyDefinition[] getPropertyDefinitions()
IReportItemgetPropertyDefinitions 在接口中 IReportItempublic java.lang.Object getProperty(java.lang.String propName)
IReportItemIReportItemFactory class defines a
property, then this method must accept that property name.
Property names can be separated with dots and can include array indexes. For example: barColors[1].pattern. This will occur if a property is defined as a list or structure.
If the report element support styles or inheritance, then a return value
of null means that the value should be inherited. BIRT will
use its normal inheritance mechanisms to locate the value. If the
extended element does not support inheritance or styles, then this method
must return the value of each property, including defaults if the value
has not yet been set.
getProperty 在接口中 IReportItempropName - the name of the property to getpublic void checkProperty(java.lang.String propName,
java.lang.Object value)
throws ExtendedElementException
IReportItemsetProperty
method for details on the process for setting a property value.checkProperty 在接口中 IReportItempropName - the name of the property to checkvalue - the new property value as one of the supported BIRT typesExtendedElementException - if the property value is invalid or the property name is
invalidIReportItem.getProperty(java.lang.String)public void setProperty(java.lang.String propName,
java.lang.Object value)
IReportItemcheckProperty method, and
will have created a command to set the property.
If this element supports styles or inheritance, then the value can be
null, which means to clear the property value so that it
will inherit from the base element or the style.
setProperty 在接口中 IReportItempropName - the name of the property to setvalue - the new property value as one of the supported BIRT typesIReportItem.getProperty(java.lang.String),
IReportItem.checkProperty(java.lang.String, java.lang.Object)public java.util.List<SemanticException> validate()
IReportItemvalidate 在接口中 IReportItempublic IReportItem copy()
IReportItemcopy 在接口中 IReportItempublic boolean refreshPropertyDefinition()
IReportItemrefreshPropertyDefinition 在接口中 IReportItempublic IPropertyDefinition[] getMethods()
IReportItemIElementPropertyDefn.getMethods 在接口中 IReportItempublic IPropertyDefinition getScriptPropertyDefinition()
IReportItemgetScriptPropertyDefinition 在接口中 IReportItempublic IReportItem getSimpleElement()
IReportItemgetSimpleElement 在接口中 IReportItempublic java.util.List getPredefinedStyles()
IReportItem
String
IStyleDeclaration
getPredefinedStyles 在接口中 IReportItempublic IMethodInfo[] getMethods(java.lang.String methodName)
IReportItemIMethodInfo.getMethods 在接口中 IReportItemmethodName - the method namepublic CompatibilityStatus checkCompatibility()
ICompatibleReportItemcheckCompatibility 在接口中 ICompatibleReportItempublic java.util.List getRowExpressions()
ICompatibleReportItemgetRowExpressions 在接口中 ICompatibleReportItempublic void updateRowExpressions(java.util.Map newExpressions)
ICompatibleReportItemnewExpressions are existed expressions, while, the values
are the new expressions to replace existed ones.updateRowExpressions 在接口中 ICompatibleReportItemnewExpressions - a map containing the updated expressions.public void setHandle(ExtendedItemHandle handle)
IReportItemsetHandle 在接口中 IReportItemhandle - extended item handlepublic boolean canExport()
IReportItemcanExport 在接口中 IReportItemtrue if the report item can be allowed to export to
library; false otherwise.public java.util.Iterator availableBindings()
IReportItemavailableBindings 在接口中 IReportItempublic StyleHandle[] getReferencedStyle()
getReferencedStyle 在接口中 IReportItempublic void updateStyleReference(java.util.Map<java.lang.String,java.lang.String> styleMap)
updateStyleReference 在接口中 IReportItempublic void handleCompatibilityIssue()
ICompatibleReportItempublic boolean hasFixedSize()
IReportItemhasFixedSize 在接口中 IReportItemCopyright © 2008 Actuate Corp. All rights reserved.