Package dev.amp.validator
Class AMPValidatorLoader
- java.lang.Object
-
- dev.amp.validator.AMPValidatorLoader
-
public final class AMPValidatorLoader extends Object
This class load the validator main and extension proto ascii files.- Author:
- nhant01, GeorgeLuo
-
-
Constructor Summary
Constructors Constructor Description AMPValidatorLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description dev.amp.validator.ValidatorProtos.ValidatorRules.Builderload(String filePath)Loading the rules.
-
-
-
Method Detail
-
load
public dev.amp.validator.ValidatorProtos.ValidatorRules.Builder load(String filePath) throws IOException, URISyntaxException
Loading the rules.- Parameters:
filePath- file path.- Returns:
- a Builder instance
- Throws:
IOException- if I/O errors occur.URISyntaxException- if this URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.
-
-