org.proteios.core
Class InstrumentConfiguration<D extends InstrumentConfigurationData>
java.lang.Object
org.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<D>
org.proteios.core.InstrumentConfiguration<D>
- All Implemented Interfaces:
- AccessControlled, Annotatable, FileAttachable, Identifiable, Nameable, Ownable, Removable, Shareable
- Direct Known Subclasses:
- HardwareConfiguration, SoftwareConfiguration
public abstract class InstrumentConfiguration<D extends InstrumentConfigurationData>
- extends AnnotatedItem<D>
- implements FileAttachable
This is the base class for for the two types of
instrumentconfigurations:
HardwareConfiguration and SoftwareConfiguration.
- Version:
- 2.0
- Author:
- Olle
- See Also:
AnnotatedItem- Last modified
- $Date: 2006-05-31 12:33:12Z $
|
Field Summary |
static int |
MAX_DATETIME_LENGTH
The maximum length of the dateTime string that can be stored
in the database. |
| Methods inherited from class org.proteios.core.BasicItem |
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, toString |
MAX_DATETIME_LENGTH
public static final int MAX_DATETIME_LENGTH
- The maximum length of the dateTime string that can be stored
in the database.
- See Also:
setDateTime(String),
Constant Field Values
getDateTime
public String getDateTime()
- Get the dateTime string of the instrumentconfiguration.
- Returns:
- The dateTime string for the instrumentconfiguration
setDateTime
public void setDateTime(String dateTime)
throws InvalidDataException
- Set the dateTime string of the instrumentconfiguration.
The value may be null but must not be longer than
the value specified by the
MAX_DATETIME_LENGTH
constant.
- Parameters:
dateTime - The new value for the date and time
- Throws:
InvalidDataException - If the string is too long
getFile
public File getFile()
throws BaseException
- Get the protocol
File for the configuration.
- Specified by:
getFile in interface FileAttachable
- Returns:
- A
File object
- Throws:
BaseException - If there is another error
setFile
public void setFile(File file)
throws InvalidDataException
- Set the protocol
File for the configuration.
- Specified by:
setFile in interface FileAttachable
- Parameters:
file - The new File item
- Throws:
InvalidDataException - If the file is null
BaseException - If there is another error