Class Survey
java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject
eu.dzhw.fdz.metadatamanagement.surveymanagement.domain.Survey
- All Implemented Interfaces:
Serializable
@ValidSurveyIdName(message="survey-management.error.survey.id.valid-survey-id-name")
@ValidUniqueSurveyNumber(message="survey-management.error.survey.unique-survey-number")
@ValidShadowId(message="survey-management.error.survey.id.pattern")
@GrossSampleSizeGreaterThanNetSampleSize(message="survey-management.error.survey.gross-sample-size.min")
public class Survey
extends AbstractShadowableRdcDomainObject
A survey is conducted to examine a population on the basis of a sample. The resulting
DataSets can be used to make statements about the population.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @I18nStringSize(max=2048,message="variable-management.error.variable.annotations.i18n-string-size") I18nStringArbitrary additional text for this survey.private @NotEmpty(message="survey-management.error.survey.data-acquisition-project.id.not-empty") StringThe id of theDataAcquisitionProjectto which this survey belongs.private @NotEmpty(message="survey-management.error.survey.dataPackage-id.not-empty") StringThe id of theDataPackageto which this survey belongs.private @NotNull(message="survey-management.error.survey.data-type.not-null") I18nStringThe type of data which the survey produced.private @NotNull(message="survey-management.error.survey.field-period.not-null") @Valid PeriodThe period during which the survey has been conducted or is expected to be conducted.private @Min(value=0L,message="survey-management.error.survey.gross-sample-size.min") IntegerThe gross sample size represents the number of participants which have been invited to take part in theSurvey.private StringThe id of the survey which uniquely identifies the survey in this application.private @NotEmpty(message="survey-management.error.survey.master-id.not-empty") @Size(max=512,message="survey-management.error.survey.master-id.size") @Pattern(regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.\\$]*$",message="survey-management.error.survey.master-id.pattern") StringThe master id of the survey.private @NotNull(message="survey-management.error.survey.number.not-null") IntegerThe number of the instrument.private @Valid @NotNull(message="survey-management.error.survey.population.not-null") PopulationDetails about thePopulation.private @Min(value=0L,message="survey-management.error.survey.response-rate.min") @Max(value=100L,message="survey-management.error.survey.response-rate.max") DoubleThe response rate is the quotient of the gross sample size and the sample size.private @NotNull(message="survey-management.error.survey.sample.not-null") I18nStringThe sampling method is the procedure for selecting sample members from a population.private @NotNull(message="survey-management.error.survey.sample-size.not-null") @Min(value=0L,message="survey-management.error.survey.sample-size.min") IntegerThe sample size is the number of participants which took part in the survey.private @NotNull(message="survey-management.error.survey.serial-number.not-null") @Min(value=1L,message="survey-management.error.survey.serial-number.min") IntegerSerial number of thisSurveyas it is implemented in the survey design (e.g.private static final longprivate @NotNull(message="survey-management.error.survey.survey-method.not-null") @I18nStringEntireNotEmpty(message="survey-management.error.survey.survey-method.i18n-string-entire-not-empty") @I18nStringSize(max=512,message="survey-management.error.survey.survey-method.i18n-string-size") I18nStringThe survey method briefly describes how the data were collected.private @I18nStringSize(max=2048,message="survey-management.error.survey.title.i18n-string-size") @I18nStringEntireNotEmpty(message="survey-management.error.survey.title.i18n-string-entire-not-empty") I18nStringThe title of the instrument. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetIdInternal(String id) Set id on implementation ofAbstractShadowableRdcDomainObject.protected voidsetMasterIdInternal(String masterId) Set masterId on implementations ofAbstractShadowableRdcDomainObject.Methods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject
getMasterId, setId, setMasterIdMethods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
getId
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
id
The id of the survey which uniquely identifies the survey in this application. -
masterId
@NotEmpty(message="survey-management.error.survey.master-id.not-empty") @Size(max=512, message="survey-management.error.survey.master-id.size") @Pattern(regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.\\$]*$", message="survey-management.error.survey.master-id.pattern") private @NotEmpty(message="survey-management.error.survey.master-id.not-empty") @Size(max=512,message="survey-management.error.survey.master-id.size") @Pattern(regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.\\$]*$",message="survey-management.error.survey.master-id.pattern") String masterIdThe master id of the survey. It must not be empty, must be of the formsur-{{dataAcquisitionProjectId}}-sy{{number}}$and must not contain more than 512 characters. -
dataAcquisitionProjectId
@NotEmpty(message="survey-management.error.survey.data-acquisition-project.id.not-empty") private @NotEmpty(message="survey-management.error.survey.data-acquisition-project.id.not-empty") String dataAcquisitionProjectIdThe id of theDataAcquisitionProjectto which this survey belongs. The dataAcquisitionProjectId must not be empty. -
title
@I18nStringSize(max=2048, message="survey-management.error.survey.title.i18n-string-size") @I18nStringEntireNotEmpty(message="survey-management.error.survey.title.i18n-string-entire-not-empty") private @I18nStringSize(max=2048,message="survey-management.error.survey.title.i18n-string-size") @I18nStringEntireNotEmpty(message="survey-management.error.survey.title.i18n-string-entire-not-empty") I18nString titleThe title of the instrument. It must be specified in German and English and it must not contain more than 2048 characters. -
population
@Valid @NotNull(message="survey-management.error.survey.population.not-null") private @Valid @NotNull(message="survey-management.error.survey.population.not-null") Population populationDetails about thePopulation. Must not be empty. -
surveyMethod
@NotNull(message="survey-management.error.survey.survey-method.not-null") @I18nStringEntireNotEmpty(message="survey-management.error.survey.survey-method.i18n-string-entire-not-empty") @I18nStringSize(max=512, message="survey-management.error.survey.survey-method.i18n-string-size") private @NotNull(message="survey-management.error.survey.survey-method.not-null") @I18nStringEntireNotEmpty(message="survey-management.error.survey.survey-method.i18n-string-entire-not-empty") @I18nStringSize(max=512,message="survey-management.error.survey.survey-method.i18n-string-size") I18nString surveyMethodThe survey method briefly describes how the data were collected. It must be specified in German and English and it must not contain more than 2048 characters. -
number
@NotNull(message="survey-management.error.survey.number.not-null") private @NotNull(message="survey-management.error.survey.number.not-null") Integer numberThe number of the instrument. Must not be empty and must be unique within theDataAcquisitionProject. -
fieldPeriod
@NotNull(message="survey-management.error.survey.field-period.not-null") @Valid private @NotNull(message="survey-management.error.survey.field-period.not-null") @Valid Period fieldPeriodThe period during which the survey has been conducted or is expected to be conducted. Must not be empty. -
sample
@NotNull(message="survey-management.error.survey.sample.not-null") @ValidSampleType(message="survey-management.error.survey.sample.valid-sample-type") private @NotNull(message="survey-management.error.survey.sample.not-null") I18nString sampleThe sampling method is the procedure for selecting sample members from a population. It must match the controlled vocabulary specified by VFDB. Catalog: GNERD: Sampling Procedure Educational Research (Version 1.0) -
serialNumber
@NotNull(message="survey-management.error.survey.serial-number.not-null") @Min(value=1L, message="survey-management.error.survey.serial-number.min") private @NotNull(message="survey-management.error.survey.serial-number.not-null") @Min(value=1L,message="survey-management.error.survey.serial-number.min") Integer serialNumberSerial number of thisSurveyas it is implemented in the survey design (e.g. number of the panel wave). Must not be empty and must be greater than or equal to 1. -
grossSampleSize
@Min(value=0L, message="survey-management.error.survey.gross-sample-size.min") private @Min(value=0L,message="survey-management.error.survey.gross-sample-size.min") Integer grossSampleSizeThe gross sample size represents the number of participants which have been invited to take part in theSurvey. Must not be negative. If present, it must be greater than or equal to sampleSize. -
sampleSize
@NotNull(message="survey-management.error.survey.sample-size.not-null") @Min(value=0L, message="survey-management.error.survey.sample-size.min") private @NotNull(message="survey-management.error.survey.sample-size.not-null") @Min(value=0L,message="survey-management.error.survey.sample-size.min") Integer sampleSizeThe sample size is the number of participants which took part in the survey. Must not be empty and must not be negative. If a grossSampleSize is given then it must be less than or equal to the grossSampleSize. -
responseRate
@Min(value=0L, message="survey-management.error.survey.response-rate.min") @Max(value=100L, message="survey-management.error.survey.response-rate.max") private @Min(value=0L,message="survey-management.error.survey.response-rate.min") @Max(value=100L,message="survey-management.error.survey.response-rate.max") Double responseRateThe response rate is the quotient of the gross sample size and the sample size. Must be between 0 and 100. -
dataType
@NotNull(message="survey-management.error.survey.data-type.not-null") @ValidDataType(message="survey-management.error.survey.data-type.valid-data-type") private @NotNull(message="survey-management.error.survey.data-type.not-null") I18nString dataTypeThe type of data which the survey produced. Must be one ofDataTypesand must not be empty. -
dataPackageId
@NotEmpty(message="survey-management.error.survey.dataPackage-id.not-empty") private @NotEmpty(message="survey-management.error.survey.dataPackage-id.not-empty") String dataPackageIdThe id of theDataPackageto which this survey belongs. Must not be empty. -
annotations
@I18nStringSize(max=2048, message="variable-management.error.variable.annotations.i18n-string-size") private @I18nStringSize(max=2048,message="variable-management.error.variable.annotations.i18n-string-size") I18nString annotationsArbitrary additional text for this survey. Markdown is supported. Must not contain more than 2048 characters.
-
-
Constructor Details
-
Survey
-
-
Method Details
-
setMasterIdInternal
Description copied from class:AbstractShadowableRdcDomainObjectSet masterId on implementations ofAbstractShadowableRdcDomainObject.- Specified by:
setMasterIdInternalin classAbstractShadowableRdcDomainObject- Parameters:
masterId- Master Id
-
setIdInternal
Description copied from class:AbstractShadowableRdcDomainObjectSet id on implementation ofAbstractShadowableRdcDomainObject.- Specified by:
setIdInternalin classAbstractShadowableRdcDomainObject- Parameters:
id- Id
-