public class QuoteSettings extends Object
| Constructor and Description |
|---|
QuoteSettings() |
| Modifier and Type | Method and Description |
|---|---|
static QuoteSettings |
consume(DmdlSemantics environment,
AstAttribute attribute,
Map<String,AstAttributeElement> elements)
Consumes attribute elements about escape settings, and returns corresponding
QuoteSettings. |
Value<Boolean> |
getAllowLineFeedInField()
Returns whether or not LF can appear as field values.
|
Value<Character> |
getCharacter()
Returns quote character.
|
Value<QuoteStyle> |
getDefaultStyle()
Returns the default quote style.
|
Value<QuoteStyle> |
getHeaderStyle()
Returns the quote style for header fields.
|
boolean |
verify(DmdlSemantics environment,
AstAttribute attribute)
Verifies this settings.
|
public Value<Character> getCharacter()
public Value<Boolean> getAllowLineFeedInField()
trur if it is enabled, otherwise falsepublic Value<QuoteStyle> getDefaultStyle()
public Value<QuoteStyle> getHeaderStyle()
public static QuoteSettings consume(DmdlSemantics environment, AstAttribute attribute, Map<String,AstAttributeElement> elements)
QuoteSettings.environment - the current environmentattribute - the attributeelements - the element map to be consumedQuoteSettings.public 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.