Package dev.amp.validator
AMP validator.
-
Interface Summary Interface Description UrlErrorAdapter An url error adaptor interface. -
Class Summary Class Description AMPHtmlHandler Validation handler which accepts callbacks from HTML parser.AMPValidatorLoader This class load the validator main and extension proto ascii files.AMPValidatorManager This class manages the rules.CdataMatcher CdataMatcher maintains a constraint to check which an opening tag introduces: a tag's cdata matches constraints set by it's cdata spec.ChildTagMatcher The child tag matcher evaluates ChildTagSpec.Context The Context keeps track of the line / column that the validator is in, as well as the mandatory tag specs that have already been validated.CssLength Parses a width or height layout attribute, for the determining the layout of AMP tags.DescendantConstraints Instances of this class specify which tag names (|allowedTags|) are allowed as descendent tags of a particular tag (|tagName|).ErrorCodeMetadata Error code meta data data holder.ExtensionMissingError Extension missing error data.ExtensionsContext The extensions context keys track of the extensions that the validator has seen, as well as which have been used, which are required to be used, etc.ParsedAttrSpec This wrapper class provides access to an AttrSpec and an attribute id which is unique within its context (e.g., it's unique within the ParsedTagSpec).ParsedAttrSpecs TagSpecs specify attributes that are valid for a particular tag.ParsedHtmlTag The AMP HTML ParsedHtmlTag class.ParsedReferencePoints Holds the reference points for a particular parent tag spec, including their resolved TagSpec ids.ParsedTagSpec This class provides access to a TagSpec and a tag id which is unique within its context, the ParsedValidatorRules.ParsedUrlSpec ParsedUrlSpec is used for both ParsedAttrSpec and ParsedCdataSpec, to check URLs.ParsedValidatorRules This wrapper class provides access to the validation rules.ParsedValueProperties This class creates a map of property specs key by name.ReferencePointMatcher A tag may initialize this ReferencePointMatcher with its reference points.SrcsetParsingResult This class contains the result of srcset parsing.SrcsetSourceDef This class contains a single source within a srcset.TagSpecDispatch This class stores the dispatch rules for all TagSpecs with the same tag name.TagStack This class keeps track of the tag names and ChildTagMatchers as we enter / exit tags in the document.TagStackEntry This class is the unit definition of the TagStack collection.UrlErrorInAttrAdapter URL error in attribute adaptor.UrlErrorInStylesheetAdapter URL error in stylesheet adapter.ValidateTagResult This class contains the validation result and the best match tag spec. -
Enum Summary Enum Description ExitCondition Exit condition enumeration types.RecordValidated Record validated enumeration types.