Skip to content

Commit

Permalink
MBS-1424: Add a first-release-date field to recordings (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiencek authored Nov 11, 2020
1 parent 6319985 commit 8664eae
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.01.07 at 09:53:38 PM CST
// Generated on: 2020.10.29 at 10:46:53 AM CDT
//


Expand Down Expand Up @@ -44,6 +44,7 @@
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}disambiguation" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}video" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}artist-credit" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}first-release-date" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}release-list" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}alias-list" minOccurs="0"/&gt;
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}puid-list" minOccurs="0"/&gt;
Expand Down Expand Up @@ -74,6 +75,7 @@
"disambiguation",
"video",
"artistCredit",
"firstReleaseDate",
"releaseList",
"aliasList",
"puidList",
Expand All @@ -99,6 +101,8 @@ public class Recording {
protected String video;
@XmlElement(name = "artist-credit")
protected ArtistCredit artistCredit;
@XmlElement(name = "first-release-date")
protected String firstReleaseDate;
@XmlElement(name = "release-list")
protected ReleaseList releaseList;
@XmlElement(name = "alias-list")
Expand Down Expand Up @@ -275,6 +279,30 @@ public void setArtistCredit(ArtistCredit value) {
this.artistCredit = value;
}

/**
* Gets the value of the firstReleaseDate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFirstReleaseDate() {
return firstReleaseDate;
}

/**
* Sets the value of the firstReleaseDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstReleaseDate(String value) {
this.firstReleaseDate = value;
}

/**
* Gets the value of the releaseList property.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
<xs:element minOccurs="0" ref="mmd-2.0:disambiguation"/>
<xs:element minOccurs="0" ref="mmd-2.0:video"/>
<xs:element minOccurs="0" ref="mmd-2.0:artist-credit"/>
<xs:element minOccurs="0" ref="mmd-2.0:first-release-date"/>
<xs:element minOccurs="0" ref="mmd-2.0:release-list"/>
<xs:element minOccurs="0" ref="mmd-2.0:alias-list"/>
<xs:element minOccurs="0" ref="mmd-2.0:puid-list"/>
Expand Down
6 changes: 5 additions & 1 deletion schema/musicbrainz_mmd-2.0.rng
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,11 @@
<optional>
<ref name="def_artist-credit"/>
</optional>

<optional>
<element name="first-release-date">
<ref name="def_incomplete-date" />
</element>
</optional>

<optional>
<ref name="def_release-list"/>
Expand Down

0 comments on commit 8664eae

Please sign in to comment.