Class TimeValue

    • Constructor Detail

      • TimeValue

        public TimeValue()
        constructor
      • TimeValue

        public TimeValue​(org.joda.time.DateTime value)
        constructor
        Parameters:
        value - Measurement value
      • TimeValue

        public TimeValue​(org.joda.time.DateTime value,
                         String unit)
        * constructor
        Parameters:
        value - Measurement value
        unit - Unit of measure
      • TimeValue

        public TimeValue​(org.joda.time.DateTime value,
                         UoM unit)
        * constructor
        Parameters:
        value - Measurement value
        unit - Unit of measure
    • Method Detail

      • setValue

        public TimeValue setValue​(org.joda.time.DateTime value)
        Description copied from interface: Value
        Set value
        Specified by:
        setValue in interface Value<org.joda.time.DateTime>
        Specified by:
        setValue in interface Value<org.joda.time.DateTime,​SweAbstractSimpleType<org.joda.time.DateTime>>
        Overrides:
        setValue in class SweTime
        Parameters:
        value - value to set
        Returns:
        this
      • setUnit

        public void setUnit​(String unit)
        Description copied from interface: Value
        Set the unit of measure
        Specified by:
        setUnit in interface Value<org.joda.time.DateTime>
        Parameters:
        unit - Unit of measure
      • setUnit

        public TimeValue setUnit​(UoM unit)
        Description copied from interface: Value
        Set the unit of measure object
        Specified by:
        setUnit in interface Value<org.joda.time.DateTime>
        Parameters:
        unit - Unit of measure
      • getUnit

        public String getUnit()
        Description copied from interface: Value
        Get the unit of measure
        Specified by:
        getUnit in interface Value<org.joda.time.DateTime>
        Returns:
        Unit of measure
      • getUnitObject

        public UoM getUnitObject()
        Description copied from interface: Value
        Get the unit of measure object
        Specified by:
        getUnitObject in interface Value<org.joda.time.DateTime>
        Returns:
        Unit of measure
      • isSetUnit

        public boolean isSetUnit()
        Description copied from interface: Value
        Check whether the unit of measure is set
        Specified by:
        isSetUnit in interface Value<org.joda.time.DateTime>
        Returns:
        true, if unit of measure is set