|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.core.Structure
org.eclipse.birt.report.model.core.PropertyStructure
org.eclipse.birt.report.model.api.elements.structures.StyleRule
public abstract class StyleRule
Base class for highlight and map rules in the style. Choices for the operand
are defined in DesignChoiceConstants
.
DesignChoiceConstants
Field Summary | |
---|---|
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 java.lang.String |
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 java.lang.String |
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. |
Fields inherited from class org.eclipse.birt.report.model.core.PropertyStructure |
---|
propValues |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
|
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 |
getValue1List()
Gets the value1 expression list. |
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)
|
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. |
Methods inherited from class org.eclipse.birt.report.model.core.PropertyStructure |
---|
clone, getLocalProperty, getLocalProperty, setProperty |
Methods inherited from class org.eclipse.birt.report.model.core.Structure |
---|
copy, equals, getContext, getDefn, getElement, getHandle, getHandle, getListMemberRef, getObjectDefn, getProperty, getProperty, getReferencableProperty, handle, isReferencable, setContext, setProperty, updateReference, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.birt.report.model.api.core.IStructure |
---|
getStructName |
Field Detail |
---|
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 java.lang.String value2
protected java.lang.String testExpression
protected java.lang.Boolean isDesignTime
Constructor Detail |
---|
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 checkMethod Detail |
---|
protected java.lang.Object getIntrinsicProperty(java.lang.String propName)
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.PropertyStructure
protected void setIntrinsicProperty(java.lang.String propName, java.lang.Object value)
setIntrinsicProperty
in class org.eclipse.birt.report.model.core.PropertyStructure
public 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()
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |