Package org.apache.uima.fit.maven.util
Class Util
java.lang.Object
org.apache.uima.fit.maven.util.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLClassLoader
getClassloader
(org.apache.maven.project.MavenProject aProject, String aIncludeScopeThreshold) Create a class loader which covers the classes compiled in the current project and all dependencies.static String
getClassName
(org.apache.maven.project.MavenProject aProject, String aFile) Get the class name for a class file.static String
getComponentDocumentation
(com.thoughtworks.qdox.model.JavaSource aAst, String aComponentTypeName) static String
getParameterDocumentation
(com.thoughtworks.qdox.model.JavaSource aAst, String aParameterField, String aParameterNameConstantField) static ComponentType
getType
(ClassLoader aClassLoader, Class aClass) Determine what kind of class it is.static boolean
isComponent
(ClassLoader aClassLoader, Class aClass) static com.thoughtworks.qdox.model.JavaSource
parseSource
(String aSourceFile, String aEncoding) static String
postProcessJavaDoc
(String aJavaDoc)
-
Method Details
-
parseSource
public static com.thoughtworks.qdox.model.JavaSource parseSource(String aSourceFile, String aEncoding) throws IOException - Throws:
IOException
-
getComponentDocumentation
-
postProcessJavaDoc
-
getParameterDocumentation
-
getClassName
Get the class name for a class file. -
getClassloader
public static URLClassLoader getClassloader(org.apache.maven.project.MavenProject aProject, String aIncludeScopeThreshold) throws org.apache.maven.plugin.MojoExecutionException Create a class loader which covers the classes compiled in the current project and all dependencies.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isComponent
public static boolean isComponent(ClassLoader aClassLoader, Class aClass) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getType
public static ComponentType getType(ClassLoader aClassLoader, Class aClass) throws ClassNotFoundException Determine what kind of class it is.- Parameters:
aClassLoader
- the class loader by which the component was loaded.- Throws:
ClassNotFoundException
-