public interface FileLanguageResourceSpecifier extends ResourceSpecifier
ResourceSpecifier
that locates a resource file using its URL, where the
URL depends on an ISO language identifier. An example of this type of resource is a dictionary
with a separate data file for each language.
Instead of a single URL, this specifier defines a URL prefix and a URL suffix. The ISO language
identifier is then placed between the prefix and suffix to form the complete URL of the file. If
that file does not exist, more general language identifiers will be tried. For example, if there
is no resource for en-US
, the resource for en
will be used
instead.
Modifier and Type | Method and Description |
---|---|
String |
getFileUrlPrefix()
Retrieves the URL prefix.
|
String |
getFileUrlSuffix()
Retrieves the URL suffix.
|
void |
setFileUrlPrefix(String aPrefix)
Sets the URL prefix.
|
void |
setFileUrlSuffix(String aSuffix)
Sets the URL suffix.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
String getFileUrlPrefix()
String getFileUrlSuffix()
void setFileUrlPrefix(String aPrefix)
aPrefix
- the URL prefixvoid setFileUrlSuffix(String aSuffix)
aSuffix
- the URL suffixCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.