Class DateFormat

java.lang.Object
com.azure.analytics.purview.datamap.models.DateFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<DateFormat>

public final class DateFormat extends Object implements com.azure.json.JsonSerializable<DateFormat>
The date format.
  • Constructor Details

    • DateFormat

      public DateFormat()
      Creates an instance of DateFormat class.
  • Method Details

    • getAvailableLocales

      public List<String> getAvailableLocales()
      Get the availableLocales property: An array of available locales.
      Returns:
      the availableLocales value.
    • setAvailableLocales

      public DateFormat setAvailableLocales(List<String> availableLocales)
      Set the availableLocales property: An array of available locales.
      Parameters:
      availableLocales - the availableLocales value to set.
      Returns:
      the DateFormat object itself.
    • getCalendar

      public Double getCalendar()
      Get the calendar property: Calendar.
      Returns:
      the calendar value.
    • setCalendar

      public DateFormat setCalendar(Double calendar)
      Set the calendar property: Calendar.
      Parameters:
      calendar - the calendar value to set.
      Returns:
      the DateFormat object itself.
    • getDateInstance

      public DateFormat getDateInstance()
      Get the dateInstance property: The date format.
      Returns:
      the dateInstance value.
    • setDateInstance

      public DateFormat setDateInstance(DateFormat dateInstance)
      Set the dateInstance property: The date format.
      Parameters:
      dateInstance - the dateInstance value to set.
      Returns:
      the DateFormat object itself.
    • getDateTimeInstance

      public DateFormat getDateTimeInstance()
      Get the dateTimeInstance property: The date format.
      Returns:
      the dateTimeInstance value.
    • setDateTimeInstance

      public DateFormat setDateTimeInstance(DateFormat dateTimeInstance)
      Set the dateTimeInstance property: The date format.
      Parameters:
      dateTimeInstance - the dateTimeInstance value to set.
      Returns:
      the DateFormat object itself.
    • getInstance

      public DateFormat getInstance()
      Get the instance property: The date format.
      Returns:
      the instance value.
    • setInstance

      public DateFormat setInstance(DateFormat instance)
      Set the instance property: The date format.
      Parameters:
      instance - the instance value to set.
      Returns:
      the DateFormat object itself.
    • isLenient

      public Boolean isLenient()
      Get the lenient property: Determines the leniency of the date format.
      Returns:
      the lenient value.
    • setLenient

      public DateFormat setLenient(Boolean lenient)
      Set the lenient property: Determines the leniency of the date format.
      Parameters:
      lenient - the lenient value to set.
      Returns:
      the DateFormat object itself.
    • getNumberFormat

      public NumberFormat getNumberFormat()
      Get the numberFormat property: The number format.
      Returns:
      the numberFormat value.
    • setNumberFormat

      public DateFormat setNumberFormat(NumberFormat numberFormat)
      Set the numberFormat property: The number format.
      Parameters:
      numberFormat - the numberFormat value to set.
      Returns:
      the DateFormat object itself.
    • getTimeInstance

      public DateFormat getTimeInstance()
      Get the timeInstance property: The date format.
      Returns:
      the timeInstance value.
    • setTimeInstance

      public DateFormat setTimeInstance(DateFormat timeInstance)
      Set the timeInstance property: The date format.
      Parameters:
      timeInstance - the timeInstance value to set.
      Returns:
      the DateFormat object itself.
    • getTimeZone

      public TimeZone getTimeZone()
      Get the timeZone property: The timezone information.
      Returns:
      the timeZone value.
    • setTimeZone

      public DateFormat setTimeZone(TimeZone timeZone)
      Set the timeZone property: The timezone information.
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the DateFormat object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DateFormat>
      Throws:
      IOException
    • fromJson

      public static DateFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DateFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DateFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DateFormat.