Class SimpleElementFactory
- java.lang.Object
-
- org.eclipse.birt.report.model.api.impl.SimpleElementFactory
-
- All Implemented Interfaces:
ISimpleElementFactory
public class SimpleElementFactory extends java.lang.Object implements ISimpleElementFactory
The factory class to create scriptable objects.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.birt.report.model.api.simpleapi.ISimpleElementFactory
MULTI_ROW_ITEM, SIMPLE_ROW_ITEM
-
-
Constructor Summary
Constructors Constructor Description SimpleElementFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IActioncreateAction()Create the action structure.IActioncreateAction(ActionHandle action, ReportItemHandle handle)Creates the action structure.IDataBindingcreateDataBinding()CreateIDataBindingIDataBindingcreateDataBinding(ComputedColumnHandle columnHandle)Creates the data biinding structure.IDataBindingcreateDataBinding(ComputedColumn column)Creates the data biinding structure.IDataSetcreateDataSet(DataSetHandle handle)Creates the IDataSet instance.IDataSourcecreateDataSource(DataSourceHandle handle)Creates the IDataSource instance.IExpressioncreateExpression()CreatesIExpressioninstance.IFilterConditioncreateFilterCondition()CreateIFilterConditionIFilterConditioncreateFilterCondition(FilterCondition condition)Creates the IFilterCondition instance.IFilterConditioncreateFilterCondition(FilterConditionHandle handle)Creates the IFilterCondition instance.IFilterConditionElementcreateFilterConditionElement(FilterConditionElementHandle handle)CreatesIFilterConditionElementinstance.IHideRulecreateHideRule()CreateIHideRuleinstanceIHideRulecreateHideRule(HideRule rule)CreateIHideRuleinstanceIHideRulecreateHideRule(HideRuleHandle handle)CreateIHideRuleinstanceIHighlightRulecreateHighlightRule()CreateIHighlightRuleinstanceIHighlightRulecreateHighlightRule(HighlightRule highlightRule)CreateIHighlightRuleinstanceIHighlightRulecreateHighlightRule(HighlightRuleHandle handle)CreateIHighlightRuleinstanceIResultSetColumncreateResultSetColumn()Creates the IResultSetColumn instance.IResultSetColumncreateResultSetColumn(ResultSetColumnHandle columnHandle)Creates the IResultSetColumn instance.ISortConditioncreateSortCondition()CreateISortConditionISortConditioncreateSortCondition(SortKey sort)Creates the sort structure.ISortConditioncreateSortCondition(SortKeyHandle sortHandle)Creates the sort structure.ISortElementcreateSortElement(SortElementHandle handle)CreateISortElementinstance.IStylecreateStyle(StyleHandle style)CreateIStyleinstanceIDesignElementgetElement(DesignElementHandle handle)Creates the IDesignElement instance.IReportItemwrapExtensionElement(ExtendedItemHandle handle, int type)Creates the scriptable object for the corresponding element handles.
-
-
-
Method Detail
-
wrapExtensionElement
public IReportItem wrapExtensionElement(ExtendedItemHandle handle, int type)
Description copied from interface:ISimpleElementFactoryCreates the scriptable object for the corresponding element handles.- Specified by:
wrapExtensionElementin interfaceISimpleElementFactory- Parameters:
handle- the element handletype- the expected data row type. Can beMULTI_ROW_ITEMorEMPTY_ROW_ITEM- Returns:
- the scriptable object
-
createHideRule
public IHideRule createHideRule()
CreateIHideRuleinstance- Specified by:
createHideRulein interfaceISimpleElementFactory- Returns:
- IHideRule
-
createHideRule
public IHideRule createHideRule(HideRule rule)
Description copied from interface:ISimpleElementFactoryCreateIHideRuleinstance- Specified by:
createHideRulein interfaceISimpleElementFactory- Parameters:
rule- the structure to create corresponding IHideRule instance.- Returns:
- IHideRule
-
createHideRule
public IHideRule createHideRule(HideRuleHandle handle)
Description copied from interface:ISimpleElementFactoryCreateIHideRuleinstance- Specified by:
createHideRulein interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IHideRule instance.- Returns:
- IHideRule
-
createFilterCondition
public IFilterCondition createFilterCondition()
CreateIFilterCondition- Specified by:
createFilterConditionin interfaceISimpleElementFactory- Returns:
- instance
-
createFilterCondition
public IFilterCondition createFilterCondition(FilterCondition condition)
Description copied from interface:ISimpleElementFactoryCreates the IFilterCondition instance.- Specified by:
createFilterConditionin interfaceISimpleElementFactory- Parameters:
condition- the structure to create corresponding IFilterCondition instance.- Returns:
- the IFilterCondition instance
-
createFilterCondition
public IFilterCondition createFilterCondition(FilterConditionHandle handle)
Description copied from interface:ISimpleElementFactoryCreates the IFilterCondition instance.- Specified by:
createFilterConditionin interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IFilterCondition instance.- Returns:
- the IFilterCondition instance
-
createDataBinding
public IDataBinding createDataBinding()
CreateIDataBinding- Specified by:
createDataBindingin interfaceISimpleElementFactory- Returns:
- instance
-
createDataBinding
public IDataBinding createDataBinding(ComputedColumnHandle columnHandle)
Description copied from interface:ISimpleElementFactoryCreates the data biinding structure.- Specified by:
createDataBindingin interfaceISimpleElementFactory- Parameters:
columnHandle- the computed column handle- Returns:
- the data binding
-
createDataBinding
public IDataBinding createDataBinding(ComputedColumn column)
Description copied from interface:ISimpleElementFactoryCreates the data biinding structure.- Specified by:
createDataBindingin interfaceISimpleElementFactory- Parameters:
column- the computed column- Returns:
- the data binding
-
createSortCondition
public ISortCondition createSortCondition()
CreateISortCondition- Specified by:
createSortConditionin interfaceISimpleElementFactory- Returns:
- instance
-
createSortCondition
public ISortCondition createSortCondition(SortKey sort)
Description copied from interface:ISimpleElementFactoryCreates the sort structure.- Specified by:
createSortConditionin interfaceISimpleElementFactory- Parameters:
sort- the structure to create corresponding ISortCondition instance.- Returns:
- the sort
-
createSortCondition
public ISortCondition createSortCondition(SortKeyHandle sortHandle)
Description copied from interface:ISimpleElementFactoryCreates the sort structure.- Specified by:
createSortConditionin interfaceISimpleElementFactory- Returns:
- the sort
-
createAction
public IAction createAction(ActionHandle action, ReportItemHandle handle)
Description copied from interface:ISimpleElementFactoryCreates the action structure.- Specified by:
createActionin interfaceISimpleElementFactory- Parameters:
action- the structure handlehandle- the element handle that holds the action structure- Returns:
- the action
-
createAction
public IAction createAction()
Description copied from interface:ISimpleElementFactoryCreate the action structure.- Specified by:
createActionin interfaceISimpleElementFactory- Returns:
- the action.
-
getElement
public IDesignElement getElement(DesignElementHandle handle)
Description copied from interface:ISimpleElementFactoryCreates the IDesignElement instance.- Specified by:
getElementin interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IDesignElement instance.- Returns:
- the IDesignElement instance
-
createDataSet
public IDataSet createDataSet(DataSetHandle handle)
Description copied from interface:ISimpleElementFactoryCreates the IDataSet instance.- Specified by:
createDataSetin interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IDataSet instance.- Returns:
- the IDataSet instance
-
createResultSetColumn
public IResultSetColumn createResultSetColumn(ResultSetColumnHandle columnHandle)
Description copied from interface:ISimpleElementFactoryCreates the IResultSetColumn instance.- Specified by:
createResultSetColumnin interfaceISimpleElementFactory- Returns:
- the IResultSetColumn instance
-
createResultSetColumn
public IResultSetColumn createResultSetColumn()
Description copied from interface:ISimpleElementFactoryCreates the IResultSetColumn instance.- Specified by:
createResultSetColumnin interfaceISimpleElementFactory- Returns:
- the IResultSetColumn instance
-
createDataSource
public IDataSource createDataSource(DataSourceHandle handle)
Description copied from interface:ISimpleElementFactoryCreates the IDataSource instance.- Specified by:
createDataSourcein interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IDataSource instance.- Returns:
- the IDataSource instance
-
createHighlightRule
public IHighlightRule createHighlightRule()
Description copied from interface:ISimpleElementFactoryCreateIHighlightRuleinstance- Specified by:
createHighlightRulein interfaceISimpleElementFactory- Returns:
- IHighlightRule
-
createHighlightRule
public IHighlightRule createHighlightRule(HighlightRule highlightRule)
Description copied from interface:ISimpleElementFactoryCreateIHighlightRuleinstance- Specified by:
createHighlightRulein interfaceISimpleElementFactory- Parameters:
highlightRule- the structure to create corresponding IHighlightRule instance.- Returns:
- IHighlightRule
-
createHighlightRule
public IHighlightRule createHighlightRule(HighlightRuleHandle handle)
Description copied from interface:ISimpleElementFactoryCreateIHighlightRuleinstance- Specified by:
createHighlightRulein interfaceISimpleElementFactory- Parameters:
handle- the element handle to create corresponding IHighlightRule instance.- Returns:
- IHighlightRule
-
createStyle
public IStyle createStyle(StyleHandle style)
Description copied from interface:ISimpleElementFactoryCreateIStyleinstance- Specified by:
createStylein interfaceISimpleElementFactory- Returns:
- IStyle
-
createFilterConditionElement
public IFilterConditionElement createFilterConditionElement(FilterConditionElementHandle handle)
Description copied from interface:ISimpleElementFactoryCreatesIFilterConditionElementinstance.- Specified by:
createFilterConditionElementin interfaceISimpleElementFactory- Parameters:
handle- the filterConditionElement handle to create corresponding IFilterConditionElement instance.- Returns:
- IFilterConditionElement
-
createSortElement
public ISortElement createSortElement(SortElementHandle handle)
Description copied from interface:ISimpleElementFactoryCreateISortElementinstance.- Specified by:
createSortElementin interfaceISimpleElementFactory- Parameters:
handle- the handle to create corresponding ISortElement instance.- Returns:
- ISortElement
-
createExpression
public IExpression createExpression()
Description copied from interface:ISimpleElementFactoryCreatesIExpressioninstance.- Specified by:
createExpressionin interfaceISimpleElementFactory- Returns:
- IExpression
-
-