Class MojoHelper

java.lang.Object
org.apache.camel.maven.packaging.MojoHelper

public final class MojoHelper extends Object
  • Method Details

    • getComponentPath

      public static List<Path> getComponentPath(Path dir)
    • annotationValue

      public static String annotationValue(org.jboss.jandex.AnnotationInstance ann, String key)
    • annotationValue

      public static String annotationValue(org.jboss.jandex.AnnotationInstance ann, String key, String subKey)
    • getType

      public static String getType(String type, boolean enumType, boolean isDuration)
      Gets the JSON schema type.
      Parameters:
      type - the java type
      Returns:
      the json schema type, is never null, but returns object as the generic type
    • getPrimitiveType

      public static String getPrimitiveType(String name)
      Gets the JSON schema primitive type.
      Parameters:
      name - the java type
      Returns:
      the json schema primitive type, or null if not a primitive