Interface ConverterContext
- All Known Implementing Classes:
- JavaClassConverterContext
public interface ConverterContext
Context which is passed to 
JavadocBlockTagsToXhtmlConverter, JavadocInlineTagsToXhtmlConverter,
 JavadocBlockTagToHtmlConverter and JavadocBlockTagToHtmlConverter.
 It contains metadata about the container class and allows to resolve class or member names
 which are not fully qualified as well as creating (deep-) links to javadoc pages.- 
Method SummaryModifier and TypeMethodDescriptionboolean<T> TgetAttribute(String name, Class<T> clazz, T defaultValue) Retrieves some attribute value from the current context.Returns the base url to use for internal javadoc linksReturns the value of a referenced static field.getUrl(FullyQualifiedJavadocReference reference) Returns a (deep-)link to the javadoc page for the given referencebooleanisReferencedBy(FullyQualifiedJavadocReference reference) resolveReference(JavadocReference reference) Resolves a given javadoc reference, according to the rules of Javadoc's search order.<T> TsetAttribute(String name, T value) Stores some attribute in the current context
- 
Method Details- 
getModuleName- Returns:
- the module name of the container class
 
- 
getPackageName- Returns:
- the package name of the container class
 
- 
isReferencedBy- Parameters:
- reference-
- Returns:
- true in case either the current container class or any of its super classes are referenced
 
- 
getLocation- Returns:
- a location text (human readable) indicating where in the container class the conversion is triggered (should be as specific as possible to ease debugging)
 
- 
resolveReferenceResolves a given javadoc reference, according to the rules of Javadoc's search order.- Parameters:
- reference- the reference to resolve
- Returns:
- the resolved fully qualified reference
- Throws:
- IllegalArgumentException- in case the reference cannot be resolved
 
- 
canGetUrlboolean canGetUrl()- Returns:
- trueif links to javadoc pages could potentially be generated with- getUrl(FullyQualifiedJavadocReference).
 
- 
getUrlReturns a (deep-)link to the javadoc page for the given reference- Parameters:
- reference- the reference for which to get the url
- Returns:
- the link
- Throws:
- IllegalArgumentException- in case no javadoc link could be generated for the given reference
- IllegalStateException- in case no javadoc source sites have been configured (i.e.- canGetUrl()returns- false)
 
- 
getStaticFieldValueReturns the value of a referenced static field.- Parameters:
- reference- the code reference towards a static field
- Returns:
- the value of the static field given by the reference
- Throws:
- IllegalArgumentException- in case the reference does not point to a valid static field
 
- 
getInternalJavadocSiteBaseUrlReturns the base url to use for internal javadoc links- Returns:
- the base url for internal javadoc links (may be null).
 
- 
setAttributeStores some attribute in the current context- Type Parameters:
- T-
- Parameters:
- name-
- value-
- Returns:
- the old attribute value or null.
 
- 
getAttributeRetrieves some attribute value from the current context.- Type Parameters:
- T-
- Parameters:
- name-
- clazz-
- defaultValue-
- Returns:
- the value of the attribute with the given name or nullif it does not exist
 
 
-