2024-04-26 12:50:56 +02:00
|
|
|
package org.opencdmp.commons.types.descriptiontemplate;
|
2018-06-27 12:29:21 +02:00
|
|
|
|
2024-05-02 14:57:19 +02:00
|
|
|
import jakarta.xml.bind.annotation.*;
|
2024-04-26 12:50:56 +02:00
|
|
|
import org.opencdmp.commons.enums.FieldValidationType;
|
|
|
|
import org.opencdmp.commons.types.descriptiontemplate.fielddata.*;
|
2024-01-30 15:31:03 +01:00
|
|
|
|
2018-01-03 17:36:31 +01:00
|
|
|
import java.util.List;
|
2017-12-15 11:05:51 +01:00
|
|
|
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
2024-02-01 15:58:05 +01:00
|
|
|
public class FieldEntity {
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlAttribute(name="id")
|
2018-02-16 11:34:02 +01:00
|
|
|
private String id;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlAttribute(name="ordinal")
|
2018-02-16 11:34:02 +01:00
|
|
|
private int ordinal;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlElementWrapper(name = "schematics")
|
|
|
|
@XmlElement(name = "schematic")
|
2023-02-21 10:46:44 +01:00
|
|
|
private List<String> schematics;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlAttribute(name="numbering")
|
2018-10-18 11:34:11 +02:00
|
|
|
private String numbering;
|
2024-05-02 14:57:19 +02:00
|
|
|
@XmlElement(name="defaultValue")
|
|
|
|
private DefaultValueEntity defaultValue;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlElementWrapper(name = "visibilityRules")
|
|
|
|
@XmlElement(name = "rule")
|
2023-10-27 17:46:34 +02:00
|
|
|
private List<RuleEntity> visibilityRules;
|
2024-01-30 15:31:03 +01:00
|
|
|
|
|
|
|
@XmlElements({
|
2024-01-31 13:33:24 +01:00
|
|
|
@XmlElement(name = LabelDataEntity.XmlElementName, type = LabelDataEntity.class),
|
|
|
|
@XmlElement(name = LabelAndMultiplicityDataEntity.XmlElementName, type = LabelAndMultiplicityDataEntity.class),
|
|
|
|
@XmlElement(name = UploadDataEntity.XmlElementName, type = UploadDataEntity.class),
|
|
|
|
@XmlElement(name = RadioBoxDataEntity.XmlElementName, type = RadioBoxDataEntity.class),
|
|
|
|
@XmlElement(name = SelectDataEntity.XmlElementName, type = SelectDataEntity.class),
|
2024-02-08 17:12:47 +01:00
|
|
|
@XmlElement(name = ReferenceTypeDataEntity.XmlElementName, type = ReferenceTypeDataEntity.class)
|
2024-01-30 15:31:03 +01:00
|
|
|
})
|
2024-01-31 13:33:24 +01:00
|
|
|
private BaseFieldDataEntity data;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlElementWrapper(name = "validations")
|
|
|
|
@XmlElement(name = "validation")
|
2023-10-27 17:46:34 +02:00
|
|
|
private List<FieldValidationType> validations;
|
2024-01-30 15:31:03 +01:00
|
|
|
@XmlAttribute(name="includeInExport")
|
2023-10-27 17:46:34 +02:00
|
|
|
private Boolean includeInExport;
|
2022-06-07 10:00:13 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public String getId() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.id;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getOrdinal() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.ordinal;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
|
|
|
public void setOrdinal(int ordinal) {
|
|
|
|
this.ordinal = ordinal;
|
|
|
|
}
|
|
|
|
|
2023-02-21 10:46:44 +01:00
|
|
|
public List<String> getSchematics() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.schematics;
|
2023-02-21 10:46:44 +01:00
|
|
|
}
|
|
|
|
public void setSchematics(List<String> schematics) {
|
|
|
|
this.schematics = schematics;
|
|
|
|
}
|
|
|
|
|
2024-01-31 13:33:24 +01:00
|
|
|
public BaseFieldDataEntity getData() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.data;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
2024-01-31 13:33:24 +01:00
|
|
|
public void setData(BaseFieldDataEntity data) {
|
2023-10-27 17:46:34 +02:00
|
|
|
this.data = data;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
|
|
|
|
2024-05-02 14:57:19 +02:00
|
|
|
public DefaultValueEntity getDefaultValue() {
|
|
|
|
return this.defaultValue;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
2024-05-02 14:57:19 +02:00
|
|
|
|
|
|
|
public void setDefaultValue(DefaultValueEntity defaultValue) {
|
2018-02-16 11:34:02 +01:00
|
|
|
this.defaultValue = defaultValue;
|
|
|
|
}
|
|
|
|
|
2023-10-27 17:46:34 +02:00
|
|
|
public List<FieldValidationType> getValidations() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.validations;
|
2018-02-16 11:34:02 +01:00
|
|
|
}
|
2023-10-27 17:46:34 +02:00
|
|
|
public void setValidations(List<FieldValidationType> validations) {
|
2018-02-16 11:34:02 +01:00
|
|
|
this.validations = validations;
|
|
|
|
}
|
|
|
|
|
2018-10-18 11:34:11 +02:00
|
|
|
public String getNumbering() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.numbering;
|
2018-10-18 11:34:11 +02:00
|
|
|
}
|
|
|
|
public void setNumbering(String numbering) {
|
|
|
|
this.numbering = numbering;
|
|
|
|
}
|
|
|
|
|
2023-10-27 17:46:34 +02:00
|
|
|
public Boolean getIncludeInExport() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.includeInExport;
|
2023-10-27 17:46:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setIncludeInExport(Boolean includeInExport) {
|
|
|
|
this.includeInExport = includeInExport;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<RuleEntity> getVisibilityRules() {
|
2024-05-02 14:57:19 +02:00
|
|
|
return this.visibilityRules;
|
2022-06-07 10:00:13 +02:00
|
|
|
}
|
|
|
|
|
2023-10-27 17:46:34 +02:00
|
|
|
public void setVisibilityRules(List<RuleEntity> visibilityRules) {
|
|
|
|
this.visibilityRules = visibilityRules;
|
2022-06-07 10:00:13 +02:00
|
|
|
}
|
2017-12-15 11:05:51 +01:00
|
|
|
}
|