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