|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.core.helper.ProjectHelper
Helper class for Project.
Field Summary | |
static java.lang.String |
FILE_DESCRIPTION
Description of Procasor project file |
static java.lang.String |
FILE_EXTENSION
Extension of saving project files. |
static java.lang.String |
IMPORT_LOCATION
Location for importing projects |
static java.lang.String |
SAVE_LOCATION
Location for saving and opening projects |
Method Summary | |
static Project |
createProject(java.lang.String name,
java.lang.String description)
Creation of new project and initialization all parameters. |
static Project |
loadProject(java.io.File file)
Load project using JAXB from file in paramater. |
static void |
save(Project project,
java.lang.String path)
Save project to file (projectname . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SAVE_LOCATION
public static final java.lang.String IMPORT_LOCATION
public static final java.lang.String FILE_EXTENSION
public static final java.lang.String FILE_DESCRIPTION
Method Detail |
public static Project createProject(java.lang.String name, java.lang.String description)
name
- jname of the projectdescription
- description of the project
public static void save(Project project, java.lang.String path) throws javax.xml.bind.JAXBException, java.io.FileNotFoundException
project
- project to savepath
- pathe where project is saved to
javax.xml.bind.JAXBException
- throws exeption if JAXB fails
java.io.FileNotFoundException
- thorws exception if path is not correctpublic static Project loadProject(java.io.File file) throws javax.xml.bind.JAXBException
file
- file project is load from
javax.xml.bind.JAXBException
- throws exeption if JAXB fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |