52 lines
1.2 KiB
Java
52 lines
1.2 KiB
Java
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;
|
|
private LinkedHashMap<String, Object> documentAsMap;
|
|
private String documentAsJSON;
|
|
|
|
public DocumentDV() {
|
|
}
|
|
|
|
public DocumentDV(LinkedHashMap<String, Object> documentAsMap, String documentAsJSON) {
|
|
super();
|
|
this.documentAsMap = documentAsMap;
|
|
this.documentAsJSON = documentAsJSON;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("DocumentDV [documentAsMap=");
|
|
builder.append(documentAsMap);
|
|
builder.append(", documentAsJSON=");
|
|
builder.append(documentAsJSON);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|