public abstract class ComplexValueHandle extends ValueHandle
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.birt.report.model.core.StructureContext |
memberContext
Path to the property within an element, a list or a structure.
|
protected org.eclipse.birt.report.model.metadata.ElementPropertyDefn |
propDefn
Property definition.
|
elementHandle
Constructor and Description |
---|
ComplexValueHandle(DesignElementHandle element,
org.eclipse.birt.report.model.metadata.ElementPropertyDefn thePropDefn)
Constructs a handle given an element handle and definition of a property.
|
ComplexValueHandle(DesignElementHandle element,
org.eclipse.birt.report.model.core.MemberRef theMemberRef)
Deprecated.
|
ComplexValueHandle(DesignElementHandle element,
org.eclipse.birt.report.model.core.StructureContext theMemberContext)
Constructs a handle given an element handle and member reference.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.birt.report.model.core.StructureContext |
getContext()
Returns the structure context to the value.
|
protected IPropertyDefn |
getDefn()
Returns a definition for the handle.
|
java.lang.String |
getDisplayValue()
Returns the value of the property or member in a localized format.
|
IElementPropertyDefn |
getPropertyDefn()
Gets the property definition.
|
protected java.lang.Object |
getRawValue()
Returns the value stored in the memory.
|
java.lang.String |
getStringValue()
Gets the property value converted to a string value.
|
java.lang.Object |
getValue()
Gets the value of the property as a generic object.
|
boolean |
isSet()
Tests whether this property value is set for this element or the
structure.
|
void |
setStringValue(java.lang.String value)
Sets the value of a property or member to a string.
|
void |
setValue(java.lang.Object value)
Sets the value of a property to the given value.
|
getReference
getDesign, getElement, getElementHandle, getModule
protected org.eclipse.birt.report.model.metadata.ElementPropertyDefn propDefn
protected org.eclipse.birt.report.model.core.StructureContext memberContext
public ComplexValueHandle(DesignElementHandle element, org.eclipse.birt.report.model.metadata.ElementPropertyDefn thePropDefn)
element
- handle to the report element that contains the element
property.thePropDefn
- element property definition.public ComplexValueHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.StructureContext theMemberContext)
element
- handle to the report element that has the property that
contains the structure that contains the member.theMemberContext
- The context to the member.public ComplexValueHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.MemberRef theMemberRef)
element
- handle to the report element that has the property that
contains the structure that contains the member.theMemberRef
- The reference to the member.public void setValue(java.lang.Object value) throws SemanticException
value
- The new value.SemanticException
- If the value is not valid for the property or member.public java.lang.Object getValue()
protected final java.lang.Object getRawValue()
public void setStringValue(java.lang.String value) throws SemanticException
value
- the value to setSemanticException
- if the string value is not valid for the property or member.public java.lang.String getStringValue()
public java.lang.String getDisplayValue()
public IElementPropertyDefn getPropertyDefn()
ValueHandle
getPropertyDefn
in class ValueHandle
public org.eclipse.birt.report.model.core.StructureContext getContext()
ValueHandle
getContext
in class ValueHandle
protected IPropertyDefn getDefn()
public boolean isSet()
null
,
otherwise it is considered unset.true
if the value is set, false
if it
is not setCopyright © 2008 Actuate Corp. All rights reserved.