Class GapShorthandResolver
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.GapShorthandResolver
-
- All Implemented Interfaces:
IShorthandResolver
public class GapShorthandResolver extends java.lang.Object implements IShorthandResolver
Shorthand resolver for gap shorthand properties, can be used for different gap properties likegap
orgrid-gap
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
gapShorthandProperty
private static org.slf4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description GapShorthandResolver()
Instantiates defaultGapShorthandResolver
forgap
shorthand.GapShorthandResolver(java.lang.String gapShorthandProperty)
Instantiates defaultGapShorthandResolver
for passed gap shorthand.
-
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>
resolveGapWithTwoProperties(java.lang.String row, java.lang.String column)
java.util.List<CssDeclaration>
resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.
-
-
-
Constructor Detail
-
GapShorthandResolver
public GapShorthandResolver()
Instantiates defaultGapShorthandResolver
forgap
shorthand.
-
GapShorthandResolver
public GapShorthandResolver(java.lang.String gapShorthandProperty)
Instantiates defaultGapShorthandResolver
for passed gap shorthand.- Parameters:
gapShorthandProperty
- the name of the gap shorthand property
-
-
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
-
resolveGapWithTwoProperties
private java.util.List<CssDeclaration> resolveGapWithTwoProperties(java.lang.String row, java.lang.String column)
-
handleExpressionError
private static java.util.List<CssDeclaration> handleExpressionError(java.lang.String logMessage, java.lang.String attribute, java.lang.String shorthandExpression)
-
-