V - generic type of element valuespublic interface TextElement<V> extends ChronoElement<V>
A chronological element which can be formatted as text or can be parsed from a text.
| Modifier and Type | Method and Description |
|---|---|
V |
parse(CharSequence text,
ParseLog status,
AttributeQuery attributes)
Interpretes the given text as element value.
|
void |
print(ChronoEntity<?> context,
Appendable buffer,
AttributeQuery attributes)
Converts the element value in given context to a formatted text.
|
compare, getDefaultMaximum, getDefaultMinimum, getSymbol, getType, isDateElement, isLenient, isTimeElement, nameequalsvoid print(ChronoEntity<?> context, Appendable buffer, AttributeQuery attributes) throws IOException
Converts the element value in given context to a formatted text.
Implementation note: The concrete element value is obtainable by the
expression context.get(this).
context - time context with the value of this elementbuffer - format buffer any text output will be sent toattributes - query for control attributesIOException - if writing to buffer failsV parse(CharSequence text, ParseLog status, AttributeQuery attributes)
Interpretes the given text as element value.
Implementation note: Any implementation will start first at the
position status.getPosition() and
either set the new position after successful parsing or return
null in case of error.
text - text to be parsedstatus - current parsing positionattributes - query for control attributesnull if parsing
was not successfulCopyright © 2014. All rights reserved.