public class TextFieldSettings extends Object
Constructor and Description |
---|
TextFieldSettings() |
Modifier and Type | Method and Description |
---|---|
static TextFieldSettings |
consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
EscapeSettings . |
Value<ClassName> |
getAdapterClass()
Returns the field adapter class.
|
Value<DatePattern> |
getDateFormat()
Returns the string representation of
DATE . |
Value<DatePattern> |
getDateTimeFormat()
Returns the string representation of
DATETIME . |
Value<DecimalOptionFieldAdapter.OutputStyle> |
getDecimalOutputStyle()
Returns the decimal output style.
|
Value<String> |
getFalseFormat()
Returns the string representation of
false . |
Value<ErrorAction> |
getMalformedInputAction()
Returns the error action of malformed inputs.
|
Value<String> |
getNullFormat()
Returns the string representation of
null . |
Value<DecimalPattern> |
getNumberFormat()
Returns the string representation of numbers.
|
Value<QuoteStyle> |
getQuoteStyle()
Returns the quote style.
|
Value<Boolean> |
getSkipEmptyInput()
Returns whether or not skips empty input field.
|
Value<ZoneId> |
getTimeZone()
Returns the time zone.
|
Value<Boolean> |
getTrimInputWhitespaces()
Returns whether or not trims input field leading/trailing white-space characters.
|
Value<String> |
getTrueFormat()
Returns the string representation of
true . |
Value<ErrorAction> |
getUnmappableOutputAction()
Returns the error action of unmappable outputs.
|
boolean |
verify(DmdlSemantics environment,
AstAttribute attribute)
Verifies this settings.
|
public Value<ClassName> getAdapterClass()
public Value<String> getNullFormat()
null
.null
public Value<String> getTrueFormat()
true
.true
public Value<String> getFalseFormat()
false
.false
public Value<DecimalPattern> getNumberFormat()
public Value<DatePattern> getDateFormat()
DATE
.DATE
public Value<DatePattern> getDateTimeFormat()
DATETIME
.DATETIME
public Value<DecimalOptionFieldAdapter.OutputStyle> getDecimalOutputStyle()
public Value<Boolean> getTrimInputWhitespaces()
true
if trims input field leading/trailing white-space characters, otherwise false
public Value<Boolean> getSkipEmptyInput()
true
if skips empty input field, otherwise false
public Value<ErrorAction> getMalformedInputAction()
public Value<ErrorAction> getUnmappableOutputAction()
public Value<QuoteStyle> getQuoteStyle()
public static TextFieldSettings consume(DmdlSemantics environment, AstAttribute attribute, Map<String,AstAttributeElement> elements)
EscapeSettings
.environment
- the current environmentattribute
- the attributeelements
- the element map to be consumedEscapeSettings
.public 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.