Class Util

java.lang.Object
org.apache.uima.fit.maven.util.Util

public final class Util extends Object
  • Method Details

    • parseSource

      public static com.thoughtworks.qdox.model.JavaSource parseSource(String aSourceFile, String aEncoding) throws IOException
      Throws:
      IOException
    • getComponentDocumentation

      public static String getComponentDocumentation(com.thoughtworks.qdox.model.JavaSource aAst, String aComponentTypeName)
    • postProcessJavaDoc

      public static String postProcessJavaDoc(String aJavaDoc)
    • getParameterDocumentation

      public static String getParameterDocumentation(com.thoughtworks.qdox.model.JavaSource aAst, String aParameterField, String aParameterNameConstantField)
    • getClassName

      public static String getClassName(org.apache.maven.project.MavenProject aProject, String aFile)
      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