geoportal-data-common/src/main/java/org/gcube/application/geoportalcommon/shared/geoportal/DocumentDV.java

57 lines
1.3 KiB
Java
Raw Normal View History

2022-03-11 12:01:27 +01:00
package org.gcube.application.geoportalcommon.shared.geoportal;
import java.io.Serializable;
import java.util.LinkedHashMap;
public class DocumentDV implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4978517506036855883L;
protected LinkedHashMap<String, Object> documentAsMap;
2022-03-11 12:01:27 +01:00
private String documentAsJSON;
2022-03-16 18:10:17 +01:00
private ConfigurationDV<?> configuration;
2022-03-11 12:01:27 +01:00
public DocumentDV() {
}
public LinkedHashMap<String, Object> getDocumentAsMap() {
return documentAsMap;
}
public String getDocumentAsJSON() {
return documentAsJSON;
}
public void setDocumentAsMap(LinkedHashMap<String, Object> documentAsMap) {
this.documentAsMap = documentAsMap;
}
public void setDocumentAsJSON(String documentAsJSON) {
this.documentAsJSON = documentAsJSON;
}
2022-03-16 18:10:17 +01:00
public ConfigurationDV<?> getConfiguration() {
return configuration;
}
public void setConfiguration(ConfigurationDV<?> configuration) {
this.configuration = configuration;
}
2022-03-11 12:01:27 +01:00
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("DocumentDV [documentAsMap=");
builder.append(documentAsMap);
builder.append(", documentAsJSON=");
builder.append(documentAsJSON);
2022-03-16 18:10:17 +01:00
builder.append(", configuration=");
builder.append(configuration);
2022-03-11 12:01:27 +01:00
builder.append("]");
return builder.toString();
}
}