103 lines
2.5 KiB
Java
103 lines
2.5 KiB
Java
package org.gcube.application.geoportalcommon;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* The Class ProjectDVBuilder.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
*
|
|
* Mar 10, 2022
|
|
*/
|
|
public class ProjectDVBuilder {
|
|
|
|
private boolean validationReport;
|
|
private boolean spatialReference;
|
|
private boolean temporalReference;
|
|
private boolean relationships;
|
|
private List<String> listDocumentKeys;
|
|
private boolean fullDocumentMap;
|
|
|
|
private ProjectDVBuilder() {
|
|
|
|
}
|
|
|
|
public static ProjectDVBuilder newBuilder() {
|
|
return new ProjectDVBuilder();
|
|
}
|
|
|
|
public boolean isIncludeValidationReport() {
|
|
return validationReport;
|
|
}
|
|
|
|
public boolean isIncludeSpatialReference() {
|
|
return spatialReference;
|
|
}
|
|
|
|
public boolean isIncludeTemporalReference() {
|
|
return temporalReference;
|
|
}
|
|
|
|
public boolean isIncludeRelationships() {
|
|
return relationships;
|
|
}
|
|
|
|
public List<String> getListDocumentKeys() {
|
|
return listDocumentKeys;
|
|
}
|
|
|
|
public boolean isIncludeFullDocumentMap() {
|
|
return fullDocumentMap;
|
|
}
|
|
|
|
public ProjectDVBuilder validationReport(boolean includeValidationReport) {
|
|
this.validationReport = includeValidationReport;
|
|
return this;
|
|
}
|
|
|
|
public ProjectDVBuilder spatialReference(boolean includeSpatialReference) {
|
|
this.spatialReference = includeSpatialReference;
|
|
return this;
|
|
}
|
|
|
|
public ProjectDVBuilder temporalReference(boolean includeTemporalReference) {
|
|
this.temporalReference = includeTemporalReference;
|
|
return this;
|
|
}
|
|
|
|
public ProjectDVBuilder relationships(boolean includeRelationships) {
|
|
this.relationships = includeRelationships;
|
|
return this;
|
|
}
|
|
|
|
public ProjectDVBuilder listDocumentKeys(List<String> listDocumentKeys) {
|
|
this.listDocumentKeys = listDocumentKeys;
|
|
return this;
|
|
}
|
|
|
|
public ProjectDVBuilder fullDocumentMap(boolean includeFullDocumentMap) {
|
|
this.fullDocumentMap = includeFullDocumentMap;
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("ProjectDVBuilder [validationReport=");
|
|
builder.append(validationReport);
|
|
builder.append(", spatialReference=");
|
|
builder.append(spatialReference);
|
|
builder.append(", temporalReference=");
|
|
builder.append(temporalReference);
|
|
builder.append(", relationships=");
|
|
builder.append(relationships);
|
|
builder.append(", listDocumentKeys=");
|
|
builder.append(listDocumentKeys);
|
|
builder.append(", fullDocumentMap=");
|
|
builder.append(fullDocumentMap);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|