Class JavaClassConverterContext
java.lang.Object
org.apache.maven.tools.plugin.extractor.annotations.converter.JavaClassConverterContext
- All Implemented Interfaces:
- ConverterContext
- 
Constructor SummaryConstructorsConstructorDescriptionJavaClassConverterContext(com.thoughtworks.qdox.model.JavaClass mojoClass, com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder, Map<String, MojoAnnotatedClass> mojoAnnotatedClasses, JavadocLinkGenerator linkGenerator, int lineNumber) JavaClassConverterContext(com.thoughtworks.qdox.model.JavaClass mojoClass, com.thoughtworks.qdox.model.JavaClass declaringClass, com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder, Map<String, MojoAnnotatedClass> mojoAnnotatedClasses, JavadocLinkGenerator linkGenerator, int lineNumber) 
- 
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
- 
Constructor Details- 
JavaClassConverterContextpublic JavaClassConverterContext(com.thoughtworks.qdox.model.JavaClass mojoClass, com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder, Map<String, MojoAnnotatedClass> mojoAnnotatedClasses, JavadocLinkGenerator linkGenerator, int lineNumber) 
- 
JavaClassConverterContextpublic JavaClassConverterContext(com.thoughtworks.qdox.model.JavaClass mojoClass, com.thoughtworks.qdox.model.JavaClass declaringClass, com.thoughtworks.qdox.JavaProjectBuilder javaProjectBuilder, Map<String, MojoAnnotatedClass> mojoAnnotatedClasses, JavadocLinkGenerator linkGenerator, int lineNumber) 
 
- 
- 
Method Details- 
getModuleName- Specified by:
- getModuleNamein interface- ConverterContext
- Returns:
- the module name of the container class
 
- 
getPackageName- Specified by:
- getPackageNamein interface- ConverterContext
- Returns:
- the package name of the container class
 
- 
getLocation- Specified by:
- getLocationin interface- ConverterContext
- 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)
 
- 
isReferencedBy- Specified by:
- isReferencedByin interface- ConverterContext
- Parameters:
- reference-
- Returns:
- true in case either the current context class or any of its super classes are referenced
 
- 
canGetUrl- Specified by:
- canGetUrlin interface- ConverterContext
- Returns:
- trueif links to javadoc pages could potentially be generated with- ConverterContext.getUrl(FullyQualifiedJavadocReference).
 
- 
getUrlDescription copied from interface:ConverterContextReturns a (deep-)link to the javadoc page for the given reference- Specified by:
- getUrlin interface- ConverterContext
- Parameters:
- reference- the reference for which to get the url
- Returns:
- the link
 
- 
resolveReferenceDescription copied from interface:ConverterContextResolves a given javadoc reference, according to the rules of Javadoc's search order.- Specified by:
- resolveReferencein interface- ConverterContext
- Parameters:
- reference- the reference to resolve
- Returns:
- the resolved fully qualified reference
 
- 
getStaticFieldValueDescription copied from interface:ConverterContextReturns the value of a referenced static field.- Specified by:
- getStaticFieldValuein interface- ConverterContext
- Parameters:
- reference- the code reference towards a static field
- Returns:
- the value of the static field given by the reference
 
- 
getInternalJavadocSiteBaseUrlDescription copied from interface:ConverterContextReturns the base url to use for internal javadoc links- Specified by:
- getInternalJavadocSiteBaseUrlin interface- ConverterContext
- Returns:
- the base url for internal javadoc links (may be null).
 
- 
setAttributeDescription copied from interface:ConverterContextStores some attribute in the current context- Specified by:
- setAttributein interface- ConverterContext
- Type Parameters:
- T-
- Parameters:
- name-
- value-
- Returns:
- the old attribute value or null.
 
- 
getAttributeDescription copied from interface:ConverterContextRetrieves some attribute value from the current context.- Specified by:
- getAttributein interface- ConverterContext
- Type Parameters:
- T-
- Parameters:
- name-
- clazz-
- defaultValue-
- Returns:
- the value of the attribute with the given name or nullif it does not exist
 
 
-