|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.ElementDetailHandle
org.eclipse.birt.report.model.api.ValueHandle
org.eclipse.birt.report.model.api.StructureHandle
org.eclipse.birt.report.model.api.StyleRuleHandle
org.eclipse.birt.report.model.api.MapRuleHandle
public class MapRuleHandle
Represents the handle of map rule. The Map rule represents a style mapping rule: a translation of a database value into a set of display values. A map might translate DB status codes (O, S, P) into user-visible strings (Open, Shipped, Paid). The mapping is driven of of a mapping test expression defined on the style.
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.api.StructureHandle |
---|
structRef |
Fields inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle |
---|
elementHandle |
Constructor Summary | |
---|---|
MapRuleHandle(SimpleValueHandle valueHandle,
int index)
Constructs the handle of map rule. |
Method Summary | |
---|---|
java.lang.String |
getDisplay()
Returns the display value when this rule applies. |
java.lang.String |
getDisplayKey()
Returns the resource key of display value. |
java.lang.String |
getTestExpression()
sets the test expression for this map rule. |
void |
setDisplay(java.lang.String display)
Sets the display value when this rule applies. |
void |
setDisplayKey(java.lang.String displayID)
Sets the resource key of display value. |
void |
setTestExpression(java.lang.String expression)
sets the expression for this map rule. |
Methods inherited from class org.eclipse.birt.report.model.api.StyleRuleHandle |
---|
getOperator, getValue1, getValue1List, getValue2, setOperator, setValue1, setValue1, setValue2 |
Methods inherited from class org.eclipse.birt.report.model.api.StructureHandle |
---|
drop, getDefn, getExternalizedValue, getMember, getProperty, getPropertyDefn, getReference, getStringProperty, getStructure, isDesignTime, iterator, setDesignTime, setProperty, setPropertySilently |
Methods inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle |
---|
getDesign, getElement, getElementHandle, getModule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapRuleHandle(SimpleValueHandle valueHandle, int index)
valueHandle
- the value handle for map rule list of one propertyindex
- the position of this map rule in the listMethod Detail |
---|
public java.lang.String getDisplay()
public void setDisplay(java.lang.String display)
display
- the display value to setpublic java.lang.String getDisplayKey()
public void setDisplayKey(java.lang.String displayID)
displayID
- the resource key to setpublic void setTestExpression(java.lang.String expression)
expression
- the expressionpublic java.lang.String getTestExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |