Enum Class UIDateTimeType

java.lang.Object
java.lang.Enum<UIDateTimeType>
com.iizix.prop.ui.datetime.UIDateTimeType
All Implemented Interfaces:
Serializable, Comparable<UIDateTimeType>, Constable

public enum UIDateTimeType extends Enum<UIDateTimeType>
The date-time type of the component, i.e. the types Time, Date, DateTime or ZoneId.
Author:
Christopher Mindus
  • Enum Constant Details

    • Time

      public static final UIDateTimeType Time
      Time component, data type candidates: LocalTime, OffsetTime.
    • Date

      public static final UIDateTimeType Date
      Date component, data type candidates: LocalDate.
    • DateTime

      public static final UIDateTimeType DateTime
      Date and time component, data type candidates: LocalDateTime, OffsetDateTime and ZonedDateTime.
    • ZoneId

      public static final UIDateTimeType ZoneId
      Zone component, data type candidates: ZoneId.
  • Method Details

    • values

      public static UIDateTimeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UIDateTimeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isValid

      public boolean isValid(UIDateTimeDataType dataType)
      Returns if a datatype is valid for this date-time type.
    • isValid

      public boolean isValid(GDateTime dateTime)
      Returns if a GDateType value is valid for this date-time type.
    • isValid

      public boolean isValid(GDateTime.Type dateTimeType)
      Returns if a GDateType type is valid for this date-time type.
    • getSupportedDataTypes

      public UIDateTimeDataType[] getSupportedDataTypes()
      Returns the supported date-time datatypes for this type.
    • getSupportedGDateTimeTypes

      public GDateTime.Type[] getSupportedGDateTimeTypes()
      Returns the supported GDateTime types for this type.