dnet-hadoop/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/GeoLocation.java

54 lines
1.2 KiB
Java
Raw Normal View History

package eu.dnetlib.dhp.schema.dump.oaf;
2020-06-15 11:06:56 +02:00
import java.io.Serializable;
import org.apache.commons.lang3.StringUtils;
2020-06-15 11:06:56 +02:00
import com.fasterxml.jackson.annotation.JsonIgnore;
2020-08-13 17:05:06 +02:00
/**
2020-08-13 18:23:24 +02:00
* Represents the geolocation information. It has three parameters: - point of type String to store the point
* information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation point - box ot type String to store the box
* information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation box - place of type String to store the place
* information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation place
2020-08-13 17:05:06 +02:00
*/
public class GeoLocation implements Serializable {
private String point;
private String box;
private String place;
public String getPoint() {
return point;
}
public void setPoint(String point) {
this.point = point;
}
public String getBox() {
return box;
}
public void setBox(String box) {
this.box = box;
}
public String getPlace() {
return place;
}
public void setPlace(String place) {
this.place = place;
}
@JsonIgnore
public boolean isBlank() {
return StringUtils.isBlank(point) && StringUtils.isBlank(box) && StringUtils.isBlank(place);
}
}