Class CssDeclaration
java.lang.Object
com.itextpdf.styledxmlparser.css.CssDeclaration
Class to store a CSS declaration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssDeclaration(String property, String expression) Instantiates a new CSS declaration. -
Method Summary
Modifier and TypeMethodDescriptionGets the expression.Gets the property.(package private) StringresolveAlias(String normalizedCssProperty) Resolves css property aliases.voidsetExpression(String expression) Sets the expression.toString()
-
Field Details
-
property
The property. -
expression
The expression.
-
-
Constructor Details
-
CssDeclaration
-
-
Method Details
-
toString
-
getProperty
-
getExpression
-
setExpression
Sets the expression.- Parameters:
expression- the new expression
-
resolveAlias
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.
-