Class CssDeclaration


  • public class CssDeclaration
    extends java.lang.Object
    Class to store a CSS declaration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String expression
      The expression.
      private java.lang.String property
      The property.
    • Constructor Summary

      Constructors 
      Constructor Description
      CssDeclaration​(java.lang.String property, java.lang.String expression)
      Instantiates a new CSS declaration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExpression()
      Gets the expression.
      java.lang.String getProperty()
      Gets the property.
      (package private) java.lang.String resolveAlias​(java.lang.String normalizedCssProperty)
      Resolves css property aliases.
      void setExpression​(java.lang.String expression)
      Sets the expression.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • property

        private java.lang.String property
        The property.
      • expression

        private java.lang.String expression
        The expression.
    • Constructor Detail

      • CssDeclaration

        public CssDeclaration​(java.lang.String property,
                              java.lang.String expression)
        Instantiates a new CSS declaration.
        Parameters:
        property - the property
        expression - the expression
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getProperty

        public java.lang.String getProperty()
        Gets the property.
        Returns:
        the property
      • getExpression

        public java.lang.String getExpression()
        Gets the expression.
        Returns:
        the expression
      • setExpression

        public void setExpression​(java.lang.String expression)
        Sets the expression.
        Parameters:
        expression - the new expression
      • resolveAlias

        java.lang.String resolveAlias​(java.lang.String normalizedCssProperty)
        Resolves css property aliases. For example, word-wrap is an alias for overflow-wrap property.
        Parameters:
        normalizedCssProperty - css property to be resolved as alias
        Returns:
        resolved property if the provided property was an alias, otherwise original provided property.