Package com.iizigo.prop
Class PatternManager
java.lang.Object
com.iizigo.prop.PatternManager
The patterns manager supporting Value patterns for formatting and parsing. It keeps a history of user-defined patterns for the different value types.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeClassDescription- static classClass for the value type category containing the patterns.
- Method SummaryModifier and TypeMethodDescriptionGets all available patterns for the work-with-patterns dialog box.- String[][]- getCustomPatterns- (Value.Category category) Gets the patterns for the value type.- String[][]- getCustomPatterns- (Value.Type valueType) Gets the patterns for the value type.- static PatternManagerGets the instance of the pattern manager.- void- setPatterns- (Collection<PatternManager.CategoryPatterns> categoryPatterns) Assigns the edited category patterns.
- Method Details- getInstanceGets the instance of the pattern manager.
- getCustomPatternsGets the patterns for the value type.- Parameters:
- valueType- The value type.
- Returns:
- The array of patterns (in [0]) and pattern descriptions (in [1]).
 
- getCustomPatternsGets the patterns for the value type.- Parameters:
- category- The value type category.
- Returns:
- The array of patterns (in [0]) and pattern descriptions (in [1]).
 
- getAllPatternsGets all available patterns for the work-with-patterns dialog box.
- setPatternsAssigns the edited category patterns.- Parameters:
- categoryPatterns- The list of category patterns.