public final class ShoppingCartValidatorService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
changeValidatorEnabling(String strValidatorId,
boolean bEnable)
Enable or disable a validator.
|
static ShoppingCartValidatorService |
getInstance()
Get the instance of the service
|
IShoppingCartValidator |
getNextValidator(String strLastValidatorId)
Get the next validator to use
|
IShoppingCartValidator |
getValidator(String strValidatorId)
Get a validator from its id
|
List<IShoppingCartValidator> |
getValidatorlist()
Get the list of validators.
|
void |
modifyValidatorOrder(String strValidatorId,
int nNewOrder)
Change the order of a validator, and updates other validators to fit with
the new order
|
public static ShoppingCartValidatorService getInstance()
public List<IShoppingCartValidator> getValidatorlist()
public void modifyValidatorOrder(String strValidatorId, int nNewOrder)
strValidatorId - The id of the validator to change to order ofnNewOrder - The new value of the order of the validatorpublic void changeValidatorEnabling(String strValidatorId, boolean bEnable)
strValidatorId - The id of the validator the enable or disablebEnable - True to enable the validator, false to disable itpublic IShoppingCartValidator getNextValidator(String strLastValidatorId)
strLastValidatorId - The last validator used or null if no
validators was applied yet. The next validator will be
returned, if anypublic IShoppingCartValidator getValidator(String strValidatorId)
strValidatorId - The of the validator to getCopyright © 2014 Mairie de Paris. All rights reserved.