public class ExpressionHandle extends ComplexValueHandle
ExpressionType
memberContext, propDefn
elementHandle
Constructor and Description |
---|
ExpressionHandle(DesignElementHandle element,
org.eclipse.birt.report.model.metadata.ElementPropertyDefn thePropDefn)
Constructs an expression handle for an element property.
|
ExpressionHandle(DesignElementHandle element,
org.eclipse.birt.report.model.core.MemberRef memberRef)
Deprecated.
|
ExpressionHandle(DesignElementHandle element,
org.eclipse.birt.report.model.core.StructureContext context)
Constructs an expression handle for the structure member.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getExpression()
Return the raw expression if the type is not constant.
|
java.lang.String |
getStringExpression()
Return the expression in string format.
|
java.lang.String |
getType()
Return the type of the expression.
|
java.lang.Object |
getValue()
Gets the value of the property as a generic object.
|
void |
setExpression(java.lang.Object expr)
Sets the raw expression if the type is not constant.
|
void |
setType(java.lang.String type)
Sets the type of the expression.
|
getContext, getDefn, getDisplayValue, getPropertyDefn, getRawValue, getStringValue, isSet, setStringValue, setValue
getReference
getDesign, getElement, getElementHandle, getModule
public ExpressionHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.StructureContext context)
element
- the design element handlecontext
- the context for the member propertypublic ExpressionHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.MemberRef memberRef)
element
- the design element handlememberRef
- the memberRef for the member propertypublic ExpressionHandle(DesignElementHandle element, org.eclipse.birt.report.model.metadata.ElementPropertyDefn thePropDefn)
element
- handle to the element that defined the property.thePropDefn
- definition of the expression property.public java.lang.Object getExpression()
public void setExpression(java.lang.Object expr) throws SemanticException
expr
- the raw expression or the valueSemanticException
public java.lang.String getType()
public void setType(java.lang.String type) throws SemanticException
type
- the expression type.SemanticException
public java.lang.String getStringExpression()
public java.lang.Object getValue()
ComplexValueHandle
getValue
in class ComplexValueHandle
Copyright © 2008 Actuate Corp. All rights reserved.