Class DateFormat
java.lang.Object
com.azure.analytics.purview.datamap.models.DateFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DateFormat>
The date format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DateFormat from the JsonReader.Get the availableLocales property: An array of available locales.Get the calendar property: Calendar.Get the dateInstance property: The date format.Get the dateTimeInstance property: The date format.Get the instance property: The date format.Get the numberFormat property: The number format.Get the timeInstance property: The date format.Get the timeZone property: The timezone information.Get the lenient property: Determines the leniency of the date format.setAvailableLocales(List<String> availableLocales) Set the availableLocales property: An array of available locales.setCalendar(Double calendar) Set the calendar property: Calendar.setDateInstance(DateFormat dateInstance) Set the dateInstance property: The date format.setDateTimeInstance(DateFormat dateTimeInstance) Set the dateTimeInstance property: The date format.setInstance(DateFormat instance) Set the instance property: The date format.setLenient(Boolean lenient) Set the lenient property: Determines the leniency of the date format.setNumberFormat(NumberFormat numberFormat) Set the numberFormat property: The number format.setTimeInstance(DateFormat timeInstance) Set the timeInstance property: The date format.setTimeZone(TimeZone timeZone) Set the timeZone property: The timezone information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DateFormat
public DateFormat()Creates an instance of DateFormat class.
-
-
Method Details
-
getAvailableLocales
Get the availableLocales property: An array of available locales.- Returns:
- the availableLocales value.
-
setAvailableLocales
Set the availableLocales property: An array of available locales.- Parameters:
availableLocales- the availableLocales value to set.- Returns:
- the DateFormat object itself.
-
getCalendar
Get the calendar property: Calendar.- Returns:
- the calendar value.
-
setCalendar
Set the calendar property: Calendar.- Parameters:
calendar- the calendar value to set.- Returns:
- the DateFormat object itself.
-
getDateInstance
Get the dateInstance property: The date format.- Returns:
- the dateInstance value.
-
setDateInstance
Set the dateInstance property: The date format.- Parameters:
dateInstance- the dateInstance value to set.- Returns:
- the DateFormat object itself.
-
getDateTimeInstance
Get the dateTimeInstance property: The date format.- Returns:
- the dateTimeInstance value.
-
setDateTimeInstance
Set the dateTimeInstance property: The date format.- Parameters:
dateTimeInstance- the dateTimeInstance value to set.- Returns:
- the DateFormat object itself.
-
getInstance
Get the instance property: The date format.- Returns:
- the instance value.
-
setInstance
Set the instance property: The date format.- Parameters:
instance- the instance value to set.- Returns:
- the DateFormat object itself.
-
isLenient
Get the lenient property: Determines the leniency of the date format.- Returns:
- the lenient value.
-
setLenient
Set the lenient property: Determines the leniency of the date format.- Parameters:
lenient- the lenient value to set.- Returns:
- the DateFormat object itself.
-
getNumberFormat
Get the numberFormat property: The number format.- Returns:
- the numberFormat value.
-
setNumberFormat
Set the numberFormat property: The number format.- Parameters:
numberFormat- the numberFormat value to set.- Returns:
- the DateFormat object itself.
-
getTimeInstance
Get the timeInstance property: The date format.- Returns:
- the timeInstance value.
-
setTimeInstance
Set the timeInstance property: The date format.- Parameters:
timeInstance- the timeInstance value to set.- Returns:
- the DateFormat object itself.
-
getTimeZone
Get the timeZone property: The timezone information.- Returns:
- the timeZone value.
-
setTimeZone
Set the timeZone property: The timezone information.- Parameters:
timeZone- the timeZone value to set.- Returns:
- the DateFormat object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DateFormat>- Throws:
IOException
-
fromJson
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.
-