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
-
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 XmlizationInfo
To be implemented by subclasses to return information describing how to represent this object in XML.void
setFileUrl
(String aUrl) Sets the URL of the file.void
setLocalCache
(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, writePropertyAsElement
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
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
-
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:
getFileUrl
in interfaceFileResourceSpecifier
- Returns:
- a URL string
- See Also:
-
setFileUrl
Description copied from interface:FileResourceSpecifier
Sets the URL of the file.- Specified by:
setFileUrl
in interfaceFileResourceSpecifier
- Parameters:
aUrl
- a URL string- See Also:
-
getLocalCache
Description copied from interface:FileResourceSpecifier
Gets the file name for the local cache of a remote resource file. This is optional.- Specified by:
getLocalCache
in interfaceFileResourceSpecifier
- Returns:
- the file name of the local cache,
null
if none. - See Also:
-
setLocalCache
Description copied from interface:FileResourceSpecifier
Sets the file name for the local cache of a remote resource file. This is optional.- Specified by:
setLocalCache
in interfaceFileResourceSpecifier
- Parameters:
aFileName
- file name of the local cache,null
if none.- See Also:
-
getXmlizationInfo
Description copied from class:MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfo
in classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
-