Class ValidateTagResult


  • public class ValidateTagResult
    extends Object
    This class contains the validation result and the best match tag spec.
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • ValidateTagResult

        public ValidateTagResult​(@Nonnull
                                 dev.amp.validator.ValidatorProtos.ValidationResult.Builder validationResult,
                                 ParsedTagSpec parsedTagSpec)
        Constructor.
        Parameters:
        validationResult - validation result.
        parsedTagSpec - parsed tag spec.
    • Method Detail

      • getBestMatchTagSpec

        public ParsedTagSpec getBestMatchTagSpec()
        Return best match tag spec.
        Returns:
        returns best match tag spec.
      • setBestMatchTagSpec

        public void setBestMatchTagSpec​(@Nonnull
                                        ParsedTagSpec bestMatchTagSpec)
        Setting the best match tag spec.
        Parameters:
        bestMatchTagSpec - best match tag spec.
      • getValidationResult

        public dev.amp.validator.ValidatorProtos.ValidationResult.Builder getValidationResult()
        Getting the validation result.
        Returns:
        returns the validation result.
      • setValidationResult

        public void setValidationResult​(@Nonnull
                                        dev.amp.validator.ValidatorProtos.ValidationResult.Builder validationResult)
        Setting the validation result.
        Parameters:
        validationResult - validation result.
      • setInlineStyleCssBytes

        public void setInlineStyleCssBytes​(int inlineStyleCssBytes)
        Setter for inlineStyleCssBytes
        Parameters:
        inlineStyleCssBytes - the allowed byte length for css
      • getInlineStyleCssBytes

        public int getInlineStyleCssBytes()
        Getter for inlineStyleCssBytes
        Returns:
        the allowed byte length for css