2023-10-27 17:46:34 +02:00
|
|
|
package eu.eudat.commons.types.descriptiontemplate.fielddata;
|
2017-11-30 11:10:42 +01:00
|
|
|
|
2023-10-20 18:13:57 +02:00
|
|
|
import eu.eudat.commons.types.xml.XmlSerializable;
|
2017-11-30 11:10:42 +01:00
|
|
|
import org.w3c.dom.Document;
|
|
|
|
import org.w3c.dom.Element;
|
|
|
|
|
2019-02-25 17:46:16 +01:00
|
|
|
import java.util.Map;
|
|
|
|
|
2023-10-27 17:46:34 +02:00
|
|
|
public abstract class BaseFieldDataEntity<T> implements XmlSerializable<T> {
|
2018-02-16 11:34:02 +01:00
|
|
|
private String label;
|
2023-10-27 17:46:34 +02:00
|
|
|
private String subType;
|
2018-02-16 11:34:02 +01:00
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
2023-10-27 17:46:34 +02:00
|
|
|
public String getSubType() {
|
|
|
|
return subType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSubType(String subType) {
|
|
|
|
this.subType = subType;
|
|
|
|
}
|
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public T fromData(Object data) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Object toData() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Element toXml(Document doc) {
|
|
|
|
return null;
|
|
|
|
}
|
2017-11-30 11:10:42 +01:00
|
|
|
|
2019-02-25 17:46:16 +01:00
|
|
|
public abstract Map<String, Object> toMap(Element item);
|
2017-11-30 11:10:42 +01:00
|
|
|
}
|