public class JsonFormatSettings extends Object
Constructor and Description |
---|
JsonFormatSettings() |
Modifier and Type | Method and Description |
---|---|
static JsonFormatSettings |
consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about format settings.
|
Value<Charset> |
getCharsetName()
Returns the charset name.
|
Value<JsonFormatConstants.DecimalStyle> |
getDecimalStyle()
Returns the decimal style.
|
Value<Boolean> |
getEscapeNoAscii()
Returns the escape no ASCII flag.
|
Value<LineSeparator> |
getLineSeparator()
Returns the line separator.
|
Value<ErrorAction> |
getUnknownPropertyAction()
Returns the unknown property action.
|
boolean |
verify(DmdlSemantics environment,
AstAttribute attribute)
Verifies this settings.
|
public Value<Charset> getCharsetName()
public Value<LineSeparator> getLineSeparator()
public Value<JsonFormatConstants.DecimalStyle> getDecimalStyle()
public Value<Boolean> getEscapeNoAscii()
public Value<ErrorAction> getUnknownPropertyAction()
public static JsonFormatSettings 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 false
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.