public interface FieldOutput
FieldAdapter.| Modifier and Type | Interface and Description |
|---|---|
static interface |
FieldOutput.Option
Represents an option of
FieldOutput. |
| Modifier and Type | Method and Description |
|---|---|
default StringBuilder |
acquireBuffer()
Acquires the internal buffer.
|
FieldOutput |
addOption(FieldOutput.Option option)
Adds an option of this output.
|
default FieldOutput |
addOptions(FieldOutput.Option... options)
Adds options of this output.
|
CharSequence |
get()
Returns the output contents.
|
Collection<? extends FieldOutput.Option> |
getOptions()
Returns the options of this output.
|
default FieldOutput |
put(CharSequence contents)
Adds a content into this output.
|
FieldOutput |
put(CharSequence contents,
int start,
int end)
Adds a content into this output.
|
void |
putNull()
Sets this field as
NULL. |
default void |
releaseBuffer(StringBuilder acquired)
Releases the
acquired buffer. |
CharSequence get()
null if this output was set as nullCollection<? extends FieldOutput.Option> getOptions()
void putNull()
NULL.IllegalStateException - if this field already has any other contentsFieldOutput put(CharSequence contents, int start, int end)
contents - the contentstart - the beginning index (inclusive)end - the ending index (exclusive)IllegalStateException - if this field was already set as nulldefault FieldOutput put(CharSequence contents)
contents - the contentIllegalStateException - if this field was already set as nullFieldOutput addOption(FieldOutput.Option option)
option - the optionsdefault FieldOutput addOptions(FieldOutput.Option... options)
options - the optionsdefault StringBuilder acquireBuffer()
IllegalStateException - if this field already has some content (optional)default void releaseBuffer(StringBuilder acquired)
acquired buffer.acquired - the buffer to releaseIllegalStateException - if the given buffer is not acquired from this outputCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.