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:
java.io.Serializable,java.lang.Cloneable,FileResourceSpecifier,MetaDataObject,ResourceSpecifier,XMLizable
public class FileResourceSpecifier_impl extends MetaDataObject_impl implements FileResourceSpecifier
Reference implementation ofFileResourceSpecifier.- See Also:
- Serialized Form
-
-
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 Modifier and Type Field Description private java.lang.StringmFileUrlURL of the file.private java.lang.StringmLocalCacheFilename of the local cache (null if none).(package private) static longserialVersionUIDprivate static XmlizationInfoXMLIZATION_INFO-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
-
Constructor Summary
Constructors Constructor Description FileResourceSpecifier_impl()Creates a newFileResourceSpecifier_impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileUrl()UIMA-5274 Expand any references to external overrides when name and location are fetched.java.lang.StringgetLocalCache()Gets the file name for the local cache of a remote resource file.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidsetFileUrl(java.lang.String aUrl)Sets the URL of the file.voidsetLocalCache(java.lang.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
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
mFileUrl
private java.lang.String mFileUrl
URL of the file.
-
mLocalCache
private java.lang.String mLocalCache
Filename of the local cache (null if none).
-
XMLIZATION_INFO
private static final XmlizationInfo XMLIZATION_INFO
-
-
Method Detail
-
getFileUrl
public java.lang.String 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:
FileResourceSpecifier.getFileUrl()
-
setFileUrl
public void setFileUrl(java.lang.String aUrl)
Description copied from interface:FileResourceSpecifierSets the URL of the file.- Specified by:
setFileUrlin interfaceFileResourceSpecifier- Parameters:
aUrl- a URL string- See Also:
FileResourceSpecifier.setFileUrl(String)
-
getLocalCache
public java.lang.String 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:
FileResourceSpecifier.getLocalCache()
-
setLocalCache
public void setLocalCache(java.lang.String aFileName)
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:
FileResourceSpecifier.setLocalCache(String)
-
getXmlizationInfo
protected XmlizationInfo 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
-
-