2019-02-25 17:53:36 +01:00
|
|
|
package eu.eudat.logic.utilities.documents.xml.dmpXml.dmpProfileModel;
|
|
|
|
|
2022-01-21 09:58:29 +01:00
|
|
|
import jakarta.xml.bind.annotation.XmlAttribute;
|
|
|
|
import jakarta.xml.bind.annotation.XmlRootElement;
|
2019-02-25 17:53:36 +01:00
|
|
|
|
|
|
|
@XmlRootElement(name = "datatype")
|
|
|
|
public class DMPProfileFieldDataType {
|
|
|
|
|
|
|
|
private int datatype;
|
|
|
|
|
|
|
|
@XmlAttribute(name = "datatype")
|
|
|
|
public int getDatatype() {
|
|
|
|
return datatype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDatatype(int datatype) {
|
|
|
|
this.datatype = datatype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public eu.eudat.models.data.entities.xmlmodels.dmpprofiledefinition.types.DMPProfileFieldDataType toDmpProfileCompositeModel() {
|
|
|
|
return eu.eudat.models.data.entities.xmlmodels.dmpprofiledefinition.types.DMPProfileFieldDataType.fromInteger(datatype);
|
|
|
|
}
|
|
|
|
}
|