public class PatternInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PatternInfo.Type |
static class |
PatternInfo.TypeQualifier |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
format |
java.lang.String |
generalPattern |
KnownPatterns.ID |
id |
boolean |
isLogicalType |
int |
maxLength |
int |
minLength |
java.lang.String |
regexp |
PatternInfo.Type |
type |
java.lang.String |
typeQualifier |
Constructor and Description |
---|
PatternInfo(KnownPatterns.ID id,
java.lang.String regexp,
PatternInfo.Type type,
java.lang.String typeQualifier,
boolean isLogicalType,
int minLength,
int maxLength,
java.lang.String generalPattern,
java.lang.String format)
Construct a new information block for the supplied pattern.
|
PatternInfo(PatternInfo that) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAlphabetic()
Is this pattern Alphabetic?
|
boolean |
isAlphanumeric()
Is this pattern Alphanumeric?
|
boolean |
isDateType()
Is this pattern a Date Type?
|
boolean |
isLogicalType()
Is this PatternInfo a Logical Type?
|
boolean |
isNumeric()
Is this pattern Numeric?
|
public KnownPatterns.ID id
public java.lang.String regexp
public java.lang.String generalPattern
public int minLength
public int maxLength
public java.lang.String format
public PatternInfo.Type type
public java.lang.String typeQualifier
public boolean isLogicalType
public PatternInfo(KnownPatterns.ID id, java.lang.String regexp, PatternInfo.Type type, java.lang.String typeQualifier, boolean isLogicalType, int minLength, int maxLength, java.lang.String generalPattern, java.lang.String format)
id
- The ID of interest.regexp
- The pattern of interest.type
- The type of the pattern.typeQualifier
- The type qualifier of the pattern (optional).isLogicalType
- A boolean indicating if this is a Logical Type.minLength
- The minimum length of this pattern (-1 implies undefined)maxLength
- The maximum length of this pattern (-1 implies undefined)generalPattern
- The general case of this pattern (optional).format
- The Java format specified for a date pattern (optional).public PatternInfo(PatternInfo that)
public boolean isNumeric()
public boolean isDateType()
public boolean isAlphabetic()
public boolean isAlphanumeric()
public boolean isLogicalType()