public class MapRule extends StyleRule
StyleRule
class, see that class for additional details.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
display
The non-localized text to display when the rule "fires.".
|
static java.lang.String |
DISPLAY_ID_MEMBER
Name of the member variable that represents the message ID for the
localized text to display when the rule "fires.".
|
static java.lang.String |
DISPLAY_MEMBER
Name of the member variable that represents the non-localized text to
display when the rule "fires.".
|
protected java.lang.String |
displayKey
The message ID for the localized text to display when the rule "fires.".
|
static java.lang.String |
STRUCTURE_NAME
Name of this structure within the meta-data dictionary.
|
IS_DESIGN_TIME_MEMBER, isDesignTime, operator, OPERATOR_MEMBER, TEST_EXPR_MEMBER, testExpression, value1, VALUE1_MEMBER, value2, VALUE2_MEMBER
Constructor and Description |
---|
MapRule()
Default constructor.
|
MapRule(java.lang.String op,
java.lang.String v1,
java.lang.String v2,
java.lang.String testExpre,
java.lang.String id,
java.lang.String disp)
Constructs the map rule with an operator and arguments, message id if the
display value is to be localized and display text if the display value is
not to be localized.
|
Modifier and Type | Method and Description |
---|---|
IStructureDefn |
getDefn()
Gets the structure definition by the name of this structure.
|
java.lang.String |
getDisplay()
Returns the non-localized display text.
|
java.lang.String |
getDisplayKey()
Returns the message ID for the text.
|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
Returns the value of a structure property represented as a member
variable.
|
java.lang.String |
getStructName()
Returns the name of the structure definition.
|
StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
Creates the specific handle of this structure.
|
void |
setDisplay(java.lang.String text)
Set the non-localized display text, the text is to be displayed when this
rule applies.
|
void |
setDisplayKey(java.lang.String displayKey)
Set the message ID for the text, the text is to be displayed when this
rule applies.
|
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
Sets the value of of a structure property represented as a member
variable.
|
getOperator, getTestExpression, getValue1, getValue1ExpressionList, getValue1List, getValue2, isDesignTime, setDesignTime, setOperator, setTestExpression, setValue1, setValue1, setValue2
clone, getLocalProperty, getLocalProperty, setProperty
checkStringMember, copy, equals, getCompatibleValue, getContext, getElement, getExpressionProperty, getHandle, getHandle, getMemberDefn, getObjectDefn, getProperty, getProperty, getReferencableProperty, getStringProperty, isReferencable, setContext, setExpressionProperty, setProperty, setupContext, updateReference, validate
public static final java.lang.String DISPLAY_MEMBER
public static final java.lang.String DISPLAY_ID_MEMBER
public static final java.lang.String STRUCTURE_NAME
protected java.lang.String display
protected java.lang.String displayKey
public MapRule()
public MapRule(java.lang.String op, java.lang.String v1, java.lang.String v2, java.lang.String testExpre, java.lang.String id, java.lang.String disp)
op
- operator. One of the internal choice values identified in the
meta-data dictionaryv1
- the comparison value expressions for operators that take one
or two arguments (equals, like, between)v2
- the second comparison value for operators that take two
arguments (between)testExpre
- the expression to checkid
- the message id if the display value is to be localizeddisp
- the display text if the value is not localizedpublic java.lang.String getStructName()
IStructure
protected java.lang.Object getIntrinsicProperty(java.lang.String propName)
org.eclipse.birt.report.model.core.Structure
getIntrinsicProperty
in class StyleRule
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 StyleRule
propName
- the name of the property to setvalue
- the property valuepublic java.lang.String getDisplayKey()
public void setDisplayKey(java.lang.String displayKey)
displayKey
- the message ID for the text.public java.lang.String getDisplay()
public void setDisplay(java.lang.String text)
text
- the non-localized display textpublic IStructureDefn getDefn()
org.eclipse.birt.report.model.core.Structure
getDefn
in interface IStructure
getDefn
in class org.eclipse.birt.report.model.core.Structure
public StructureHandle handle(SimpleValueHandle valueHandle, int index)
org.eclipse.birt.report.model.core.Structure
handle
in class org.eclipse.birt.report.model.core.Structure
valueHandle
- the value handle of this structure list property this
structure is inindex
- the position of this structure in structure listCopyright © 2014 OpenText Corp. All rights reserved.