-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard Easterling
authored and
Richard Easterling
committed
Dec 12, 2017
1 parent
d212205
commit f5a9457
Showing
24 changed files
with
1,889 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.gradle | ||
/build/ | ||
**/build/ | ||
**/out/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package com.topografix.gpx; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.validation.constraints.DecimalMin; | ||
import javax.validation.constraints.DecimalMax; | ||
|
||
public class Bounds | ||
{ | ||
@JacksonXmlProperty(isAttribute = true) | ||
@DecimalMin("-90.0") | ||
@DecimalMax("90.0") | ||
private double minlat; | ||
@JacksonXmlProperty(isAttribute = true) | ||
@DecimalMin("-180.0") | ||
@DecimalMax("180.0") | ||
private double minlon; | ||
@JacksonXmlProperty(isAttribute = true) | ||
@DecimalMin("-90.0") | ||
@DecimalMax("90.0") | ||
private double maxlat; | ||
@JacksonXmlProperty(isAttribute = true) | ||
@DecimalMin("-180.0") | ||
@DecimalMax("180.0") | ||
private double maxlon; | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder("Bounds["); | ||
sb.append("minlat=").append(minlat); | ||
sb.append(", minlon=").append(minlon); | ||
sb.append(", maxlat=").append(maxlat); | ||
sb.append(", maxlon=").append(maxlon); | ||
return sb.append("]").toString(); | ||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Bounds other = (Bounds)o; | ||
if (Double.compare(other.minlat, minlat) != 0) return false; | ||
if (Double.compare(other.minlon, minlon) != 0) return false; | ||
if (Double.compare(other.maxlat, maxlat) != 0) return false; | ||
if (Double.compare(other.maxlon, maxlon) != 0) return false; | ||
return true; | ||
} | ||
@Override | ||
public int hashCode() { | ||
int result = 1; | ||
final long minlatTemp = Double.doubleToLongBits(minlat); | ||
result = 31 * result + (int) (minlatTemp ^ (minlatTemp >>> 32)); | ||
final long minlonTemp = Double.doubleToLongBits(minlon); | ||
result = 31 * result + (int) (minlonTemp ^ (minlonTemp >>> 32)); | ||
final long maxlatTemp = Double.doubleToLongBits(maxlat); | ||
result = 31 * result + (int) (maxlatTemp ^ (maxlatTemp >>> 32)); | ||
final long maxlonTemp = Double.doubleToLongBits(maxlon); | ||
result = 31 * result + (int) (maxlonTemp ^ (maxlonTemp >>> 32)); | ||
return result; | ||
} | ||
public double getMinlat() { | ||
return minlat; | ||
} | ||
public void setMinlat(double minlat) { | ||
this.minlat = minlat; | ||
} | ||
public double getMinlon() { | ||
return minlon; | ||
} | ||
public void setMinlon(double minlon) { | ||
this.minlon = minlon; | ||
} | ||
public double getMaxlat() { | ||
return maxlat; | ||
} | ||
public void setMaxlat(double maxlat) { | ||
this.maxlat = maxlat; | ||
} | ||
public double getMaxlon() { | ||
return maxlon; | ||
} | ||
public void setMaxlon(double maxlon) { | ||
this.maxlon = maxlon; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
java-gpx/src/main/java-gen/com/topografix/gpx/Copyright.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.topografix.gpx; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.validation.constraints.NotNull; | ||
|
||
public class Copyright | ||
{ | ||
@JacksonXmlProperty(isAttribute = true) | ||
@NotNull | ||
private String author; | ||
private Integer year; | ||
private String license; | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder("Copyright["); | ||
sb.append("author=").append(author); | ||
sb.append(", year=").append(year); | ||
sb.append(", license=").append(license); | ||
return sb.append("]").toString(); | ||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Copyright other = (Copyright)o; | ||
if (author != null ? !author.equals(other.author) : other.author != null) return false; | ||
if (year != null ? !year.equals(other.year) : other.year != null) return false; | ||
if (license != null ? !license.equals(other.license) : other.license != null) return false; | ||
return true; | ||
} | ||
@Override | ||
public int hashCode() { | ||
int result = 1; | ||
result = 31 * result + (author != null ? author.hashCode() : 0); | ||
result = 31 * result + (year != null ? year.hashCode() : 0); | ||
result = 31 * result + (license != null ? license.hashCode() : 0); | ||
return result; | ||
} | ||
public String getAuthor() { | ||
return author; | ||
} | ||
public void setAuthor(String author) { | ||
this.author = author; | ||
} | ||
public Integer getYear() { | ||
return year; | ||
} | ||
public void setYear(Integer year) { | ||
this.year = year; | ||
} | ||
public String getLicense() { | ||
return license; | ||
} | ||
public void setLicense(String license) { | ||
this.license = license; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.topografix.gpx; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.validation.constraints.NotNull; | ||
|
||
public class Email | ||
{ | ||
@JacksonXmlProperty(isAttribute = true) | ||
@NotNull | ||
private String id; | ||
@JacksonXmlProperty(isAttribute = true) | ||
@NotNull | ||
private String domain; | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder("Email["); | ||
sb.append("id=").append(id); | ||
sb.append(", domain=").append(domain); | ||
return sb.append("]").toString(); | ||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Email other = (Email)o; | ||
if (id != null ? !id.equals(other.id) : other.id != null) return false; | ||
if (domain != null ? !domain.equals(other.domain) : other.domain != null) return false; | ||
return true; | ||
} | ||
@Override | ||
public int hashCode() { | ||
int result = 1; | ||
result = 31 * result + (id != null ? id.hashCode() : 0); | ||
result = 31 * result + (domain != null ? domain.hashCode() : 0); | ||
return result; | ||
} | ||
public String getId() { | ||
return id; | ||
} | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
public String getDomain() { | ||
return domain; | ||
} | ||
public void setDomain(String domain) { | ||
this.domain = domain; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
java-gpx/src/main/java-gen/com/topografix/gpx/FixTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.topografix.gpx; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public enum FixTypeEnum | ||
{ | ||
_2d("2d"), | ||
_3d("3d"), | ||
Dgps("dgps"), | ||
None("none"), | ||
Pps("pps"); | ||
@JsonValue | ||
private final String value; | ||
|
||
private FixTypeEnum(String value) { | ||
this.value = value; | ||
} | ||
public String getValue() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
package com.topografix.gpx; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.Valid; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(value = {"schemaLocation"}) | ||
public class Gpx | ||
{ | ||
@JacksonXmlProperty(isAttribute = true) | ||
@NotNull | ||
private final String version = "1.1"; | ||
@JacksonXmlProperty(isAttribute = true) | ||
@NotNull | ||
private String creator; | ||
@Valid | ||
private Metadata metadata; | ||
@JacksonXmlElementWrapper(localName="wpts", useWrapping=false) | ||
@JacksonXmlProperty(localName="wpt") | ||
@Valid | ||
private java.util.List<Wpt> wpts; | ||
@JacksonXmlElementWrapper(localName="rtes", useWrapping=false) | ||
@JacksonXmlProperty(localName="rte") | ||
@Valid | ||
private java.util.List<Rte> rtes; | ||
@JacksonXmlElementWrapper(localName="trks", useWrapping=false) | ||
@JacksonXmlProperty(localName="trk") | ||
@Valid | ||
private java.util.List<Trk> trks; | ||
private java.util.Map<String,Object> extensions = new java.util.TreeMap<>(); | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder("Gpx["); | ||
sb.append("version=").append(version); | ||
sb.append(", creator=").append(creator); | ||
sb.append(", metadata=").append(metadata); | ||
sb.append(", wpts=").append(wpts); | ||
sb.append(", rtes=").append(rtes); | ||
sb.append(", trks=").append(trks); | ||
sb.append(", extensions=").append(extensions); | ||
return sb.append("]").toString(); | ||
} | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Gpx other = (Gpx)o; | ||
if (version != null ? !version.equals(other.version) : other.version != null) return false; | ||
if (creator != null ? !creator.equals(other.creator) : other.creator != null) return false; | ||
if (metadata != null ? !metadata.equals(other.metadata) : other.metadata != null) return false; | ||
if (wpts != null ? !wpts.equals(other.wpts) : other.wpts != null) return false; | ||
if (rtes != null ? !rtes.equals(other.rtes) : other.rtes != null) return false; | ||
if (trks != null ? !trks.equals(other.trks) : other.trks != null) return false; | ||
if (extensions != null ? !extensions.equals(other.extensions) : other.extensions != null) return false; | ||
return true; | ||
} | ||
@Override | ||
public int hashCode() { | ||
int result = 1; | ||
result = 31 * result + (version != null ? version.hashCode() : 0); | ||
result = 31 * result + (creator != null ? creator.hashCode() : 0); | ||
result = 31 * result + (metadata != null ? metadata.hashCode() : 0); | ||
result = 31 * result + (wpts != null ? wpts.hashCode() : 0); | ||
result = 31 * result + (rtes != null ? rtes.hashCode() : 0); | ||
result = 31 * result + (trks != null ? trks.hashCode() : 0); | ||
result = 31 * result + (extensions != null ? extensions.hashCode() : 0); | ||
return result; | ||
} | ||
public String getVersion() { | ||
return version; | ||
} | ||
public String getCreator() { | ||
return creator; | ||
} | ||
public void setCreator(String creator) { | ||
this.creator = creator; | ||
} | ||
public Metadata getMetadata() { | ||
return metadata; | ||
} | ||
public void setMetadata(Metadata metadata) { | ||
this.metadata = metadata; | ||
} | ||
public java.util.List<Wpt> getWpts() { | ||
return wpts; | ||
} | ||
public void setWpts(java.util.List<Wpt> wpts) { | ||
this.wpts = wpts; | ||
} | ||
public void addWpt(Wpt wpt) { | ||
if (this.wpts == null) | ||
this.wpts = new java.util.ArrayList<>(); | ||
this.wpts.add(wpt); | ||
} | ||
public java.util.List<Rte> getRtes() { | ||
return rtes; | ||
} | ||
public void setRtes(java.util.List<Rte> rtes) { | ||
this.rtes = rtes; | ||
} | ||
public void addRte(Rte rte) { | ||
if (this.rtes == null) | ||
this.rtes = new java.util.ArrayList<>(); | ||
this.rtes.add(rte); | ||
} | ||
public java.util.List<Trk> getTrks() { | ||
return trks; | ||
} | ||
public void setTrks(java.util.List<Trk> trks) { | ||
this.trks = trks; | ||
} | ||
public void addTrk(Trk trk) { | ||
if (this.trks == null) | ||
this.trks = new java.util.ArrayList<>(); | ||
this.trks.add(trk); | ||
} | ||
@JsonAnyGetter | ||
public java.util.Map<String,Object> getExtensions() { | ||
return extensions; | ||
} | ||
public void setExtensions(java.util.Map<String,Object> extensions) { | ||
this.extensions = extensions; | ||
} | ||
@JsonAnySetter | ||
public void putExtensions(String key, Object value) { | ||
this.extensions.put(key, value); | ||
} | ||
} |
Oops, something went wrong.