Class AbstractCornersShorthandResolver
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.AbstractCornersShorthandResolver
-
- All Implemented Interfaces:
IShorthandResolver
- Direct Known Subclasses:
BorderRadiusShorthandResolver
public abstract class AbstractCornersShorthandResolver extends java.lang.Object implements IShorthandResolver
AbstractIShorthandResolver
implementation for corners definitions.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
_0_BOTTOM_LEFT_1
The template for -bottom-left properties.private static java.lang.String
_0_BOTTOM_RIGHT_1
The template for -bottom-right properties.private static java.lang.String
_0_TOP_LEFT_1
The template for -top-left properties.private static java.lang.String
_0_TOP_RIGHT_1
The template for -top-right properties.
-
Constructor Summary
Constructors Constructor Description AbstractCornersShorthandResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getPostfix()
Gets the postfix of a property.protected abstract java.lang.String
getPrefix()
Gets the prefix of a property.java.util.List<CssDeclaration>
resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.
-
-
-
Field Detail
-
_0_BOTTOM_LEFT_1
private static final java.lang.String _0_BOTTOM_LEFT_1
The template for -bottom-left properties.- See Also:
- Constant Field Values
-
_0_BOTTOM_RIGHT_1
private static final java.lang.String _0_BOTTOM_RIGHT_1
The template for -bottom-right properties.- See Also:
- Constant Field Values
-
_0_TOP_LEFT_1
private static final java.lang.String _0_TOP_LEFT_1
The template for -top-left properties.- See Also:
- Constant Field Values
-
_0_TOP_RIGHT_1
private static final java.lang.String _0_TOP_RIGHT_1
The template for -top-right properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrefix
protected abstract java.lang.String getPrefix()
Gets the prefix of a property.- Returns:
- the prefix
-
getPostfix
protected abstract java.lang.String getPostfix()
Gets the postfix of a property.- Returns:
- the postfix
-
resolveShorthand
public java.util.List<CssDeclaration> resolveShorthand(java.lang.String shorthandExpression)
Description copied from interface:IShorthandResolver
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
-