Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.server.projects.impl.internal
Class ProjectProperties

java.lang.Object
  extended by eu.esdihumboldt.util.SyncedPropertiesFile
      extended by eu.esdihumboldt.hale.server.projects.impl.internal.ProjectProperties

public class ProjectProperties
extends SyncedPropertiesFile

Project configuration properties.

Author:
Simon Templer

Field Summary
static String PROPERTY_ENABLED
          Name of the property specifying if a project is enabled
static String PROPERTY_PROJECT_FILE
          Name of the property specifying the project file name
 
Constructor Summary
ProjectProperties(File projectPropertiesFile)
          Create project properties.
 
Method Summary
 String getProjectFileName()
          Get the project file name.
 boolean isEnabled()
          Specifies if the project is enabled.
 void setEnabled(boolean enabled)
          Set if the project is enabled.
 void setProjectFileName(String filename)
          Set the project file name.
 
Methods inherited from class eu.esdihumboldt.util.SyncedPropertiesFile
getProperty, getPropertyQuiet, setProperty, setPropertyQuiet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ENABLED

public static final String PROPERTY_ENABLED
Name of the property specifying if a project is enabled

See Also:
Constant Field Values

PROPERTY_PROJECT_FILE

public static final String PROPERTY_PROJECT_FILE
Name of the property specifying the project file name

See Also:
Constant Field Values
Constructor Detail

ProjectProperties

public ProjectProperties(File projectPropertiesFile)
                  throws IOException
Create project properties.

Parameters:
projectPropertiesFile - the project properties file
Throws:
IOException - if reading the properties file fails
Method Detail

isEnabled

public boolean isEnabled()
Specifies if the project is enabled.

Returns:
if the project is enabled

setEnabled

public void setEnabled(boolean enabled)
Set if the project is enabled.

Parameters:
enabled - if the project is enabled

getProjectFileName

public String getProjectFileName()
Get the project file name.

Returns:
the project file name, may be null

setProjectFileName

public void setProjectFileName(String filename)
Set the project file name.

Parameters:
filename - the project file name

Humboldt Alignment Editor 2.5.0

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