Interface ExternalResourceBinding
-
- All Superinterfaces:
java.lang.Cloneable,MetaDataObject,java.io.Serializable,XMLizable
- All Known Implementing Classes:
ExternalResourceBinding_impl
public interface ExternalResourceBinding extends MetaDataObject
Binds anExternalResourceDependencyto anExternalResourceDescription. The biding has two parts - thekey, which indicates the resource dependency being bound, and theresource name, which identifies the resource to which that dependency is bound.
-
-
Field Summary
Fields Modifier and Type Field Description static ExternalResourceBinding[]EMPTY_RESOURCE_BINDINGS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetKey()Retrieves the key that identifies theExternalResourceDependencybeing bound.java.lang.StringgetResourceName()Retrieves the name of the actual Resource instance that will satisfy this dependency.voidsetKey(java.lang.String aKey)Sets the key that identifies theExternalResourceDependencybeing bound.voidsetResourceName(java.lang.String aName)Sets the name of the actual Resource instance that will satisfy this dependency.-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Field Detail
-
EMPTY_RESOURCE_BINDINGS
static final ExternalResourceBinding[] EMPTY_RESOURCE_BINDINGS
-
-
Method Detail
-
getKey
java.lang.String getKey()
Retrieves the key that identifies theExternalResourceDependencybeing bound. If this binding is declared in a primitive component, this is exactly the same key as is specified in theExternalResourceDependency.Within an aggregate, a slash-separated name is used to identify which component the binding applies to. For example, if an Aggregate AE contains an annotator with key
annotator1which declares a resource dependencymyResource, that Aggregate AE could binding that resource dependency by using the keyannotator1/myResource.- Returns:
- the key for this resource binding.
-
setKey
void setKey(java.lang.String aKey)
Sets the key that identifies theExternalResourceDependencybeing bound. If this binding is declared in a primitive component, this is exactly the same key as is specified in theExternalResourceDependency.Within an aggregate, a slash-separated name is used to identify which component the binding applies to. For example, if an Aggregate AE contains an annotator with key
annotator1which declares a resource dependencymyResource, that Aggregate AE could binding that resource dependency by using the keyannotator1/myResource.- Parameters:
aKey- the key for this resource binding.
-
getResourceName
java.lang.String getResourceName()
Retrieves the name of the actual Resource instance that will satisfy this dependency. This name must match one of the names specified in anExternalResourceDescriptionwithin the enclosingResourceManagerConfigurationobject.- Returns:
- the name of the resource satisfying this dependency.
-
setResourceName
void setResourceName(java.lang.String aName)
Sets the name of the actual Resource instance that will satisfy this dependency. This name must match one of the names specified in anExternalResourceDescriptionwithin the enclosingResourceManagerConfigurationobject.- Parameters:
aName- the name of the resource satisfying this dependency.
-
-