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