public class TimeInterval
extends org.eclipse.birt.report.model.core.Structure
Modifier and Type | Field and Description |
---|---|
protected int |
measure
Value of the measure.
|
static java.lang.String |
MEASURE_MEMBER
Name of the measure member.
|
static java.lang.String |
STRUCTURE_NAME
Name of the structure.
|
protected java.lang.String |
unit
Value of the unit.
|
static java.lang.String |
UNIT_MEMBER
Name of the unit member.
|
Constructor and Description |
---|
TimeInterval() |
Modifier and Type | Method and Description |
---|---|
StructureHandle |
getHandle(SimpleValueHandle valueHandle)
Gets the specific handle of this structure.
|
protected java.lang.Object |
getIntrinsicProperty(java.lang.String propName)
Returns the value of a structure property represented as a member
variable.
|
int |
getMeasure()
Returns the measure value.
|
java.lang.String |
getStructName()
Returns the name of the structure definition.
|
java.lang.String |
getUnit()
Returns the unit of the time interval.
|
protected StructureHandle |
handle(SimpleValueHandle valueHandle,
int index)
Creates the specific handle of this structure.
|
protected void |
setIntrinsicProperty(java.lang.String propName,
java.lang.Object value)
Sets the value of of a structure property represented as a member
variable.
|
void |
setMeasure(int measure)
Sets the measure value.
|
void |
setUnit(java.lang.String unit)
Sets the unit of the time interval.
|
checkStringMember, copy, equals, getCompatibleValue, getContext, getDefn, getElement, getExpressionProperty, getHandle, getLocalProperty, getLocalProperty, getMemberDefn, getObjectDefn, getProperty, getProperty, getReferencableProperty, getStringProperty, isDesignTime, isReferencable, setContext, setExpressionProperty, setProperty, setProperty, setupContext, updateReference, validate
public static final java.lang.String STRUCTURE_NAME
public static final java.lang.String MEASURE_MEMBER
public static final java.lang.String UNIT_MEMBER
protected int measure
protected java.lang.String unit
public java.lang.String getStructName()
IStructure
protected java.lang.Object getIntrinsicProperty(java.lang.String propName)
org.eclipse.birt.report.model.core.Structure
getIntrinsicProperty
in class org.eclipse.birt.report.model.core.Structure
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 org.eclipse.birt.report.model.core.Structure
propName
- the name of the property to setvalue
- the property valueprotected 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 listpublic StructureHandle getHandle(SimpleValueHandle valueHandle)
org.eclipse.birt.report.model.core.Structure
getHandle
in class org.eclipse.birt.report.model.core.Structure
valueHandle
- the value handle of this structure list property this
structure is invalueHandle
,null
is returned.public void setMeasure(int measure)
measure
- the measure value to setpublic int getMeasure()
public void setUnit(java.lang.String unit)
DesignChoiceConstants
:
INTERVAL_SECOND
INTERVAL_MINUTE
INTERVAL_HOUR
unit
- the unit to setpublic java.lang.String getUnit()
DesignChoiceConstants
:
INTERVAL_SECOND
INTERVAL_MINUTE
INTERVAL_HOUR
Copyright © 2008 Actuate Corp. All rights reserved.