public class MappingProvider extends CasConfigurableProviderBase<Map<String,String>>
Modifier and Type | Field and Description |
---|---|
static String |
BASE_TYPE |
ARTIFACT_ID, CATCH_ALL, FORCE_AUTO_LOAD, GROUP_ID, LANGUAGE, LOCATION, NOT_REQUIRED, PACKAGE, PROP_REPO_CACHE, PROP_REPO_ID, PROP_REPO_OFFLINE, PROP_REPO_URL, SHARABLE, VARIANT, VERSION
Constructor and Description |
---|
MappingProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addTagMappingImport(String aLayerPrefix,
HasResourceMetadata aSource) |
void |
configure(org.apache.uima.cas.CAS aCas) |
protected URL |
followRedirects(URL aUrl) |
String |
getTag(String aTag) |
Set<String> |
getTags() |
org.apache.uima.cas.Type |
getTagType(String aTag)
Get the type for the given tag.
|
String |
getTagTypeName(String aTag)
Get the type for the given tag.
|
protected Map<String,String> |
produceResource(URL aUrl) |
getProperties
addAutoOverride, addImport, applyAutoOverrides, configure, getAggregatedProperties, getAutoOverrides, getClassLoader, getContextClass, getDefault, getLastModelLocation, getModelLocation, getModelLocation, getModelResolver, getModelVersionFromMavenPom, getOverride, getResource, getResourceMetaData, init, loadMetadata, loadResource, mergeProperties, removeDefault, removeImport, removeOverride, setContextClass, setContextObject, setDefault, setDefaultVariants, setDefaultVariantsLocation, setOverride
public static final String BASE_TYPE
public void configure(org.apache.uima.cas.CAS aCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
configure
in class CasConfigurableProviderBase<Map<String,String>>
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public org.apache.uima.cas.Type getTagType(String aTag)
aTag
- a tag.IllegalStateException
- if the type could not be locatedpublic String getTagTypeName(String aTag)
aTag
- a tag.IllegalStateException
- if the type could not be locatedprotected Map<String,String> produceResource(URL aUrl) throws IOException
produceResource
in class ResourceObjectProviderBase<Map<String,String>>
IOException
protected URL followRedirects(URL aUrl) throws IOException
followRedirects
in class ResourceObjectProviderBase<Map<String,String>>
IOException
public void addTagMappingImport(String aLayerPrefix, HasResourceMetadata aSource)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.