public class TaxNumberServiceImpl extends Object implements TaxNumberService
Modifier and Type | Field and Description |
---|---|
static List<String> |
feinNumberFormats |
static List<String> |
notAllowedTaxNumbers |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
static List<String> |
taxNumberFormats |
Constructor and Description |
---|
TaxNumberServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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.coreservice.framework.parameter.ParameterService parameterService) |
public org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
public static List<String> taxNumberFormats
public static List<String> feinNumberFormats
public static List<String> notAllowedTaxNumbers
public TaxNumberServiceImpl()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public String formatToDefaultFormat(String taxNbr) throws org.kuali.rice.core.web.format.FormatException
formatToDefaultFormat
in interface TaxNumberService
org.kuali.rice.core.web.format.FormatException
public boolean isStringAllNumbers(String field)
isStringAllNumbers
in interface TaxNumberService
field
- A String tax numberpublic boolean isStringEmpty(String field)
isStringEmpty
in interface TaxNumberService
field
- A String tax numberpublic boolean isValidTaxNumber(String taxNbr, String taxType)
isValidTaxNumber
in interface TaxNumberService
taxNbr
- A tax number String (SSN or FEIN)taxType
- determines SSN or FEIN tax number typepublic boolean isAllowedTaxNumber(String taxNbr)
isAllowedTaxNumber
in interface TaxNumberService
taxNbr
- The tax number to be processed.public String[] parseSSNFormats()
parseSSNFormats
in interface TaxNumberService
public String[] parseFEINFormats()
parseFEINFormats
in interface TaxNumberService
public String[] parseNotAllowedTaxNumbers()
parseNotAllowedTaxNumbers
in interface TaxNumberService
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.