Class Property

java.lang.Object
org.owasp.validator.html.model.Property

public class Property extends Object
A model for CSS properties and the "rules" they must follow (either literals or regular expressions) in order to be considered valid.
Author:
Jason Li
  • Constructor Details

  • Method Details

    • getAllowedRegExp

      public List<Pattern> getAllowedRegExp()
      Return a List of allowed regular expressions
      Returns:
      The List of allowed regular expressions.
    • getAllowedValues

      public List<String> getAllowedValues()
      Return a List of allowed literal values
      Returns:
      The List of allowed literal values.
    • getShorthandRefs

      public List<String> getShorthandRefs()
      Return a List of allowed shorthand references
      Returns:
      The List of allowed shorthand references.
    • getName

      public String getName()
      Get the name of the property.
      Returns:
      The name of the property.