Class PlaceItemsShorthandResolver
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.PlaceItemsShorthandResolver
-
- All Implemented Interfaces:
IShorthandResolver
public class PlaceItemsShorthandResolver extends java.lang.Object implements IShorthandResolver
IShorthandResolver
implementation for place-items.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description PlaceItemsShorthandResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.List<CssDeclaration>
handleExpressionError(java.lang.String logMessage, java.lang.String attribute, java.lang.String shorthandExpression)
private java.util.List<CssDeclaration>
resolveAlignItemsAndJustifyItems(java.lang.String alignItems, java.lang.String justifyItems)
java.util.List<CssDeclaration>
resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.private java.util.List<CssDeclaration>
resolveShorthandWithFourWords(java.lang.String firstWord, java.lang.String secondWord, java.lang.String thirdWord, java.lang.String fourthWord)
private java.util.List<CssDeclaration>
resolveShorthandWithOneWord(java.lang.String firstWord)
private java.util.List<CssDeclaration>
resolveShorthandWithThreeWords(java.lang.String firstWord, java.lang.String secondWord, java.lang.String thirdWord)
private java.util.List<CssDeclaration>
resolveShorthandWithTwoWords(java.lang.String firstWord, java.lang.String secondWord)
-
-
-
Method Detail
-
resolveShorthand
public java.util.List<CssDeclaration> resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
resolveShorthandWithOneWord
private java.util.List<CssDeclaration> resolveShorthandWithOneWord(java.lang.String firstWord)
-
resolveShorthandWithTwoWords
private java.util.List<CssDeclaration> resolveShorthandWithTwoWords(java.lang.String firstWord, java.lang.String secondWord)
-
resolveShorthandWithThreeWords
private java.util.List<CssDeclaration> resolveShorthandWithThreeWords(java.lang.String firstWord, java.lang.String secondWord, java.lang.String thirdWord)
-
resolveShorthandWithFourWords
private java.util.List<CssDeclaration> resolveShorthandWithFourWords(java.lang.String firstWord, java.lang.String secondWord, java.lang.String thirdWord, java.lang.String fourthWord)
-
resolveAlignItemsAndJustifyItems
private java.util.List<CssDeclaration> resolveAlignItemsAndJustifyItems(java.lang.String alignItems, java.lang.String justifyItems)
-
handleExpressionError
private static java.util.List<CssDeclaration> handleExpressionError(java.lang.String logMessage, java.lang.String attribute, java.lang.String shorthandExpression)
-
-