Interface HrefEvaluator

All Known Implementing Classes:
AbsoluteHrefEvaluator, DefaultHrefEvaluator, HtmlExportHrefEvaluator, OutputTypeAwareHrefEvaluator

public interface HrefEvaluator
The marshalling of links involves creating the actual href attribute describing the destination of the link. This interface describes a class that will create the appropriate href value based on the ConversionContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    createHref(ConversionContext context, Object object, String anchor)
    Create the appropriate href attribute value for the supplied ConversionContext.
  • Method Details

    • createHref

      String createHref(ConversionContext context, Object object, String anchor)
      Create the appropriate href attribute value for the supplied ConversionContext.
      Parameters:
      context - the ConversionContext providing information about the conversion being performed, including the target output type e.g. display, pdf
      object - the object
      anchor - an option parameter specifying an anchor component for the href attribute. This may be null if there is no destination anchor.
      Returns:
      the attribute value appropriate for the outputType specified.