com.atlassian.confluence.content.render.xhtml.links
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
 String createHref(ConversionContext context, Object object, String anchor)
          Create the appropriate href attribute value for the supplied ConversionContext.
 

Method Detail

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.
See Also:
ConversionContextOutputType} for the supported outputType


Copyright © 2003-2013 Atlassian. All Rights Reserved.