Class CSSProperty


  • public class CSSProperty
    extends java.lang.Object
    CSS property declaration data.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSProperty​(java.lang.String name, java.lang.String value, java.util.Optional<java.lang.Boolean> important, java.util.Optional<java.lang.Boolean> implicit, java.util.Optional<java.lang.String> text, java.util.Optional<java.lang.Boolean> parsedOk, java.util.Optional<java.lang.Boolean> disabled, java.util.Optional<SourceRange> range)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Boolean> getDisabled()
      Whether the property is disabled by the user (present for source-based properties only).
      java.util.Optional<java.lang.Boolean> getImplicit()
      Whether the property is implicit (implies `false` if absent).
      java.util.Optional<java.lang.Boolean> getImportant()
      Whether the property has "!important" annotation (implies `false` if absent).
      java.lang.String getName()
      The property name.
      java.util.Optional<java.lang.Boolean> getParsedOk()
      Whether the property is understood by the browser (implies `true` if absent).
      java.util.Optional<SourceRange> getRange()
      The entire property range in the enclosing style declaration (if available).
      java.util.Optional<java.lang.String> getText()
      The full property text as specified in the style.
      java.lang.String getValue()
      The property value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSSProperty

        public CSSProperty​(java.lang.String name,
                           java.lang.String value,
                           java.util.Optional<java.lang.Boolean> important,
                           java.util.Optional<java.lang.Boolean> implicit,
                           java.util.Optional<java.lang.String> text,
                           java.util.Optional<java.lang.Boolean> parsedOk,
                           java.util.Optional<java.lang.Boolean> disabled,
                           java.util.Optional<SourceRange> range)
    • Method Detail

      • getName

        public java.lang.String getName()
        The property name.
      • getValue

        public java.lang.String getValue()
        The property value.
      • getImportant

        public java.util.Optional<java.lang.Boolean> getImportant()
        Whether the property has "!important" annotation (implies `false` if absent).
      • getImplicit

        public java.util.Optional<java.lang.Boolean> getImplicit()
        Whether the property is implicit (implies `false` if absent).
      • getText

        public java.util.Optional<java.lang.String> getText()
        The full property text as specified in the style.
      • getParsedOk

        public java.util.Optional<java.lang.Boolean> getParsedOk()
        Whether the property is understood by the browser (implies `true` if absent).
      • getDisabled

        public java.util.Optional<java.lang.Boolean> getDisabled()
        Whether the property is disabled by the user (present for source-based properties only).
      • getRange

        public java.util.Optional<SourceRange> getRange()
        The entire property range in the enclosing style declaration (if available).