public final class StringOptionFieldAdapter extends ValueOptionFieldAdapter<StringOption>
FieldAdapter which accepts StringOption.| Modifier and Type | Class and Description |
|---|---|
static class |
StringOptionFieldAdapter.Builder
A builder of
StringOptionFieldAdapter. |
ValueOptionFieldAdapter.BuilderBase<S extends ValueOptionFieldAdapter.BuilderBase<S,T>,T extends FieldAdapter<?>>DEFAULT_NULL_FORMAT| Modifier and Type | Method and Description |
|---|---|
static void |
append(CharBuffer source,
StringOption destination,
CharsetEncoder encoder,
ByteBuffer buffer)
Appends source contents into the destination string.
|
static StringOptionFieldAdapter.Builder |
builder()
Returns a new builder.
|
protected void |
doEmit(StringOption property,
StringBuilder output)
Emits the given non-null property value into the string builder.
|
protected void |
doParse(CharSequence contents,
StringOption property)
Parses the given non-null character sequence and set the parsed value into property.
|
clear, emit, parsepublic static StringOptionFieldAdapter.Builder builder()
protected void doParse(CharSequence contents, StringOption property)
ValueOptionFieldAdapterdoParse in class ValueOptionFieldAdapter<StringOption>contents - the contents, never nullproperty - the destination propertypublic static void append(CharBuffer source, StringOption destination, CharsetEncoder encoder, ByteBuffer buffer) throws CharacterCodingException
source - the source bufferdestination - the target StringOptionencoder - the encoderbuffer - the working bufferCharacterCodingException - if error occurred while encoding source inputprotected void doEmit(StringOption property, StringBuilder output)
ValueOptionFieldAdapterdoEmit in class ValueOptionFieldAdapter<StringOption>property - the property value, never null nor represents nulloutput - the destination bufferCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.