Class AccountMeasuringElementValidator
java.lang.Object
overit.geocallapp.wfm.orchestrator.assets.rs1.account.measuringelement.AccountMeasuringElementValidator
- All Implemented Interfaces:
Validator<BOMeasuringElement>
public class AccountMeasuringElementValidator
extends Object
implements Validator<BOMeasuringElement>
Validator for the account measuring element.
Checks if the input account id matches the measuring element account.
Checks if the input account id matches the measuring element account.
- Since:
- 20.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstantiates a newAccountMeasuringElementValidator.voidvalidate(BOMeasuringElement measuringElement) Checks if the measuring element account matches the account id.
-
Constructor Details
-
AccountMeasuringElementValidator
public AccountMeasuringElementValidator()
-
-
Method Details
-
make
public static AccountMeasuringElementValidator make(Long accountId) throws DAException, DAValidateException Instantiates a newAccountMeasuringElementValidator.- Parameters:
accountId- the account id- Returns:
- the validator
- Throws:
DAExceptionDAValidateException
-
validate
Checks if the measuring element account matches the account id.- Specified by:
validatein interfaceValidator<BOMeasuringElement>- Parameters:
measuringElement- theBOMeasuringElement- Throws:
DAValidateException- if the account id does not match the measuring element account
-