public interface PortableViewManager extends Disposable
PortableViewCompilation
instancePortableViewCompiler
instanceModifier and Type | Field and Description |
---|---|
static String |
INSTALLER_PROVIDER_NAME |
Modifier and Type | Method and Description |
---|---|
void |
cleanAllTemporalData()
Clear all data in temporal folder
|
PortableViewCompilation |
createCompilationInstance()
Creates a new instance of a
PortableViewCompilation |
PortableViewCompilation |
createCompilationInstanceFromMap(PortableView map)
Creates a new instance of a
PortableViewCompilation based on
values map |
PortableViewCompiler |
createCompilerInstance()
Create a new instance of a
PortableViewCompiler |
File |
generatePackageFile(File portableViewIntallFolder,
File targetFolder)
Create a gvSIG package file (gvspkg) from a portableView installed folder
|
File |
generatePackageFile(String mapId,
File targetFolder)
Create a gvSIG package file (gvspkg) from a portableView
|
String |
getBaseFileNameFromInfo(PortableViewInformation info)
Generates the base name for a PortableView file using its info data
|
String |
getBaseFileNameFromInfo(String id,
String name,
int version,
int buildNumber)
Generates the base name for a PortableView file
|
String |
getInstallationMapFolder()
Gets default folder to locate installed Portable View
|
List<PortableView> |
getInstalledMaps()
Returns all Portable View installed
Uses installation folder to locate them
|
List<PortableView> |
getInstalledMaps(String folder)
Returns all Portable View installed into the specified folder
Uses installation folder to locate them
|
PortableView |
getMapById(String mapId)
Gets a
PortableView from intalledMaps
by its id
|
PortableView |
getMapFromFile(File file)
Gets a
PortableView from a file
|
String |
getTemporalFolder()
Gets the folder to use to open any Portable
View before access to the information contained in it.
|
String |
getTranslation(String key)
Returns the translation of a string.
|
boolean |
isAPortableViewIntalledFolder(File folder)
Informs if a folder is a valid Portable View installed folder
|
boolean |
isMap(File file)
Informs if a file is a valid Portable View file
|
void |
setInstallationMapFolder(String folder)
Sets default folder to locate installed Portable View
|
void |
setTemporalFolder(String folder)
Sets the folder to use to open any Portable View
|
dispose
static final String INSTALLER_PROVIDER_NAME
String getInstallationMapFolder()
void setInstallationMapFolder(String folder)
folder
- IllegalArgumentException
- if folder
is a file or can't read or not existsString getTemporalFolder()
void setTemporalFolder(String folder)
folder
- IllegalArgumentException
- if folder
is a file or can't writevoid cleanAllTemporalData()
List<PortableView> getInstalledMaps()
List<PortableView> getInstalledMaps(String folder)
folder
- to analyzeIllegalArgumentException
- if folder is not valid (a readable folder)PortableView getMapFromFile(File file) throws InvalidPortableViewFormatException
PortableView
from a file
file
- InvalidPortableViewFormatException
PortableView getMapById(String mapId)
PortableView
from intalledMaps
by its id
mapid
- PortableView idboolean isMap(File file)
file
- boolean isAPortableViewIntalledFolder(File folder)
file
- PortableViewCompilation createCompilationInstance()
PortableViewCompilation
PortableViewCompilation createCompilationInstanceFromMap(PortableView map) throws InvalidPortableViewFormatException, CantLoadContextException, IOException
PortableViewCompilation
based on
values map
map
- to use as templateIOException
CantLoadContextException
InvalidPortableViewFormatException
PortableViewCompiler createCompilerInstance()
PortableViewCompiler
String getBaseFileNameFromInfo(PortableViewInformation info)
info
- String getBaseFileNameFromInfo(String id, String name, int version, int buildNumber)
info
- File generatePackageFile(String mapId, File targetFolder) throws PortableViewException, IOException
mapId
- id of map to exporttargetFolder
- where write package filePortableViewException
IOException
File generatePackageFile(File portableViewIntallFolder, File targetFolder) throws PortableViewException, IOException
portableViewIntallFolder
- folder of a installed PortableViewtargetFolder
- where write package filePortableViewException
IOException