Package com.itextpdf.styledxmlparser.css
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) String
resolveAlias
(String normalizedCssProperty) Resolves css property aliases.void
setExpression
(String expression) Sets the expression.toString()
-
Field Details
-
property
The property. -
expression
The expression.
-
-
Constructor Details
-
CssDeclaration
Instantiates a new CSS declaration.- Parameters:
property
- the propertyexpression
- the expression
-
-
Method Details
-
toString
-
getProperty
Gets the property.- Returns:
- the property
-
getExpression
Gets the expression.- Returns:
- the expression
-
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.
-