2017-12-15 00:01:26 +01:00
|
|
|
package eu.eudat.models.components.commons.datafield;
|
2017-11-30 11:10:42 +01:00
|
|
|
|
2018-03-01 10:14:10 +01:00
|
|
|
import eu.eudat.utilities.interfaces.XmlSerializable;
|
2017-11-30 11:10:42 +01:00
|
|
|
import org.w3c.dom.Document;
|
|
|
|
import org.w3c.dom.Element;
|
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public abstract class FieldData<T> implements XmlSerializable<T> {
|
|
|
|
private String label;
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public T fromXml(Element item) {
|
|
|
|
return null;
|
|
|
|
}
|
2017-11-30 11:10:42 +01:00
|
|
|
}
|