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 Object implements IShorthandResolver
Abstract IShorthandResolver implementation for corners definitions.
  • Field Details

    • _0_BOTTOM_LEFT_1

      private static final String _0_BOTTOM_LEFT_1
      The template for -bottom-left properties.
      See Also:
    • _0_BOTTOM_RIGHT_1

      private static final String _0_BOTTOM_RIGHT_1
      The template for -bottom-right properties.
      See Also:
    • _0_TOP_LEFT_1

      private static final String _0_TOP_LEFT_1
      The template for -top-left properties.
      See Also:
    • _0_TOP_RIGHT_1

      private static final String _0_TOP_RIGHT_1
      The template for -top-right properties.
      See Also:
  • Constructor Details

    • AbstractCornersShorthandResolver

      public AbstractCornersShorthandResolver()
  • Method Details

    • getPrefix

      protected abstract String getPrefix()
      Gets the prefix of a property.
      Returns:
      the prefix
    • getPostfix

      protected abstract String getPostfix()
      Gets the postfix of a property.
      Returns:
      the postfix
    • resolveShorthand

      public List<CssDeclaration> resolveShorthand(String shorthandExpression)
      Description copied from interface: IShorthandResolver
      Resolves a shorthand expression.
      Specified by:
      resolveShorthand in interface IShorthandResolver
      Parameters:
      shorthandExpression - the shorthand expression
      Returns:
      a list of CSS declaration