Skip to content

Commit

Permalink
Bump version to 12.2.0-SNAPSHOT
Browse files Browse the repository at this point in the history
Add builders to geo location classes
  • Loading branch information
datazuul committed Aug 28, 2023
1 parent e987fd3 commit bc31dfd
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dc-model-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.digitalcollections.model</groupId>
<artifactId>dc-model-parent</artifactId>
<version>12.1.0</version>
<version>12.2.0-SNAPSHOT</version>
</parent>

<name>DigitalCollections: Model (Jackson)</name>
Expand Down
2 changes: 1 addition & 1 deletion dc-model-mappings/dc-model-html-mapping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.digitalcollections.model</groupId>
<artifactId>dc-model-mappings</artifactId>
<version>12.1.0</version>
<version>12.2.0-SNAPSHOT</version>
</parent>

<name>DigitalCollections: Model (Mappings: HTML)</name>
Expand Down
2 changes: 1 addition & 1 deletion dc-model-mappings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.digitalcollections.model</groupId>
<artifactId>dc-model-parent</artifactId>
<version>12.1.0</version>
<version>12.2.0-SNAPSHOT</version>
</parent>

<name>DigitalCollections: Model (Mappings)</name>
Expand Down
2 changes: 1 addition & 1 deletion dc-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.digitalcollections.model</groupId>
<artifactId>dc-model-parent</artifactId>
<version>12.1.0</version>
<version>12.2.0-SNAPSHOT</version>
</parent>

<name>DigitalCollections: Model (Model)</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,94 @@
package de.digitalcollections.model.identifiable.entity.geo.location;

import lombok.experimental.SuperBuilder;

/**
* A deep ravine between cliffs. see https://www.wikidata.org/wiki/Q150784 "Schlucht; tief
* eingeschnittenes Tal"
*/
@SuperBuilder(buildMethodName = "prebuild")
public class Canyon extends GeoLocation {

public abstract static class CanyonBuilder<C extends Canyon, B extends CanyonBuilder<C, B>>
extends GeoLocationBuilder<C, B> {

@Override
public C build() {
C c = prebuild();
c.init();
setInternalReferences(c);
return c;
}
}

public Canyon() {
super();
init();
}

@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (!super.equals(obj)) return false;
if (getClass() != obj.getClass()) return false;
return true;
}

@Override
public int hashCode() {
return super.hashCode();
}

@Override
protected void init() {
super.init();
this.geoLocationType = GeoLocationType.CANYON;
}

@Override
public String toString() {
return "Canyon [coordinateLocation="
+ coordinateLocation
+ ", geoLocationType="
+ geoLocationType
+ ", name="
+ name
+ ", nameLocalesOfOriginalScripts="
+ nameLocalesOfOriginalScripts
+ ", customAttributes="
+ customAttributes
+ ", navDate="
+ navDate
+ ", refId="
+ refId
+ ", notes="
+ notes
+ ", description="
+ description
+ ", identifiableObjectType="
+ identifiableObjectType
+ ", identifiers="
+ identifiers
+ ", label="
+ label
+ ", localizedUrlAliases="
+ localizedUrlAliases
+ ", previewImage="
+ previewImage
+ ", previewImageRenderingHints="
+ previewImageRenderingHints
+ ", subjects="
+ subjects
+ ", tags="
+ tags
+ ", type="
+ type
+ ", created="
+ created
+ ", lastModified="
+ lastModified
+ ", uuid="
+ uuid
+ "]";
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,94 @@
package de.digitalcollections.model.identifiable.entity.geo.location;

import lombok.experimental.SuperBuilder;

/**
* A natural underground space large enough for a human to enter. see
* https://www.wikidata.org/wiki/Q35509 "Höhle; natürlich entstandener unterirdischer Hohlraum"
*/
@SuperBuilder(buildMethodName = "prebuild")
public class Cave extends GeoLocation {

public abstract static class CaveBuilder<C extends Cave, B extends CaveBuilder<C, B>>
extends GeoLocationBuilder<C, B> {

@Override
public C build() {
C c = prebuild();
c.init();
setInternalReferences(c);
return c;
}
}

public Cave() {
super();
init();
}

@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (!super.equals(obj)) return false;
if (getClass() != obj.getClass()) return false;
return true;
}

@Override
public int hashCode() {
return super.hashCode();
}

@Override
protected void init() {
super.init();
this.geoLocationType = GeoLocationType.CAVE;
}

@Override
public String toString() {
return "Cave [coordinateLocation="
+ coordinateLocation
+ ", geoLocationType="
+ geoLocationType
+ ", name="
+ name
+ ", nameLocalesOfOriginalScripts="
+ nameLocalesOfOriginalScripts
+ ", customAttributes="
+ customAttributes
+ ", navDate="
+ navDate
+ ", refId="
+ refId
+ ", notes="
+ notes
+ ", description="
+ description
+ ", identifiableObjectType="
+ identifiableObjectType
+ ", identifiers="
+ identifiers
+ ", label="
+ label
+ ", localizedUrlAliases="
+ localizedUrlAliases
+ ", previewImage="
+ previewImage
+ ", previewImageRenderingHints="
+ previewImageRenderingHints
+ ", subjects="
+ subjects
+ ", tags="
+ tags
+ ", type="
+ type
+ ", created="
+ created
+ ", lastModified="
+ lastModified
+ ", uuid="
+ uuid
+ "]";
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>de.digitalcollections.model</groupId>
<artifactId>dc-model-parent</artifactId>
<version>12.1.0</version>
<version>12.2.0-SNAPSHOT</version>
<packaging>pom</packaging>

<modules>
Expand Down

0 comments on commit bc31dfd

Please sign in to comment.