|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.vnd.service.impl.TaxNumberServiceImpl
public class TaxNumberServiceImpl
| Field Summary | |
|---|---|
static List<String> |
feinNumberFormats
|
static List<String> |
notAllowedTaxNumbers
|
org.kuali.rice.kns.service.ParameterService |
parameterService
|
static List<String> |
taxNumberFormats
|
| Constructor Summary | |
|---|---|
TaxNumberServiceImpl()
|
|
| Method Summary | |
|---|---|
String |
formatToDefaultFormat(String taxNbr)
|
boolean |
isAllowedTaxNumber(String taxNbr)
Someday we'll have to use the rules table instead of using constants. |
boolean |
isStringAllNumbers(String field)
A predicate to determine if a String field is all numbers |
boolean |
isStringEmpty(String field)
A predicate to determine if a String field is null or empty |
boolean |
isValidTaxNumber(String taxNbr,
String taxType)
A predicate to determine the validity of tax numbers We're using regular expressions stored in the business rules table to validate whether the tax number is in the correct format. |
String[] |
parseFEINFormats()
Splits the set of tax fein number formats which are returned from the rule service as a semicolon-delimeted String into a String array. |
String[] |
parseNotAllowedTaxNumbers()
Splits the set of not allowed tax number formats which are returned from the rule service as a semicolon-delimeted String into a String array. |
String[] |
parseSSNFormats()
Splits the set of tax number formats which are returned from the rule service as a semicolon-delimeted String into a String array. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.kuali.rice.kns.service.ParameterService parameterService
public static List<String> taxNumberFormats
public static List<String> feinNumberFormats
public static List<String> notAllowedTaxNumbers
| Constructor Detail |
|---|
public TaxNumberServiceImpl()
| Method Detail |
|---|
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public String formatToDefaultFormat(String taxNbr)
throws org.kuali.rice.kns.web.format.FormatException
formatToDefaultFormat in interface TaxNumberServiceorg.kuali.rice.kns.web.format.FormatExceptionpublic boolean isStringAllNumbers(String field)
isStringAllNumbers in interface TaxNumberServicefield - A String tax number
public boolean isStringEmpty(String field)
isStringEmpty in interface TaxNumberServicefield - A String tax number
public boolean isValidTaxNumber(String taxNbr,
String taxType)
isValidTaxNumber in interface TaxNumberServicetaxNbr - A tax number String (SSN or FEIN)taxType - determines SSN or FEIN tax number type
public boolean isAllowedTaxNumber(String taxNbr)
isAllowedTaxNumber in interface TaxNumberServicetaxNbr - The tax number to be processed.
public String[] parseSSNFormats()
parseSSNFormats in interface TaxNumberServicepublic String[] parseFEINFormats()
parseFEINFormats in interface TaxNumberServicepublic String[] parseNotAllowedTaxNumbers()
parseNotAllowedTaxNumbers in interface TaxNumberService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||