Package org.primefaces.convert
Interface PatternReader.TokenVisitor
- All Known Implementing Classes:
CombinedDateTimePatternTokenVisitor
- Enclosing class:
- PatternReader
public static interface PatternReader.TokenVisitor
Visits a date time pattern token when one encountered. All methods receive a custom object.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visitLiteral
(String text) Visits a literal token, i.e.void
visitTokenLetter
(int letter, int repetitions)
-
Method Details
-
visitLiteral
Visits a literal token, i.e. plain text without special meaning.- Parameters:
text
- Plain text to process.
-
visitTokenLetter
void visitTokenLetter(int letter, int repetitions) - Parameters:
letter
- The token letter that was encountered, i.e.Y
.repetitions
- The number of repetitions of the letter. E.g. when a pattern containsYYYY
, with method is called once withrepetitions
set to4
.
-