Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.project.model
Class Project

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.project.model.Project
All Implemented Interfaces:
ProjectInfo

public class Project
extends Object
implements ProjectInfo

Represents a project.

Author:
Simon Templer

Constructor Summary
Project()
           
 
Method Summary
 String getAuthor()
           
 Date getCreated()
           
 String getDescription()
           
 org.osgi.framework.Version getHaleVersion()
           
 Date getModified()
           
 String getName()
          Get the project name
 List<ProjectFileInfo> getProjectFiles()
           
 Map<String,String> getProperties()
           
 List<IOConfiguration> getResources()
           
 IOConfiguration getSaveConfiguration()
           
static Project load(InputStream in)
          Load a project from an input stream.
static void save(ProjectInfo 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()
Method Detail

load

public static Project load(InputStream in)
                    throws org.exolab.castor.mapping.MappingException,
                           org.exolab.castor.xml.MarshalException,
                           org.exolab.castor.xml.ValidationException
Load a project from an input stream.

Parameters:
in - the input stream
Returns:
the project
Throws:
org.exolab.castor.mapping.MappingException - if the mapping could not be loaded
org.exolab.castor.xml.MarshalException - if the project could not be read
org.exolab.castor.xml.ValidationException - if the input stream did not provide valid XML

save

public static void save(ProjectInfo project,
                        OutputStream out)
                 throws org.exolab.castor.mapping.MappingException,
                        org.exolab.castor.xml.MarshalException,
                        org.exolab.castor.xml.ValidationException,
                        IOException
Save a project to an output stream.

Parameters:
project - the project to save
out - the output stream
Throws:
org.exolab.castor.mapping.MappingException - if the mapping could not be loaded
org.exolab.castor.xml.ValidationException - if the mapping is no valid XML
org.exolab.castor.xml.MarshalException - if the project could not be marshaled
IOException - if the output could not be written

getResources

public List<IOConfiguration> getResources()
Returns:
the configurations

getName

public String getName()
Description copied from interface: ProjectInfo
Get the project name

Specified by:
getName in interface ProjectInfo
Returns:
the project name, may be null if not set
See Also:
ProjectInfo.getName()

setName

public void setName(String name)
Parameters:
name - the name to set

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface ProjectInfo
Returns:
the author
See Also:
ProjectInfo.getAuthor()

setAuthor

public void setAuthor(String author)
Parameters:
author - the author to set

getHaleVersion

public org.osgi.framework.Version getHaleVersion()
Specified by:
getHaleVersion in interface ProjectInfo
Returns:
the haleVersion
See Also:
ProjectInfo.getHaleVersion()

setHaleVersion

public void setHaleVersion(org.osgi.framework.Version haleVersion)
Parameters:
haleVersion - the haleVersion to set

getCreated

public Date getCreated()
Specified by:
getCreated in interface ProjectInfo
Returns:
the created
See Also:
ProjectInfo.getCreated()

setCreated

public void setCreated(Date created)
Parameters:
created - the created to set

getModified

public Date getModified()
Specified by:
getModified in interface ProjectInfo
Returns:
the modified
See Also:
ProjectInfo.getModified()

setModified

public void setModified(Date modified)
Parameters:
modified - the modified to set

getProperties

public Map<String,String> getProperties()
Returns:
the properties

getSaveConfiguration

public IOConfiguration getSaveConfiguration()
Returns:
the saveConfiguration

setSaveConfiguration

public void setSaveConfiguration(IOConfiguration saveConfiguration)
Parameters:
saveConfiguration - the saveConfiguration to set

getDescription

public String getDescription()
Specified by:
getDescription in interface ProjectInfo
Returns:
the description
See Also:
ProjectInfo.getDescription()

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getProjectFiles

public List<ProjectFileInfo> getProjectFiles()
Returns:
the list of external project file locations

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d