Constructor and Description |
---|
ConstantPattern(java.lang.String patternDef)
The constructor method of ConstantPattern.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
This method gets the constant string
|
char |
getMaskCharacter()
This method gets the mask character
|
java.lang.String |
getPatternDefinition()
This method gets the pattern constant string
|
java.math.BigDecimal |
getPatternSpace()
This method gets the pattern code space size
|
void |
setPatternDefinition(java.lang.String patternDef)
This method sets the pattern string
|
boolean |
validatePattern()
This method validates the constant pattern
|
public ConstantPattern(java.lang.String patternDef)
patternDef
- The constant string.public java.lang.String getCode()
getCode
in interface Pattern
Pattern.getCode()
public java.math.BigDecimal getPatternSpace()
getPatternSpace
in interface Pattern
Pattern.getPatternSpace()
public boolean validatePattern()
validatePattern
in interface Pattern
Pattern.validatePattern()
public java.lang.String getPatternDefinition()
getPatternDefinition
in interface Pattern
Pattern.getPatternDefinition()
public char getMaskCharacter()
The constant pattern is special and will use 0 as the mask character.
This value will never be used by code generator.
getMaskCharacter
in interface Pattern
Pattern.getMaskCharacter()
public void setPatternDefinition(java.lang.String patternDef)
setPatternDefinition
in interface Pattern
patternDef
- The constant stringPattern.setPatternDefinition(String)