public final class MetaDataUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
getImportProperties(MetaDataType aType)
Get system properties indicating which locations to scan for descriptions of the given type.
|
static String[] |
getManifestLocations(MetaDataType aType)
Get manifest locations for the specified type.
|
static String[] |
resolve(String... patterns)
Resolve a list of patterns to a set of URLs.
|
static String[] |
scanDescriptors(MetaDataType aType)
Get all currently accessible descriptor locations for the given type.
|
static String[] |
scanImportsAndManifests(MetaDataType aType)
Scan patterns from manifest files and from the specified system property.
|
public static String[] scanImportsAndManifests(MetaDataType aType) throws org.apache.uima.resource.ResourceInitializationException
aType
- the type of metadata to scan fororg.apache.uima.resource.ResourceInitializationException
- if there was a problem resolving the metadata locations from the patternspublic static String[] resolve(String... patterns) throws org.apache.uima.resource.ResourceInitializationException
patterns
- the patterns to resolveorg.apache.uima.resource.ResourceInitializationException
- if the locations could not be resolved.public static String[] getManifestLocations(MetaDataType aType)
aType
- the type of metadata to scan forpublic static String[] getImportProperties(MetaDataType aType)
aType
- the type of metadata to scan forpublic static String[] scanDescriptors(MetaDataType aType) throws org.apache.uima.resource.ResourceInitializationException
aType
- the type of metadata to scan fororg.apache.uima.resource.ResourceInitializationException
- if the locations could not be resolved.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.