public interface Pattern
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getCode()
This method returns a generated code
|
char | getMaskCharacter()
This method returns the mask character of the pattern segment
|
java.lang.String | getPatternDefinition()
This method returns the pattern definition
|
java.math.BigDecimal | getPatternSpace()
This method calculates the total number of all possible codes
|
void | setPatternDefinition(java.lang.String patternDef)
This method set the pattern definition
|
boolean | validatePattern()
This method validates the pattern definition
|
static final java.lang.String COPYRIGHT
java.lang.String getCode()
The code must satisfy the pattern definition.
java.math.BigDecimal getPatternSpace()
The codes must satisfy the pattern definition.
java.lang.String getPatternDefinition()
void setPatternDefinition(java.lang.String patternDef)
char getMaskCharacter()
By default, the mask character should be the first character of the pattern definition.
The CodeGenerator uses the mask character to parse the pattern string into pattern segments.
boolean validatePattern()
The CodeGenerator will use this method to validate the pattern string.
This method returns true if the pattern definition is valid.