Class DateTimeItem

  • All Implemented Interfaces:
    Item

    public class DateTimeItem
    extends GenericItem
    A DateTimeItem stores a timestamp including a valid time zone.
    Author:
    Thomas Eichstaedt-Engelen - Initial contribution, Kai Kreuzer - Initial contribution
    • Constructor Detail

      • DateTimeItem

        public DateTimeItem​(String name)
    • Method Detail

      • getAcceptedDataTypes

        public List<Class<? extends State>> getAcceptedDataTypes()
        Description copied from interface: Item

        This method provides a list of all data types that can be used to update the item state

        Imagine e.g. a dimmer device: It's status could be 0%, 10%, 50%, 100%, but also OFF or ON and maybe UNDEFINED. So the accepted data types would be in this case PercentType, OnOffType and UnDefType

        Returns:
        a list of data types that can be used to update the item state
      • getAcceptedCommandTypes

        public List<Class<? extends Command>> getAcceptedCommandTypes()
        Description copied from interface: Item

        This method provides a list of all command types that can be used for this item

        Imagine e.g. a dimmer device: You could ask it to dim to 0%, 10%, 50%, 100%, but also to turn OFF or ON. So the accepted command types would be in this case PercentType, OnOffType

        Returns:
        a list of all command types that can be used for this item