Uses of Class
dev.amp.validator.ValidateTagResult
-
Packages that use ValidateTagResult Package Description dev.amp.validator AMP validator.dev.amp.validator.utils AMP validator. -
-
Uses of ValidateTagResult in dev.amp.validator
Methods in dev.amp.validator that return ValidateTagResult Modifier and Type Method Description 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.Methods in dev.amp.validator with parameters of type ValidateTagResult Modifier and Type Method Description voidExtensionsContext. updateFromTagResult(ValidateTagResult result)Update ExtensionContext state when we encounter an amp extension or tag using an extension.voidContext. updateFromTagResults(ParsedHtmlTag encounteredTag, ValidateTagResult referencePointResult, ValidateTagResult tagResult)Given the tagResult from validating a single tag, update the overall result as well as the Context state to affect later validation.voidTagStack. updateFromTagResults(ParsedHtmlTag encounteredTag, ValidateTagResult referencePointResult, ValidateTagResult tagResult, ParsedValidatorRules parsedRules, Locator lineCol)Update tagstack state after validating an encountered tag.voidTagStack. updateStackEntryFromTagResult(ValidateTagResult result, ParsedValidatorRules parsedRules, Locator lineCol)Given a ValidateTagResult, update the tag stack entry at the top of the tag stack to add any constraints from the spec. -
Uses of ValidateTagResult in dev.amp.validator.utils
Methods in dev.amp.validator.utils that return ValidateTagResult 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.static ValidateTagResultTagSpecUtils. validateTagAgainstSpec(ParsedTagSpec parsedTagSpec, ParsedTagSpec bestMatchReferencePoint, Context context, ParsedHtmlTag encounteredTag)Validates the provided |tagName| with respect to a single tag specification.Methods in dev.amp.validator.utils with parameters of type ValidateTagResult Modifier and Type Method Description static voidCssSpecUtils. validateAttrCss(ParsedAttrSpec parsedAttrSpec, Context context, dev.amp.validator.ValidatorProtos.TagSpec tagSpec, String attrName, String attrValue, ValidateTagResult result)Helper method for ValidateAttributes.static voidAttributeSpecUtils. validateAttributes(ParsedTagSpec parsedTagSpec, ParsedTagSpec bestMatchReferencePoint, Context context, ParsedHtmlTag encounteredTag, ValidateTagResult result)Validates whether the attributes set on |encountered_tag| conform to this tag specification.
-