|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Import
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.
Method Summary | |
---|---|
URL |
findAbsoluteUrl(ResourceManager aResourceManager)
Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object. |
String |
getLocation()
Gets the location of this import's target. |
String |
getName()
Gets the name of this import's target. |
void |
setLocation(String aUri)
Sets the location of this import's target. |
void |
setName(String aName)
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 |
Method Detail |
---|
String getName()
void setName(String aName)
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.String getLocation()
void setLocation(String aUri)
aUri
- a URI specifying the location of this import's target.URL findAbsoluteUrl(ResourceManager aResourceManager) throws InvalidXMLException
aResourceManager
- resource manager to use to do name lookups
InvalidXMLException
- if the import could not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |