org.eclipse.birt.report.model.api
Class DynamicFilterParameterHandle

java.lang.Object
  extended by org.eclipse.birt.report.model.api.DesignElementHandle
      extended by org.eclipse.birt.report.model.api.ReportElementHandle
          extended by org.eclipse.birt.report.model.api.ParameterHandle
              extended by org.eclipse.birt.report.model.api.DynamicFilterParameterHandle
All Implemented Interfaces:
org.eclipse.birt.report.model.elements.interfaces.IAbstractScalarParameterModel, org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel, org.eclipse.birt.report.model.elements.interfaces.IDynamicFilterParameterModel, org.eclipse.birt.report.model.elements.interfaces.IParameterModel

public class DynamicFilterParameterHandle
extends ParameterHandle
implements org.eclipse.birt.report.model.elements.interfaces.IDynamicFilterParameterModel

Represents the dynamic filter parameter types.

See Also:
DynamicFilterParameter

Field Summary
 
Fields inherited from class org.eclipse.birt.report.model.api.ReportElementHandle
element
 
Fields inherited from class org.eclipse.birt.report.model.api.DesignElementHandle
module
 
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDynamicFilterParameterModel
COLUMN_PROP, DSIPLAY_TYPE_PROP, FILTER_OPERATOR_PROP
 
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IAbstractScalarParameterModel
DATASET_NAME_PROP, DEFAULT_VALUE_PROP, IS_REQUIRED_PROP, LABEL_EXPR_PROP, LIST_LIMIT_PROP, SELECTION_LIST_PROP, SORT_BY_COLUMN_PROP, SORT_BY_PROP, SORT_DIRECTION_PROP, VALUE_EXPR_PROP, VALUE_TYPE_PROP
 
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IParameterModel
HELP_TEXT_KEY_PROP, HELP_TEXT_PROP, HIDDEN_PROP, PROMPT_TEXT_ID_PROP, PROMPT_TEXT_PROP, VALIDATE_PROP
 
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NEW_HANDLER_ON_EACH_EVENT_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP
 
Constructor Summary
DynamicFilterParameterHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
          Constructs a handle for the DynamicFilterParameter with the given design and the parameter.
 
Method Summary
 java.util.Iterator choiceIterator()
          Returns the iterator for the static selection list defined on this scalar parameter.
 java.lang.String getColumn()
          Gets the column value.
 java.lang.String getDataSetName()
          Returns the data set name of the dynamic list for this parameter.
 java.util.List getDefaultValueList()
          Returns the default value list of the parameter.
 java.lang.String getDisplayType()
          Gets the display type for this parameter.
 java.util.List<java.lang.String> getFilterOperatorList()
          Returns the list containing filter operator.
 java.lang.String getLabelExpr()
          Returns an expression on the data row from the dynamic list data set that returns the prompt for the choice.
 int getListlimit()
          get the list limited number.
 java.lang.String getSortBy()
          Gets the sort key for parameter values when preview.
 java.lang.String getSortByColumn()
          Gets the expression by which the result sorts.
 java.lang.String getSortDirection()
          Gets the sort order for parameter values when preview.
 java.lang.String getValueExpr()
          Returns an expression on the data row from the dynamic list data set that returns the value for the choice.
 java.lang.String getValueType()
          Returns the parameter type for this scalar parameter.
 boolean isRequired()
          Tests whether the string value of the parameter is required.
 void setColumn(java.lang.String column)
          Sets the column value.
 void setDataSetName(java.lang.String dataSetName)
          Sets the data set name of the dynamic list for this parameter.
 void setDefaultValueList(java.util.List<? extends java.lang.Object> defaultValueList)
          Sets the default value list of the parameter.
 void setDisplayType(java.lang.String displayType)
          Sets the display type for this parameter.
 void setFilterOperator(java.util.List<java.lang.String> filterOperatorList)
          Sets the filter operator.
 void setIsRequired(boolean isRequired)
          Sets the flag that indicates whether the value of the parameter is required.
 void setLabelExpr(java.lang.String labelExpr)
          Sets an expression on the data row from the dynamic list data set that returns the prompt for the choice.
 void setListlimit(int listLimit)
          Set the value for the list limitation number.
 void setSortBy(java.lang.String sortValue)
          Sets the sort key for parameter values when preview.
 void setSortByColumn(java.lang.String sortByColumn)
          Sets the expression by which the result sorts.
 void setSortDirection(java.lang.String direction)
          Sets the sort order for parameter values when preview.
 void setValueExpr(java.lang.String valueExpr)
          Sets an expression on the data row from the dynamic list data set that returns the value for the choice.
 void setValueType(java.lang.String type)
          Sets the parameter value type for this scalar parameter.
 
Methods inherited from class org.eclipse.birt.report.model.api.ParameterHandle
getDisplayPromptText, getHelpText, getHelpTextKey, getPromptText, getPromptTextID, getValidate, isHidden, setHelpText, setHelpTextKey, setHidden, setPromptText, setPromptTextID, setValidate
 
Methods inherited from class org.eclipse.birt.report.model.api.ReportElementHandle
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getElement, getPropertyMask, isValidLayoutForCompoundElement, isValidReferenceForCompoundElement, propertyMaskIterator, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setPropertyMask
 
Methods inherited from class org.eclipse.birt.report.model.api.DesignElementHandle
add, add, addElement, addElement, addListener, addUserPropertyDefn, cachePropertyHandles, canContain, canContain, canContain, canContain, canDrop, canEdit, canTransformToTemplate, clearAllProperties, clearContents, clearProperty, clientsIterator, copy, copyPropertyTo, createTemplateElement, derivedIterator, doSort, drop, drop, drop, dropAndClear, dropAndClear, dropAndClear, dropUserPropertyDefn, findContentSlot, getBooleanProperty, getChoices, getColorProperty, getContainer, getContainerPropertyHandle, getContainerSlotHandle, getContent, getContentCount, getContents, getDefn, getDesign, getDesignHandle, getDimensionProperty, getDisplayLabel, getDisplayLabel, getDisplayProperty, getEffectiveModule, getElementFactory, getElementProperty, getEventHandlerClass, getExpressionProperty, getExtends, getExternalizedValue, getExternalizedValue, getExternalizedValue, getFactoryElementHandle, getFactoryPropertyHandle, getFloatProperty, getFontProperty, getFullName, getHostViewHandle, getID, getIndex, getIntProperty, getListProperty, getListProperty, getMethods, getModule, getModuleHandle, getName, getNumberProperty, getPrivateStyle, getProperty, getPropertyBinding, getPropertyBindings, getPropertyDefn, getPropertyHandle, getPropertyIterator, getQualifiedName, getRoot, getSemanticErrors, getSlot, getStringProperty, getStyle, getUserProperties, getUserPropertyDefnHandle, getXPath, hasLocalProperties, hasSemanticError, initializeSlotHandles, isDirectionRTL, isInTemplateParameter, isTemplateParameterValue, isValid, localize, move, move, moveTo, moveTo, moveTo, moveTo, newHandlerOnEachEvent, paste, paste, paste, paste, removeListener, revertToReportItem, revertToTemplate, semanticCheck, setBooleanProperty, setEncryption, setEventHandlerClass, setExpressionProperty, setExtends, setExtendsElement, setExtendsName, setFloatProperty, setIntProperty, setName, setNewHandlerOnEachEvent, setNumberProperty, setProperties, setProperty, setPropertyBinding, setStringProperty, setStyle, setStyleElement, setStyleName, setValid, shift, showError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicFilterParameterHandle

public DynamicFilterParameterHandle(org.eclipse.birt.report.model.core.Module module,
                                    org.eclipse.birt.report.model.core.DesignElement element)
Constructs a handle for the DynamicFilterParameter with the given design and the parameter.

Parameters:
module - the module
element - the model representation of the element
Method Detail

setDisplayType

public void setDisplayType(java.lang.String displayType)
                    throws SemanticException
Sets the display type for this parameter. The display type controls whether it is a simple filter or advanced filter. Types are defined in DesignChoiceConstants can be one of the followings:

Parameters:
displayType -
Throws:
SemanticException

getDisplayType

public java.lang.String getDisplayType()
Gets the display type for this parameter. The display type controls whether it is a simple filter or advanced filter. Types are defined in DesignChoiceConstants can be one of the followings:

Returns:
the display value.

setColumn

public void setColumn(java.lang.String column)
               throws SemanticException
Sets the column value.

Parameters:
column - the column value.
Throws:
SemanticException

getColumn

public java.lang.String getColumn()
Gets the column value.

Returns:
the column value.

getFilterOperatorList

public java.util.List<java.lang.String> getFilterOperatorList()
Returns the list containing filter operator.

Returns:
the list containing filter operator.

setFilterOperator

public void setFilterOperator(java.util.List<java.lang.String> filterOperatorList)
                       throws SemanticException
Sets the filter operator.

Parameters:
list - the filter operator list.
Throws:
SemanticException

setIsRequired

public void setIsRequired(boolean isRequired)
                   throws SemanticException
Sets the flag that indicates whether the value of the parameter is required. For string type parameter, if the value is required, it cannot be null or empty. For other type parameters, required value cannot be null.

Parameters:
isRequired - true if the value is required. Otherwise false.
Throws:
SemanticException - if the property is locked.

isRequired

public boolean isRequired()
Tests whether the string value of the parameter is required. For string type parameter, if the value is required, it cannot be null or empty. For other type parameters, required value cannot be null.

Returns:
true if the value is required. Otherwise false.

setSortByColumn

public void setSortByColumn(java.lang.String sortByColumn)
                     throws SemanticException
Sets the expression by which the result sorts.

Parameters:
sortByColumn - expression by which the result sorts
Throws:
SemanticException

getSortByColumn

public java.lang.String getSortByColumn()
Gets the expression by which the result sorts.

Returns:
the expression by which the result sorts

setSortDirection

public void setSortDirection(java.lang.String direction)
                      throws SemanticException
Sets the sort order for parameter values when preview. The input argument can be

Parameters:
direction -
Throws:
SemanticException - if the property is locked.

getSortDirection

public java.lang.String getSortDirection()
Gets the sort order for parameter values when preview. The return value can be

Returns:
the sort order for parameter values

setSortBy

public void setSortBy(java.lang.String sortValue)
               throws SemanticException
Sets the sort key for parameter values when preview. The input argument can be

Parameters:
sortValue -
Throws:
SemanticException - if the property is locked.

getSortBy

public java.lang.String getSortBy()
Gets the sort key for parameter values when preview. The return value can be

Returns:
the sort key for parameter values

getValueType

public java.lang.String getValueType()
Returns the parameter type for this scalar parameter. Types are defined in DesignChoiceConstants can be one of the followings:

Returns:
the type for the scalar parameter
See Also:
setValueType(String), DesignChoiceConstants

setValueType

public void setValueType(java.lang.String type)
                  throws SemanticException
Sets the parameter value type for this scalar parameter. Types are defined in DesignChoiceConstants can be one of the followings:

Parameters:
type - the type for the scalar parameter
Throws:
SemanticException - if the input type is not one of above choices.
See Also:
getValueType(), DesignChoiceConstants

setListlimit

public void setListlimit(int listLimit)
                  throws SemanticException
Set the value for the list limitation number. This property is used to limit the parameter display list.

Parameters:
listLimit - The limited number.
Throws:
SemanticException

getListlimit

public int getListlimit()
get the list limited number.

Returns:
the display prompt.

getValueExpr

public java.lang.String getValueExpr()
Returns an expression on the data row from the dynamic list data set that returns the value for the choice.

Returns:
the expression that returns the parameter value for each row in the dynamic list.

setValueExpr

public void setValueExpr(java.lang.String valueExpr)
                  throws SemanticException
Sets an expression on the data row from the dynamic list data set that returns the value for the choice.

Parameters:
valueExpr - the expression that returns the parameter value for each row in the dynamic list.
Throws:
SemanticException - if the property is locked.

getLabelExpr

public java.lang.String getLabelExpr()
Returns an expression on the data row from the dynamic list data set that returns the prompt for the choice.

Returns:
an expression that returns the display value for each row in the dynamic list.

setLabelExpr

public void setLabelExpr(java.lang.String labelExpr)
                  throws SemanticException
Sets an expression on the data row from the dynamic list data set that returns the prompt for the choice.

Parameters:
labelExpr - an expression that returns the display value for each row in the dynamic list.
Throws:
SemanticException - if the property is locked.

setDataSetName

public void setDataSetName(java.lang.String dataSetName)
                    throws SemanticException
Sets the data set name of the dynamic list for this parameter.

Parameters:
dataSetName - the data set name of the dynamic list
Throws:
SemanticException - if the property is locked.

choiceIterator

public java.util.Iterator choiceIterator()
Returns the iterator for the static selection list defined on this scalar parameter. Each element in the iterator is the an instance of SelectionChoiceHandle.

Returns:
the iterator for selection list defined on this scalar parameter.
See Also:
SelectionChoice

getDataSetName

public java.lang.String getDataSetName()
Returns the data set name of the dynamic list for this parameter.

Returns:
the data set name of the dynamic list

setDefaultValueList

public void setDefaultValueList(java.util.List<? extends java.lang.Object> defaultValueList)
                         throws SemanticException
Sets the default value list of the parameter. Each item in the list can be an expression, but cannot reference any other parameters.

Parameters:
defaultValueList - the default value for the parameter
Throws:
SemanticException - if the property is locked.

getDefaultValueList

public java.util.List getDefaultValueList()
Returns the default value list of the parameter. Each item in this list can be an expression, but cannot reference any other parameters.

Returns:
the default value


Copyright © 2008 Actuate Corp. All rights reserved.