public class JsonPropertySettings extends Object
| Constructor and Description |
|---|
JsonPropertySettings() |
| Modifier and Type | Method and Description |
|---|---|
static JsonPropertySettings |
consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about property settings.
|
Value<ClassName> |
getAdapterClass()
Returns the adapter class.
|
Value<DatePattern> |
getDateFormat()
Returns the date format.
|
Value<DatePattern> |
getDateTimeFormat()
Returns the date-time format.
|
Value<ErrorAction> |
getMalformedInputAction()
Returns the malformed input action.
|
Value<ErrorAction> |
getMissingInputAction()
Returns the missing input action.
|
Value<ValueOptionPropertyAdapter.NullStyle> |
getNullStyle()
Returns the null style.
|
Value<ZoneId> |
getTimeZone()
Returns the time zone.
|
JsonPropertySettings |
mergeDefaults(JsonPropertySettings defaults)
Merges this object and the given default settings into a new object.
|
boolean |
verify(DmdlSemantics environment,
AstAttribute attribute)
Verifies this settings.
|
public Value<ClassName> getAdapterClass()
public Value<DatePattern> getDateFormat()
public Value<DatePattern> getDateTimeFormat()
public Value<ErrorAction> getMissingInputAction()
public Value<ErrorAction> getMalformedInputAction()
public Value<ValueOptionPropertyAdapter.NullStyle> getNullStyle()
public JsonPropertySettings mergeDefaults(JsonPropertySettings defaults)
defaults - the default settingspublic static JsonPropertySettings consume(DmdlSemantics environment, AstAttribute attribute, Map<String,AstAttributeElement> elements)
environment - the current environmentattribute - the attributeelements - the element map to be consumedpublic boolean verify(DmdlSemantics environment, AstAttribute attribute)
environment - the current environmentattribute - the original attributetrue if the settings seems valid, otherwise falseCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.