Class AbstractBoxShorthandResolver

java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.AbstractBoxShorthandResolver
All Implemented Interfaces:
IShorthandResolver
Direct Known Subclasses:
BorderColorShorthandResolver, BorderStyleShorthandResolver, BorderWidthShorthandResolver, MarginShorthandResolver, PaddingShorthandResolver

public abstract class AbstractBoxShorthandResolver extends Object implements IShorthandResolver
Abstract IShorthandResolver implementation for box definitions.
  • Constructor Details

    • AbstractBoxShorthandResolver

      public AbstractBoxShorthandResolver()
  • 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