public class Spectrum extends java.lang.Object implements MetadataInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALIBRATION |
int |
calibration_id |
int |
campaign_id |
static java.lang.String |
FILE_FORMAT |
int |
file_format_id |
static java.lang.String |
INSTRUMENT |
int |
instrument_id |
int |
measurement_type_id |
static java.lang.String |
MEASUREMENT_UNIT |
int |
measurement_unit_id |
static java.lang.String[] |
METADATA_FIELDS
spectrum metadata fields
|
static java.lang.String |
REFERENCE |
int |
reference_id |
static java.lang.String |
SENSOR |
int |
sensor_id |
int |
spectrum_id |
Modifier and Type | Method and Description |
---|---|
MetaDatatype<java.lang.Integer> |
getCalibration() |
int |
getCalibrationId() |
int |
getCampaignId() |
Metadata |
getEavMetadata() |
MetaDatatype<java.lang.String> |
getFileFormat() |
int |
getFileFormatId() |
int |
getHierarchyLevelId() |
int |
getId() |
Instrument |
getInstrument() |
int |
getInstrumentId() |
int |
getMeasurementTypeId() |
MetaDatatype<java.lang.String> |
getMeasurementUnit() |
int |
getMeasurementUnitId() |
java.lang.Float[] |
getMeasurementVector() |
Metadata |
getMetadata() |
int |
getMetadataId(java.lang.String field)
Generic metadata identifier getter.
|
java.lang.Object |
getMetadataValue(java.lang.String field)
Generic metadata value getter.
|
int |
getReferenceId() |
int |
getSamplingEnvironmentId() |
int |
getSamplingGeometryId() |
Sensor |
getSensor() |
int |
getSensorId() |
int |
getSpectrumId() |
void |
setCalibrationId(int calibration_id) |
void |
setCampaignId(int campaign_id) |
void |
setEavMetadata(Metadata smd) |
void |
setFileFormat(MetaDatatype<java.lang.String> file_format) |
void |
setFileFormatId(int file_format_id) |
void |
setHierarchyLevelId(int hierarchy_level_id) |
void |
setInstrument(Instrument instrument) |
void |
setInstrumentId(int instrument_id) |
void |
setMeasurementTypeId(int measurement_type_id) |
void |
setMeasurementUnit(MetaDatatype<java.lang.String> measurement_unit) |
void |
setMeasurementUnitId(int measurement_unit_id) |
void |
setMeasurementVector(java.lang.Float[] measurement_vector) |
void |
setMetadata(Metadata smd) |
void |
setMetadataId(java.lang.String field,
int id)
Generic metadata identifier setter.
|
void |
setReferenceId(int reference_id) |
void |
setSamplingEnvironmentId(int sampling_env_id) |
void |
setSamplingGeometryId(int sampling_geometry_id) |
void |
setSensor(Sensor sensor) |
void |
setSensorId(int sensor_id) |
void |
setSpectrumId(int spectrum_id) |
public static final java.lang.String INSTRUMENT
public static final java.lang.String SENSOR
public static final java.lang.String CALIBRATION
public static final java.lang.String MEASUREMENT_UNIT
public static final java.lang.String FILE_FORMAT
public static final java.lang.String REFERENCE
public static final java.lang.String[] METADATA_FIELDS
public int spectrum_id
public int sensor_id
public int campaign_id
public int measurement_unit_id
public int measurement_type_id
public int instrument_id
public int file_format_id
public int reference_id
public int calibration_id
public int getCampaignId()
public void setCampaignId(int campaign_id)
public int getCalibrationId()
public void setCalibrationId(int calibration_id)
public MetaDatatype<java.lang.Integer> getCalibration()
public Metadata getEavMetadata()
public void setEavMetadata(Metadata smd)
public MetaDatatype<java.lang.String> getFileFormat()
public void setFileFormat(MetaDatatype<java.lang.String> file_format)
public int getFileFormatId()
public void setFileFormatId(int file_format_id)
public int getHierarchyLevelId()
public void setHierarchyLevelId(int hierarchy_level_id)
public Instrument getInstrument()
public void setInstrument(Instrument instrument)
public int getInstrumentId()
public void setInstrumentId(int instrument_id)
public java.lang.Float[] getMeasurementVector()
public void setMeasurementVector(java.lang.Float[] measurement_vector)
public int getMeasurementTypeId()
public void setMeasurementTypeId(int measurement_type_id)
public MetaDatatype<java.lang.String> getMeasurementUnit()
public void setMeasurementUnit(MetaDatatype<java.lang.String> measurement_unit)
public int getMeasurementUnitId()
public void setMeasurementUnitId(int measurement_unit_id)
public int getReferenceId()
public void setReferenceId(int reference_id)
public int getSamplingEnvironmentId()
public void setSamplingEnvironmentId(int sampling_env_id)
public int getSamplingGeometryId()
public void setSamplingGeometryId(int sampling_geometry_id)
public Sensor getSensor()
public void setSensor(Sensor sensor)
public int getSensorId()
public void setSensorId(int sensor_id)
public Metadata getMetadata()
getMetadata
in interface MetadataInterface
public void setMetadata(Metadata smd)
setMetadata
in interface MetadataInterface
public int getSpectrumId()
public void setSpectrumId(int spectrum_id)
public int getMetadataId(java.lang.String field) throws java.lang.NoSuchMethodException
field
- a field name from Spectrum.METADATA_FIELDSjava.lang.NoSuchMethodException
- the field does not existpublic java.lang.Object getMetadataValue(java.lang.String field) throws java.lang.NoSuchMethodException
field
- a field name from Spectrum.METADATA_FIELDSjava.lang.NoSuchMethodException
- the field does not existpublic int getId()
getId
in interface MetadataInterface
public void setMetadataId(java.lang.String field, int id) throws java.lang.NoSuchMethodException
field
- a field name from Spectrum.METADATA_FIELDSid
- the id to assign to the fieldjava.lang.NoSuchMethodException
- the field does not exist