Package org.primefaces.convert
Interface PatternReader.TokenVisitor
-
- All Known Implementing Classes:
CombinedDateTimePatternTokenVisitor
- Enclosing class:
- PatternReader
public static interface PatternReader.TokenVisitorVisits a date time pattern token when one encountered. All methods receive a custom object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvisitLiteral(String text)Visits a literal token, i.e.voidvisitTokenLetter(int letter, int repetitions)
-
-
-
Method Detail
-
visitLiteral
void visitLiteral(String text)
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 withrepetitionsset to4.
-
-