|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.MaskBuilder
public class MaskBuilder
MaskBuilder assists in building a mask pattern for the schema restriction. This is initially designed to assist application developers in creating a presentation mask for service fields of a service operation.
Nested Class Summary | |
---|---|
static class |
MaskBuilder.CaseType
|
static class |
MaskBuilder.PrintCaseType
|
static class |
MaskBuilder.StringSegmentType
|
Constructor Summary | |
---|---|
MaskBuilder()
|
Method Summary | |
---|---|
MaskBuilder |
append(char fromAlphaNumericChar,
char toAlphaNumericChar,
int minLength,
int maxLength)
Appends the pattern mask for the specified from and to alphanumeric character for a specified length. |
MaskBuilder |
append(MaskBuilder.StringSegmentType stringSegmentType,
MaskBuilder.CaseType caseType,
int minLength,
int maxLength)
Appends onto the current mask based on segment type, case and langth. |
MaskBuilder |
append(MaskDataTypeBuilder maskDataTypeBuilder,
int minLength,
int maxLength)
Appends the mask data type into the mask for a specified length. |
MaskBuilder |
appendDigits(int minLength,
int maxLength)
Appends the digit data type mask of a specified length. |
MaskBuilder |
appendLiteral(java.lang.String unescapedLiteralString)
Appends a literal string to the mask. |
MaskBuilder |
appendLiteral(java.lang.String unescapedLiteralString,
int minLength,
int maxLength)
Appends a literal string to a mask for a specified length. |
MaskBuilder |
appendMaskLength(int minLength,
int maxLength)
Appends the length clause onto the mask. |
MaskBuilder |
appendPrint(MaskBuilder.PrintCaseType printCaseType,
int minLength,
int maxLength)
Appends the print pattern mask for a specified case and length. |
void |
clearMask()
Clears the mask value to an empty string. |
java.lang.String |
getMask()
Gets the mask created by the append commands. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MaskBuilder()
Method Detail |
---|
public MaskBuilder appendDigits(int minLength, int maxLength)
minLength
- minimum length allowed for this pattern.maxLength
- maximum length allowed for this pattern.
MaskBuilder
public java.lang.String getMask()
String
containing the current value of the mask
that is being built.public void clearMask()
public MaskBuilder append(MaskBuilder.StringSegmentType stringSegmentType, MaskBuilder.CaseType caseType, int minLength, int maxLength)
stringSegmentType
- MaskBuilder.StringSegmentType
caseType
- is the segment's MaskBuilder.CaseType
minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public MaskBuilder appendMaskLength(int minLength, int maxLength)
minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public MaskBuilder append(MaskDataTypeBuilder maskDataTypeBuilder, int minLength, int maxLength)
maskDataTypeBuilder
- is the mask data type builder MaskDataTypeBuilder
minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public MaskBuilder append(char fromAlphaNumericChar, char toAlphaNumericChar, int minLength, int maxLength)
fromAlphaNumericChar
- is the range from alphanumeric character of the mask data type.toAlphaNumericChar
- is the range to alphanumeric character of the mask data type.minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public MaskBuilder appendPrint(MaskBuilder.PrintCaseType printCaseType, int minLength, int maxLength)
printCaseType
- MaskBuilder.PrintCaseType
minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public MaskBuilder appendLiteral(java.lang.String unescapedLiteralString)
unescapedLiteralString
- is the unescaped literal string.
MaskBuilder
public MaskBuilder appendLiteral(java.lang.String unescapedLiteralString, int minLength, int maxLength)
unescapedLiteralString
- is the unescaped literal string.minLength
- is the minimum length of the pattern.maxLength
- is the maximum length of the pattern.
MaskBuilder
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |