Class FlexShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.FlexShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
IShorthandResolver implementation for flex.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidfillUnresolvedPropertiesWithDefaultValues(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:
resolveShorthandin 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)
-