public abstract class StyleRule
extends org.eclipse.birt.report.model.core.PropertyStructure
DesignChoiceConstants
.DesignChoiceConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IS_DESIGN_TIME_MEMBER
Status that determines whether this structure is used in design time or
not
|
protected java.lang.Boolean |
isDesignTime |
protected java.lang.String |
operator
The comparison operator.
|
static java.lang.String |
OPERATOR_MEMBER
Name of the comparison operator member.
|
static java.lang.String |
TEST_EXPR_MEMBER
The expression for this rule.
|
protected Expression |
testExpression
the test expression for this highlight rule.
|
protected java.util.List |
value1
Expression for the first operand.
|
static java.lang.String |
VALUE1_MEMBER
Name of the property that gives the expression for the first operator
operand.
|
protected Expression |
value2
Expression for the second operand.
|
static java.lang.String |
VALUE2_MEMBER
Name of the property that gives the expression for the second operator
operand.
|
Constructor and Description |
---|
StyleRule()
Default constructor.
|
StyleRule(java.lang.String op,
java.lang.String v1,
java.lang.String v2,
java.lang.String testExpr)
Constructs the style rule with an operator and its operands.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
Returns the value of a structure property represented as a member
variable.
|
java.lang.String |
getOperator()
Returns the operator.
|
java.lang.String |
getTestExpression()
gets the test expression value of this rule.
|
java.lang.String |
getValue1()
Returns the expression for the first operand.
|
java.util.List |
getValue1ExpressionList()
Gets the value1 expression list.
|
java.util.List |
getValue1List()
Deprecated.
|
java.lang.String |
getValue2()
Returns the expression for the second operand.
|
boolean |
isDesignTime()
Justifies whether the structure is generated in design time or not.
|
void |
setDesignTime(boolean isDesignTime)
Sets the design time status for this structure.
|
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
Sets the value of of a structure property represented as a member
variable.
|
void |
setOperator(java.lang.String operator)
Sets the operator.
|
void |
setTestExpression(java.lang.String expression)
sets the test expression for the rule.
|
void |
setValue1(java.util.List value1List)
Sets the value 1 expression.
|
void |
setValue1(java.lang.String value)
Set expression for the first operand.
|
void |
setValue2(java.lang.String value)
Set expression for the second operand.
|
clone, getLocalProperty, getLocalProperty, setProperty
checkStringMember, copy, equals, getCompatibleValue, getContext, getDefn, getElement, getExpressionProperty, getHandle, getHandle, getMemberDefn, getObjectDefn, getProperty, getProperty, getReferencableProperty, getStringProperty, handle, isReferencable, setContext, setExpressionProperty, setProperty, setupContext, updateReference, validate
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStructName
public static final java.lang.String OPERATOR_MEMBER
public static final java.lang.String VALUE1_MEMBER
public static final java.lang.String VALUE2_MEMBER
public static final java.lang.String TEST_EXPR_MEMBER
public static final java.lang.String IS_DESIGN_TIME_MEMBER
protected java.lang.String operator
MAP_OPERATOR_EQ
protected java.util.List value1
protected Expression value2
protected Expression testExpression
protected java.lang.Boolean isDesignTime
public StyleRule()
public StyleRule(java.lang.String op, java.lang.String v1, java.lang.String v2, java.lang.String testExpr)
op
- the choice name for the operandv1
- expression for the first operandv2
- expression for the second operandtestExpr
- the expression to checkprotected java.lang.Object getIntrinsicProperty(java.lang.String propName)
org.eclipse.birt.report.model.core.Structure
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.PropertyStructure
propName
- name of the propertyprotected void setIntrinsicProperty(java.lang.String propName, java.lang.Object value)
org.eclipse.birt.report.model.core.Structure
setIntrinsicProperty
in class org.eclipse.birt.report.model.core.PropertyStructure
propName
- the name of the property to setvalue
- the property valuepublic java.lang.String getOperator()
DesignChoiceConstants
,
and they are:
public void setOperator(java.lang.String operator)
DesignChoiceConstants
,
and they are:
operator
- the operator to setpublic java.lang.String getValue1()
public java.util.List getValue1List()
getValue1ExpressionList()
public java.util.List getValue1ExpressionList()
Expression
object.public void setValue1(java.lang.String value)
value
- the first operand expression.public void setValue1(java.util.List value1List)
value1List
- the value 1 expression list to setpublic java.lang.String getValue2()
public void setValue2(java.lang.String value)
value
- the second operand expression.public void setTestExpression(java.lang.String expression)
expression
- the expression valuepublic java.lang.String getTestExpression()
public boolean isDesignTime()
IStructure
isDesignTime
in interface IStructure
isDesignTime
in class org.eclipse.birt.report.model.core.Structure
public void setDesignTime(boolean isDesignTime)
isDesignTime
- Copyright © 2008 Actuate Corp. All rights reserved.