public class Project extends Object implements ProjectInfo
Constructor and Description |
---|
Project() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
Date |
getCreated() |
String |
getDescription() |
List<IOConfiguration> |
getExportConfigurations() |
org.osgi.framework.Version |
getHaleVersion() |
Date |
getModified() |
String |
getName()
Get the project name
|
List<ProjectFileInfo> |
getProjectFiles() |
Map<String,Value> |
getProperties() |
List<IOConfiguration> |
getResources() |
IOConfiguration |
getSaveConfiguration() |
static Project |
load(InputStream in)
Load a project from an input stream.
|
static void |
save(Project project,
OutputStream out)
Save a project to an output stream.
|
void |
setAuthor(String author) |
void |
setCreated(Date created) |
void |
setDescription(String description) |
void |
setHaleVersion(org.osgi.framework.Version haleVersion) |
void |
setModified(Date modified) |
void |
setName(String name) |
void |
setSaveConfiguration(IOConfiguration saveConfiguration) |
public static Project load(InputStream in) throws Exception
in
- the input streamException
- if the project could not be loadedpublic static void save(Project project, OutputStream out) throws Exception
project
- the project to saveout
- the output streamException
- if saving the project failspublic List<IOConfiguration> getResources()
public String getName()
ProjectDescription
getName
in interface ProjectDescription
null
if not setProjectDescription.getName()
public void setName(String name)
name
- the name to setpublic String getAuthor()
getAuthor
in interface ProjectDescription
ProjectDescription.getAuthor()
public void setAuthor(String author)
author
- the author to setpublic org.osgi.framework.Version getHaleVersion()
getHaleVersion
in interface ProjectInfo
ProjectInfo.getHaleVersion()
public void setHaleVersion(org.osgi.framework.Version haleVersion)
haleVersion
- the haleVersion to setpublic Date getCreated()
getCreated
in interface ProjectInfo
ProjectInfo.getCreated()
public void setCreated(Date created)
created
- the created to setpublic Date getModified()
getModified
in interface ProjectInfo
ProjectInfo.getModified()
public void setModified(Date modified)
modified
- the modified to setpublic Map<String,Value> getProperties()
ComplexValueExtension
public IOConfiguration getSaveConfiguration()
public void setSaveConfiguration(IOConfiguration saveConfiguration)
saveConfiguration
- the saveConfiguration to setpublic List<IOConfiguration> getExportConfigurations()
public String getDescription()
getDescription
in interface ProjectDescription
ProjectDescription.getDescription()
public void setDescription(String description)
description
- the description to setpublic List<ProjectFileInfo> getProjectFiles()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a