|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.DesignElementHandle
org.eclipse.birt.report.model.api.ContentElementHandle
org.eclipse.birt.report.model.api.FilterConditionElementHandle
public class FilterConditionElementHandle
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.api.ContentElementHandle |
---|
element |
Fields inherited from class org.eclipse.birt.report.model.api.DesignElementHandle |
---|
module |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IFilterConditionElementModel |
---|
EXPR_PROP, FILTER_TARGET_PROP, IS_OPTIONAL_PROP, MEMBER_PROP, OPERATOR_PROP, VALUE1_PROP, VALUE2_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, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP |
Constructor Summary | |
---|---|
FilterConditionElementHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Constructs a filter condition handle with the given design and the element. |
Method Summary | |
---|---|
java.lang.String |
getExpr()
Returns the filter expression. |
java.lang.String |
getFilterTarget()
Returns the filter target. |
MemberValueHandle |
getMember()
Gets the member value handle of this filter condition element if it sets. |
java.lang.String |
getOperator()
Returns the operator of this filter condition. |
java.lang.String |
getValue1()
Returns the value 1 expression of this filter condition. |
java.util.List |
getValue1List()
Gets the value1 expression list of this filter condition. |
java.lang.String |
getValue2()
Returns the value 2 expression of this filter condition. |
boolean |
isOptional()
Determines whether this filte rcondition is optional or not. |
void |
setExpr(java.lang.String filterExpr)
Sets the filter expression. |
void |
setFilterTarget(java.lang.String filterTarget)
Sets the filter target. |
void |
setOperator(java.lang.String operator)
Sets the operator of this filter condition. |
void |
setOptional(boolean isOptional)
Sets the optional status for this filter condition. |
void |
setValue1(java.util.List value1List)
Sets the value 1 expression list of this filter condition. |
void |
setValue1(java.lang.String value1Expr)
Sets the value 1 expression of this filter condition. |
void |
setValue2(java.lang.String value2Expr)
Sets the value 2 expression of this filter condition. |
Methods inherited from class org.eclipse.birt.report.model.api.ContentElementHandle |
---|
addListener, addUserPropertyDefn, canTransformToTemplate, clientsIterator, createTemplateElement, derivedIterator, getElement, getEventHandlerClass, getExtends, getName, getPrivateStyle, getQualifiedName, getUserProperties, getUserPropertyDefnHandle, isTemplateParameterValue, localize, removeListener, revertToReportItem, revertToTemplate, setEventHandlerClass, setExtends, setExtendsName, setName, setStyle, setStyleName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterConditionElementHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
module
- the moduleelement
- the model representation of the elementMethod Detail |
---|
public java.lang.String getExpr()
public void setExpr(java.lang.String filterExpr) throws SemanticException
filterExpr
- the filter expression to set
SemanticException
- value required exceptionpublic java.lang.String getOperator()
DesignChoiceConstants
,
and they are:
FILTER_OPERATOR_EQ
FILTER_OPERATOR_NE
FILTER_OPERATOR_LT
FILTER_OPERATOR_LE
FILTER_OPERATOR_GE
FILTER_OPERATOR_GT
FILTER_OPERATOR_BETWEEN
FILTER_OPERATOR_NOT_BETWEEN
FILTER_OPERATOR_NULL
FILTER_OPERATOR_NOT_NULL
FILTER_OPERATOR_TRUE
FILTER_OPERATOR_FALSE
FILTER_OPERATOR_LIKE
FILTER_OPERATOR_TOP_N
FILTER_OPERATOR_BOTTOM_N
FILTER_OPERATOR_TOP_PERCENT
FILTER_OPERATOR_BOTTOM_PERCENT
FILTER_OPERATOR_ANY
public void setOperator(java.lang.String operator) throws SemanticException
DesignChoiceConstants
,
and they are:
FILTER_OPERATOR_EQ
FILTER_OPERATOR_NE
FILTER_OPERATOR_LT
FILTER_OPERATOR_LE
FILTER_OPERATOR_GE
FILTER_OPERATOR_GT
FILTER_OPERATOR_BETWEEN
FILTER_OPERATOR_NOT_BETWEEN
FILTER_OPERATOR_NULL
FILTER_OPERATOR_NOT_NULL
FILTER_OPERATOR_TRUE
FILTER_OPERATOR_FALSE
FILTER_OPERATOR_LIKE
FILTER_OPERATOR_TOP_N
FILTER_OPERATOR_BOTTOM_N
FILTER_OPERATOR_TOP_PERCENT
FILTER_OPERATOR_BOTTOM_PERCENT
FILTER_OPERATOR_ANY
operator
- the operator to set
SemanticException
- if operator is not in the choice list.public java.lang.String getValue1()
public java.util.List getValue1List()
public void setValue1(java.lang.String value1Expr) throws SemanticException
value1Expr
- the value 1 expression to set
SemanticException
public void setValue1(java.util.List value1List) throws SemanticException
value1List
- the value 1 expression list to set
SemanticException
- if the instance in the list is not validpublic java.lang.String getValue2()
public void setValue2(java.lang.String value2Expr) throws SemanticException
value2Expr
- the value 2 expression to set
SemanticException
public java.lang.String getFilterTarget()
DesignChoiceConstants
,
and they are:
FILTER_TARGET_DATA_SET
FILTER_TARGET_RESULT_SET
public void setFilterTarget(java.lang.String filterTarget) throws SemanticException
DesignChoiceConstants
,
and they are:
FILTER_TARGET_DATA_SET
FILTER_TARGET_RESULT_SET
filterTarget
- the filter target to set
SemanticException
- if the value is not one of the above.public MemberValueHandle getMember()
public boolean isOptional()
public void setOptional(boolean isOptional) throws SemanticException
isOptional
- true if this filter is optional, otherwise false
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |