Interface Import
- All Superinterfaces:
Cloneable
,MetaDataObject
,Serializable
,XMLizable
- All Known Implementing Classes:
Import_impl
An import declaration. These are currently used to import type systems, indexes, and type
priorities. Imports may be by location (relative URL) or name (a Java-style compound name, looked
up in the classpath), but not both.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAbsoluteUrl
(ResourceManager aResourceManager) Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.Gets the location of this import's target.getName()
Gets the name of this import's target.void
setLocation
(String aUri) Sets the location of this import's target.void
Sets the name of this import's target.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 Details
-
EMPTY_IMPORTS
-
-
Method Details
-
getName
String getName()Gets the name of this import's target.- Returns:
- a Java-style compound name which specifies the target of this import. This will be located by appending ".xml" to the name and searching the classpath.
-
setName
Sets the name of this import's target.- Parameters:
aName
- a Java-style compound name which specifies the target of this import. This will be located by appending ".xml" to the name and searching the classpath.
-
getLocation
String getLocation()Gets the location of this import's target.- Returns:
- a URI specifying the location of this import's target.
-
setLocation
Sets the location of this import's target.- Parameters:
aUri
- a URI specifying the location of this import's target.
-
findAbsoluteUrl
Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.- Parameters:
aResourceManager
- resource manager to use to do name lookups- Returns:
- the absolute URL for this import
- Throws:
InvalidXMLException
- if the import could not be resolved
-