Class AbstractCornersShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.AbstractCornersShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
- Direct Known Subclasses:
BorderRadiusShorthandResolver
Abstract
IShorthandResolver
implementation for corners definitions.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
The template for -bottom-left properties.private static final String
The template for -bottom-right properties.private static final String
The template for -top-left properties.private static final String
The template for -top-right properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Gets the postfix of a property.protected abstract String
Gets the prefix of a property.resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.
-
Field Details
-
_0_BOTTOM_LEFT_1
The template for -bottom-left properties.- See Also:
-
_0_BOTTOM_RIGHT_1
The template for -bottom-right properties.- See Also:
-
_0_TOP_LEFT_1
The template for -top-left properties.- See Also:
-
_0_TOP_RIGHT_1
The template for -top-right properties.- See Also:
-
-
Constructor Details
-
AbstractCornersShorthandResolver
public AbstractCornersShorthandResolver()
-
-
Method Details
-
getPrefix
Gets the prefix of a property.- Returns:
- the prefix
-
getPostfix
Gets the postfix of a property.- Returns:
- the postfix
-
resolveShorthand
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
-