public final class TypeConversionSettings extends Object
| Constructor and Description |
|---|
TypeConversionSettings() |
| Modifier and Type | Method and Description |
|---|---|
Object |
allowDataTruncation()
Get the allowDataTruncation property: Whether to allow data truncation when converting the data.
|
Object |
culture()
Get the culture property: The culture used to convert data from/to string.
|
Object |
dateTimeFormat()
Get the dateTimeFormat property: The format for DateTime values.
|
Object |
dateTimeOffsetFormat()
Get the dateTimeOffsetFormat property: The format for DateTimeOffset values.
|
Object |
timeSpanFormat()
Get the timeSpanFormat property: The format for TimeSpan values.
|
Object |
treatBooleanAsNumber()
Get the treatBooleanAsNumber property: Whether to treat boolean values as numbers.
|
void |
validate()
Validates the instance.
|
TypeConversionSettings |
withAllowDataTruncation(Object allowDataTruncation)
Set the allowDataTruncation property: Whether to allow data truncation when converting the data.
|
TypeConversionSettings |
withCulture(Object culture)
Set the culture property: The culture used to convert data from/to string.
|
TypeConversionSettings |
withDateTimeFormat(Object dateTimeFormat)
Set the dateTimeFormat property: The format for DateTime values.
|
TypeConversionSettings |
withDateTimeOffsetFormat(Object dateTimeOffsetFormat)
Set the dateTimeOffsetFormat property: The format for DateTimeOffset values.
|
TypeConversionSettings |
withTimeSpanFormat(Object timeSpanFormat)
Set the timeSpanFormat property: The format for TimeSpan values.
|
TypeConversionSettings |
withTreatBooleanAsNumber(Object treatBooleanAsNumber)
Set the treatBooleanAsNumber property: Whether to treat boolean values as numbers.
|
public Object allowDataTruncation()
public TypeConversionSettings withAllowDataTruncation(Object allowDataTruncation)
allowDataTruncation - the allowDataTruncation value to set.public Object treatBooleanAsNumber()
public TypeConversionSettings withTreatBooleanAsNumber(Object treatBooleanAsNumber)
treatBooleanAsNumber - the treatBooleanAsNumber value to set.public Object dateTimeFormat()
public TypeConversionSettings withDateTimeFormat(Object dateTimeFormat)
dateTimeFormat - the dateTimeFormat value to set.public Object dateTimeOffsetFormat()
public TypeConversionSettings withDateTimeOffsetFormat(Object dateTimeOffsetFormat)
dateTimeOffsetFormat - the dateTimeOffsetFormat value to set.public Object timeSpanFormat()
public TypeConversionSettings withTimeSpanFormat(Object timeSpanFormat)
timeSpanFormat - the timeSpanFormat value to set.public Object culture()
public TypeConversionSettings withCulture(Object culture)
culture - the culture value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.