Package dev.amp.validator
Class ValidateTagResult
- java.lang.Object
-
- dev.amp.validator.ValidateTagResult
-
public class ValidateTagResult extends Object
This class contains the validation result and the best match tag spec.- Author:
- nhant01, GeorgeLuo
-
-
Constructor Summary
Constructors Constructor Description ValidateTagResult(dev.amp.validator.ValidatorProtos.ValidationResult.Builder validationResult, ParsedTagSpec parsedTagSpec)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParsedTagSpecgetBestMatchTagSpec()Return best match tag spec.intgetInlineStyleCssBytes()Getter for inlineStyleCssBytesdev.amp.validator.ValidatorProtos.ValidationResult.BuildergetValidationResult()Getting the validation result.voidsetBestMatchTagSpec(ParsedTagSpec bestMatchTagSpec)Setting the best match tag spec.voidsetInlineStyleCssBytes(int inlineStyleCssBytes)Setter for inlineStyleCssBytesvoidsetValidationResult(dev.amp.validator.ValidatorProtos.ValidationResult.Builder validationResult)Setting the validation result.
-
-
-
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
-
-