Class MetaDataUtil

java.lang.Object
org.apache.uima.fit.internal.MetaDataUtil

public final class MetaDataUtil extends Object
INTERNAL API - Utility methods to locate and access uimaFIT meta data.
  • Method Details

    • scanImportsAndManifests

      public static String[] scanImportsAndManifests(MetaDataType aType) throws org.apache.uima.resource.ResourceInitializationException
      Scan patterns from manifest files and from the specified system property.
      Parameters:
      aType - the type of metadata to scan for
      Returns:
      array or all patterns found.
      Throws:
      org.apache.uima.resource.ResourceInitializationException - if there was a problem resolving the metadata locations from the patterns
    • resolve

      public static String[] resolve(String... patterns) throws org.apache.uima.resource.ResourceInitializationException
      Resolve a list of patterns to a set of URLs.
      Parameters:
      patterns - the patterns to resolve
      Returns:
      an array of locations.
      Throws:
      org.apache.uima.resource.ResourceInitializationException - if the locations could not be resolved.
    • getManifestLocations

      public static String[] getManifestLocations(MetaDataType aType)
      Get manifest locations for the specified type.
      Parameters:
      aType - the type of metadata to scan for
      Returns:
      the manifest locations for this kind of metadata to scan
    • getImportProperties

      public static String[] getImportProperties(MetaDataType aType)
      Get system properties indicating which locations to scan for descriptions of the given type. A list of locations may be given separated by ";".
      Parameters:
      aType - the type of metadata to scan for
      Returns:
      the locations for this kind of metadata to scan
    • scanDescriptors

      public static String[] scanDescriptors(MetaDataType aType) throws org.apache.uima.resource.ResourceInitializationException
      Get all currently accessible descriptor locations for the given type.
      Parameters:
      aType - the type of metadata to scan for
      Returns:
      an array of locations.
      Throws:
      org.apache.uima.resource.ResourceInitializationException - if the locations could not be resolved.