public class OutputTypeAwareHrefEvaluator extends Object implements HrefEvaluator
ConversionContextOutputType in the ConversionContext and evaluates href
values appropriately for the output type targeted.| Constructor and Description |
|---|
OutputTypeAwareHrefEvaluator(Map<String,HrefEvaluator> outputTypeEvaluators,
HrefEvaluator defaultEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
String |
createHref(ConversionContext context,
Object entity,
String anchor)
Create the appropriate href attribute value for the supplied ConversionContext.
|
public OutputTypeAwareHrefEvaluator(Map<String,HrefEvaluator> outputTypeEvaluators, HrefEvaluator defaultEvaluator)
outputTypeEvaluators - a Map where the key is a ConversionContextOutputType and the value is the HrefEvaluator to use for that output typedefaultEvaluator - the HrefEvaluator to use if no specific one is foundpublic String createHref(ConversionContext context, Object entity, String anchor)
HrefEvaluatorcreateHref in interface HrefEvaluatorcontext - the ConversionContext providing information about the conversion being performed, including the
target output type e.g. display, pdfentity - the objectanchor - an option parameter specifying an anchor component for the href attribute. This may be null if
there is no destination anchor.ConversionContextOutputType} for the supported outputTypeCopyright © 2003–2020 Atlassian. All rights reserved.