public static class ClientSideElement.ScriptFile extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_defaultLang |
private boolean |
_langMode |
private Map<String,String> |
_langPaths |
private String |
_path |
private String |
_rtlMode |
Constructor and Description |
---|
ScriptFile(ClientSideElement.ScriptFile scriptFile)
Clone a script file
|
ScriptFile(Map<String,String> langPaths,
String defaultLang)
Create a new script file with a language specific configuration.
|
ScriptFile(String path)
Default constructor.
|
ScriptFile(String rtl,
String path)
Create a new script file that is not language aware.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultLang()
Get the default language
|
Map<String,String> |
getLangPaths()
Get the path mapping by language
|
String |
getPath()
Get the file path
|
String |
getRtlMode()
Get the rtl mode
|
boolean |
isLangSpecific()
Retrieve the language mode
|
String |
toString() |
private boolean _langMode
private Map<String,String> _langPaths
private String _defaultLang
public ScriptFile(String path)
path
- The script pathpublic ScriptFile(String rtl, String path)
rtl
- The rtl mode. Can be null.path
- The file path.public ScriptFile(Map<String,String> langPaths, String defaultLang)
langPaths
- The list of languages with their paths.defaultLang
- The default language code. Can be null.public ScriptFile(ClientSideElement.ScriptFile scriptFile)
scriptFile
- The script file to clonepublic String getRtlMode()
public boolean isLangSpecific()
public Map<String,String> getLangPaths()
public String getDefaultLang()