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 Summary
Modifier and TypeClassDescriptionstatic class
Class for the value type category containing the patterns.Method Summary
Modifier 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 PatternManager
Gets the instance of the pattern manager.void
setPatterns
(Collection<PatternManager.CategoryPatterns> categoryPatterns) Assigns the edited category patterns.
Method Details
getInstance
Gets the instance of the pattern manager.getCustomPatterns
Gets the patterns for the value type.- Parameters:
valueType
- The value type.- Returns:
- The array of patterns (in [0]) and pattern descriptions (in [1]).
getCustomPatterns
Gets the patterns for the value type.- Parameters:
category
- The value type category.- Returns:
- The array of patterns (in [0]) and pattern descriptions (in [1]).
getAllPatterns
Gets all available patterns for the work-with-patterns dialog box.setPatterns
Assigns the edited category patterns.- Parameters:
categoryPatterns
- The list of category patterns.