Uses of Class
dev.amp.validator.exception.ValidatorException
-
Packages that use ValidatorException Package Description dev.amp.validator AMP validator.dev.amp.validator.utils AMP validator. -
-
Uses of ValidatorException in dev.amp.validator
Methods in dev.amp.validator that throw ValidatorException Modifier and Type Method Description booleanParsedValidatorRules. betterValidationResultThan(dev.amp.validator.ValidatorProtos.ValidationResult.Builder resultA, dev.amp.validator.ValidatorProtos.ValidationResult.Builder resultB)Returns true iff resultA is a better result than resultB.booleanParsedValidatorRules. betterValidationStatusThan(dev.amp.validator.ValidatorProtos.ValidationResult.Status statusA, dev.amp.validator.ValidatorProtos.ValidationResult.Status statusB)Returns true iff statusA is a better status than statusB.intParsedValidatorRules. maxSpecificity(List<dev.amp.validator.ValidatorProtos.ValidationError> errors)A helper function which allows us to compare two candidate results in validateTag to report the results which have the most specific errors.ValidateTagResultReferencePointMatcher. validateTag(ParsedHtmlTag tag, Context context)This method gets invoked when matching a child tag of the parent that is specifying / requiring the reference points. -
Uses of ValidatorException in dev.amp.validator.utils
Methods in dev.amp.validator.utils that throw ValidatorException Modifier and Type Method Description static ValidateTagResultTagSpecUtils. validateTag(Context context, ParsedHtmlTag encounteredTag, ParsedTagSpec bestMatchReferencePoint)Validates the provided |tagName| with respect to the tag specifications in the validator's rules, returning a ValidationResult with errors for this tag and a PASS or FAIL status.
-