Class TimeIntervalHandle


  • public class TimeIntervalHandle
    extends StructureHandle
    The structure handle of time interval.
    • Constructor Detail

      • TimeIntervalHandle

        public TimeIntervalHandle​(DesignElementHandle element,
                                  org.eclipse.birt.report.model.core.StructureContext context)
        Constructs the handle of time interval.
        Parameters:
        element - the handle of the element which defines the structure
        context - the context of this structure
    • Method Detail

      • setMeasure

        public void setMeasure​(int measure)
                        throws SemanticException
        Sets the measure value.
        Parameters:
        measure - the measure value to set
        Throws:
        SemanticException
      • getMeasure

        public int getMeasure()
        Returns the measure value.
        Returns:
        the measure value
      • setUnit

        public void setUnit​(java.lang.String unit)
                     throws SemanticException
        Sets the unit of the time interval. The value can one of the following value defined in DesignChoiceConstants:
        • INTERVAL_SECOND
        • INTERVAL_MINUTE
        • INTERVAL_HOUR
        Parameters:
        unit - the unit to set
        Throws:
        SemanticException
      • getUnit

        public java.lang.String getUnit()
        Returns the unit of the time interval. The value can be one of the following value defined in DesignChoiceConstants:
        • INTERVAL_SECOND
        • INTERVAL_MINUTE
        • INTERVAL_HOUR
        Returns:
        the unit