Class FlexShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.FlexShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
fillUnresolvedPropertiesWithDefaultValues
(List<CssDeclaration> resolvedProperties) private static List
<CssDeclaration> handleExpressionError
(String logMessage, String attribute, String shorthandExpression) resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.private List
<CssDeclaration> resolveShorthandWithOneValue
(String firstProperty) private List
<CssDeclaration> resolveShorthandWithThreeValues
(String firstProperty, String secondProperty, String thirdProperty) private List
<CssDeclaration> resolveShorthandWithTwoValues
(String firstProperty, String secondProperty)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
FlexShorthandResolver
public FlexShorthandResolver()
-
-
Method Details
-
resolveShorthand
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
resolveShorthandWithOneValue
-
resolveShorthandWithTwoValues
private List<CssDeclaration> resolveShorthandWithTwoValues(String firstProperty, String secondProperty) -
resolveShorthandWithThreeValues
private List<CssDeclaration> resolveShorthandWithThreeValues(String firstProperty, String secondProperty, String thirdProperty) -
fillUnresolvedPropertiesWithDefaultValues
-
handleExpressionError
private static List<CssDeclaration> handleExpressionError(String logMessage, String attribute, String shorthandExpression)
-