Package org.apache.uima.resource.impl
Class FileResourceSpecifier_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.impl.FileResourceSpecifier_impl
- All Implemented Interfaces:
Serializable,Cloneable,FileResourceSpecifier,MetaDataObject,ResourceSpecifier,XMLizable
public class FileResourceSpecifier_impl
extends MetaDataObject_impl
implements FileResourceSpecifier
Reference implementation of
FileResourceSpecifier.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer -
Field Summary
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUIMA-5274 Expand any references to external overrides when name and location are fetched.Gets the file name for the local cache of a remote resource file.protected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.voidsetFileUrl(String aUrl) Sets the URL of the file.voidsetLocalCache(String aFileName) Sets the file name for the local cache of a remote resource file.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Constructor Details
-
FileResourceSpecifier_impl
public FileResourceSpecifier_impl()Creates a newFileResourceSpecifier_impl.
-
-
Method Details
-
getFileUrl
UIMA-5274 Expand any references to external overrides when name and location are fetched. Cache the value if the evaluation succeeds (later fetches may not have the settings defined!) Leave value unmodified if any settings are undefined and log a warning message.- Specified by:
getFileUrlin interfaceFileResourceSpecifier- Returns:
- a URL string
- See Also:
-
setFileUrl
Description copied from interface:FileResourceSpecifierSets the URL of the file.- Specified by:
setFileUrlin interfaceFileResourceSpecifier- Parameters:
aUrl- a URL string- See Also:
-
getLocalCache
Description copied from interface:FileResourceSpecifierGets the file name for the local cache of a remote resource file. This is optional.- Specified by:
getLocalCachein interfaceFileResourceSpecifier- Returns:
- the file name of the local cache,
nullif none. - See Also:
-
setLocalCache
Description copied from interface:FileResourceSpecifierSets the file name for the local cache of a remote resource file. This is optional.- Specified by:
setLocalCachein interfaceFileResourceSpecifier- Parameters:
aFileName- file name of the local cache,nullif none.- See Also:
-
getXmlizationInfo
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-