Class CssDeclaration

java.lang.Object
com.itextpdf.styledxmlparser.css.CssDeclaration

public class CssDeclaration extends Object
Class to store a CSS declaration.
  • Field Details

    • property

      private String property
      The property.
    • expression

      private String expression
      The expression.
  • Constructor Details

    • CssDeclaration

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

    • toString

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

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

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

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

      String resolveAlias(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.