From 438db03a330b254d699bd5bbfb18c1090d833807 Mon Sep 17 00:00:00 2001 From: Victor Kropp Date: Tue, 4 Aug 2015 15:40:41 +0200 Subject: [PATCH] regenerate --- src/main/java/org/schema/APIReference.java | 58 +- src/main/java/org/schema/AboutPage.java | 58 +- src/main/java/org/schema/Answer.java | 58 +- src/main/java/org/schema/Article.java | 58 +- src/main/java/org/schema/AudioObject.java | 58 +- src/main/java/org/schema/Blog.java | 58 +- src/main/java/org/schema/BlogPosting.java | 58 +- src/main/java/org/schema/Book.java | 58 +- src/main/java/org/schema/BookSeries.java | 58 +- src/main/java/org/schema/CheckoutPage.java | 58 +- src/main/java/org/schema/Clip.java | 58 +- src/main/java/org/schema/Code.java | 58 +- src/main/java/org/schema/CollectionPage.java | 58 +- src/main/java/org/schema/Comment.java | 58 +- src/main/java/org/schema/ContactPage.java | 58 +- src/main/java/org/schema/CreativeWork.java | 58 +- .../java/org/schema/CreativeWorkSeason.java | 58 +- .../java/org/schema/CreativeWorkSeries.java | 58 +- src/main/java/org/schema/DataCatalog.java | 58 +- src/main/java/org/schema/DataDownload.java | 58 +- src/main/java/org/schema/Dataset.java | 58 +- .../org/schema/DatedMoneySpecification.java | 29 +- .../schema/DeliveryChargeSpecification.java | 58 +- src/main/java/org/schema/DoseSchedule.java | 29 +- src/main/java/org/schema/DrugStrength.java | 29 +- src/main/java/org/schema/EmailMessage.java | 58 +- src/main/java/org/schema/EmployeeRole.java | 29 +- src/main/java/org/schema/Episode.java | 58 +- src/main/java/org/schema/ExercisePlan.java | 29 +- src/main/java/org/schema/Game.java | 58 +- src/main/java/org/schema/ImageGallery.java | 58 +- src/main/java/org/schema/ImageObject.java | 58 +- src/main/java/org/schema/ItemPage.java | 58 +- src/main/java/org/schema/Map.java | 58 +- .../java/org/schema/MaximumDoseSchedule.java | 29 +- src/main/java/org/schema/MediaObject.java | 58 +- src/main/java/org/schema/MedicalAudience.java | 58 +- .../org/schema/MedicalConditionStage.java | 29 +- .../org/schema/MedicalScholarlyArticle.java | 58 +- src/main/java/org/schema/MedicalWebPage.java | 58 +- .../java/org/schema/MobileApplication.java | 58 +- src/main/java/org/schema/Movie.java | 58 +- src/main/java/org/schema/MovieClip.java | 58 +- src/main/java/org/schema/MovieSeries.java | 58 +- src/main/java/org/schema/MovieTheater.java | 29 +- src/main/java/org/schema/MusicAlbum.java | 58 +- .../java/org/schema/MusicComposition.java | 58 +- src/main/java/org/schema/MusicPlaylist.java | 58 +- src/main/java/org/schema/MusicRecording.java | 58 +- src/main/java/org/schema/MusicRelease.java | 58 +- .../java/org/schema/MusicVideoObject.java | 58 +- src/main/java/org/schema/NewsArticle.java | 58 +- src/main/java/org/schema/Number.java | 42 +- src/main/java/org/schema/OrderItem.java | 29 +- .../java/org/schema/OrganizationRole.java | 29 +- src/main/java/org/schema/Painting.java | 58 +- src/main/java/org/schema/ParentAudience.java | 116 +- .../schema/PaymentChargeSpecification.java | 58 +- src/main/java/org/schema/PeopleAudience.java | 58 +- src/main/java/org/schema/Periodical.java | 58 +- src/main/java/org/schema/Photograph.java | 58 +- .../java/org/schema/PriceSpecification.java | 58 +- src/main/java/org/schema/ProfilePage.java | 58 +- src/main/java/org/schema/Project.java | 172 +++ src/main/java/org/schema/PropertyValue.java | 29 +- .../schema/PropertyValueSpecification.java | 116 +- .../java/org/schema/PublicationIssue.java | 58 +- .../java/org/schema/PublicationVolume.java | 58 +- src/main/java/org/schema/QAPage.java | 58 +- .../java/org/schema/QuantitativeValue.java | 58 +- src/main/java/org/schema/Question.java | 58 +- src/main/java/org/schema/RadioClip.java | 58 +- src/main/java/org/schema/RadioEpisode.java | 58 +- src/main/java/org/schema/RadioSeason.java | 58 +- src/main/java/org/schema/RadioSeries.java | 58 +- src/main/java/org/schema/Recipe.java | 58 +- .../org/schema/RecommendedDoseSchedule.java | 29 +- .../java/org/schema/ReportedDoseSchedule.java | 29 +- src/main/java/org/schema/Review.java | 58 +- src/main/java/org/schema/RsvpAction.java | 29 +- src/main/java/org/schema/SchemaOrg.java | 12 +- .../java/org/schema/ScholarlyArticle.java | 58 +- src/main/java/org/schema/Sculpture.java | 58 +- .../java/org/schema/SearchResultsPage.java | 58 +- src/main/java/org/schema/Season.java | 58 +- src/main/java/org/schema/Series.java | 58 +- .../org/schema/SiteNavigationElement.java | 58 +- .../java/org/schema/SoftwareApplication.java | 58 +- .../org/schema/SoftwareApplicationBuild.java | 1033 +++++++++++++++++ .../java/org/schema/SoftwareSourceCode.java | 58 +- src/main/java/org/schema/TVClip.java | 58 +- src/main/java/org/schema/TVEpisode.java | 58 +- src/main/java/org/schema/TVSeason.java | 58 +- src/main/java/org/schema/TVSeries.java | 58 +- src/main/java/org/schema/Table.java | 58 +- src/main/java/org/schema/TechArticle.java | 58 +- src/main/java/org/schema/Thing.java | 3 + .../java/org/schema/TypeAndQuantityNode.java | 29 +- .../org/schema/UnitPriceSpecification.java | 87 +- src/main/java/org/schema/VideoGallery.java | 58 +- src/main/java/org/schema/VideoGame.java | 58 +- src/main/java/org/schema/VideoGameClip.java | 58 +- src/main/java/org/schema/VideoGameSeries.java | 58 +- src/main/java/org/schema/VideoObject.java | 58 +- src/main/java/org/schema/VisualArtwork.java | 58 +- src/main/java/org/schema/WPAdBlock.java | 58 +- src/main/java/org/schema/WPFooter.java | 58 +- src/main/java/org/schema/WPHeader.java | 58 +- src/main/java/org/schema/WPSideBar.java | 58 +- src/main/java/org/schema/WebApplication.java | 58 +- src/main/java/org/schema/WebPage.java | 58 +- src/main/java/org/schema/WebPageElement.java | 58 +- src/main/java/org/schema/WebSite.java | 58 +- 113 files changed, 6804 insertions(+), 432 deletions(-) create mode 100644 src/main/java/org/schema/Project.java create mode 100644 src/main/java/org/schema/SoftwareApplicationBuild.java diff --git a/src/main/java/org/schema/APIReference.java b/src/main/java/org/schema/APIReference.java index b10164d5..d5b02ff3 100644 --- a/src/main/java/org/schema/APIReference.java +++ b/src/main/java/org/schema/APIReference.java @@ -337,8 +337,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -604,8 +629,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/AboutPage.java b/src/main/java/org/schema/AboutPage.java index 118ba39b..62550cba 100644 --- a/src/main/java/org/schema/AboutPage.java +++ b/src/main/java/org/schema/AboutPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Answer.java b/src/main/java/org/schema/Answer.java index 44c4e90b..db4cf3db 100644 --- a/src/main/java/org/schema/Answer.java +++ b/src/main/java/org/schema/Answer.java @@ -233,8 +233,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -500,8 +525,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Article.java b/src/main/java/org/schema/Article.java index de8cbe43..54f6901b 100644 --- a/src/main/java/org/schema/Article.java +++ b/src/main/java/org/schema/Article.java @@ -310,8 +310,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -577,8 +602,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/AudioObject.java b/src/main/java/org/schema/AudioObject.java index d4624496..ecaa4509 100644 --- a/src/main/java/org/schema/AudioObject.java +++ b/src/main/java/org/schema/AudioObject.java @@ -355,8 +355,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -622,8 +647,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Blog.java b/src/main/java/org/schema/Blog.java index a8e2779c..49d18fda 100644 --- a/src/main/java/org/schema/Blog.java +++ b/src/main/java/org/schema/Blog.java @@ -224,8 +224,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -491,8 +516,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/BlogPosting.java b/src/main/java/org/schema/BlogPosting.java index e81b8044..1944580d 100644 --- a/src/main/java/org/schema/BlogPosting.java +++ b/src/main/java/org/schema/BlogPosting.java @@ -271,8 +271,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -538,8 +563,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Book.java b/src/main/java/org/schema/Book.java index d35edd84..38df6e47 100644 --- a/src/main/java/org/schema/Book.java +++ b/src/main/java/org/schema/Book.java @@ -276,8 +276,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -543,8 +568,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/BookSeries.java b/src/main/java/org/schema/BookSeries.java index 6fb201fc..af13cc91 100644 --- a/src/main/java/org/schema/BookSeries.java +++ b/src/main/java/org/schema/BookSeries.java @@ -225,8 +225,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -492,8 +517,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/CheckoutPage.java b/src/main/java/org/schema/CheckoutPage.java index b0bdb6fb..74c2a11b 100644 --- a/src/main/java/org/schema/CheckoutPage.java +++ b/src/main/java/org/schema/CheckoutPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Clip.java b/src/main/java/org/schema/Clip.java index 449e6e17..c01f7f72 100644 --- a/src/main/java/org/schema/Clip.java +++ b/src/main/java/org/schema/Clip.java @@ -311,8 +311,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -578,8 +603,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Code.java b/src/main/java/org/schema/Code.java index ae32dcbe..1c026def 100644 --- a/src/main/java/org/schema/Code.java +++ b/src/main/java/org/schema/Code.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/CollectionPage.java b/src/main/java/org/schema/CollectionPage.java index 77d142f1..b636987b 100644 --- a/src/main/java/org/schema/CollectionPage.java +++ b/src/main/java/org/schema/CollectionPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Comment.java b/src/main/java/org/schema/Comment.java index 87dbe5fb..f03ee05e 100644 --- a/src/main/java/org/schema/Comment.java +++ b/src/main/java/org/schema/Comment.java @@ -250,8 +250,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -517,8 +542,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ContactPage.java b/src/main/java/org/schema/ContactPage.java index 6ec6ae74..027ed1f0 100644 --- a/src/main/java/org/schema/ContactPage.java +++ b/src/main/java/org/schema/ContactPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/CreativeWork.java b/src/main/java/org/schema/CreativeWork.java index c9f23449..4708c187 100644 --- a/src/main/java/org/schema/CreativeWork.java +++ b/src/main/java/org/schema/CreativeWork.java @@ -593,8 +593,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -860,8 +885,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/CreativeWorkSeason.java b/src/main/java/org/schema/CreativeWorkSeason.java index b99dbdb5..856da5cd 100644 --- a/src/main/java/org/schema/CreativeWorkSeason.java +++ b/src/main/java/org/schema/CreativeWorkSeason.java @@ -352,8 +352,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -619,8 +644,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/CreativeWorkSeries.java b/src/main/java/org/schema/CreativeWorkSeries.java index 0a640a95..b708fa9c 100644 --- a/src/main/java/org/schema/CreativeWorkSeries.java +++ b/src/main/java/org/schema/CreativeWorkSeries.java @@ -261,8 +261,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -528,8 +553,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/DataCatalog.java b/src/main/java/org/schema/DataCatalog.java index 72e270b1..eaa0e442 100644 --- a/src/main/java/org/schema/DataCatalog.java +++ b/src/main/java/org/schema/DataCatalog.java @@ -226,8 +226,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -493,8 +518,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/DataDownload.java b/src/main/java/org/schema/DataDownload.java index 0356279f..b569ff84 100644 --- a/src/main/java/org/schema/DataDownload.java +++ b/src/main/java/org/schema/DataDownload.java @@ -343,8 +343,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -610,8 +635,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Dataset.java b/src/main/java/org/schema/Dataset.java index c9d281cd..d7113aad 100644 --- a/src/main/java/org/schema/Dataset.java +++ b/src/main/java/org/schema/Dataset.java @@ -266,8 +266,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -533,8 +558,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/DatedMoneySpecification.java b/src/main/java/org/schema/DatedMoneySpecification.java index 765265ed..d60fdfd0 100644 --- a/src/main/java/org/schema/DatedMoneySpecification.java +++ b/src/main/java/org/schema/DatedMoneySpecification.java @@ -61,8 +61,33 @@ public DatedMoneySpecification build() { /** * The amount of money. */ - public Builder amount(Number number) { - this.amount = number; + public Builder amount(Integer integer) { + if(this.amount == null) this.amount = new Number(); + this.amount.setInteger(integer); + return this; + } + /** + * The amount of money. + */ + public Builder amount(Long amount) { + if(this.amount == null) this.amount = new Number(); + this.amount.setLong(amount); + return this; + } + /** + * The amount of money. + */ + public Builder amount(Float amount) { + if(this.amount == null) this.amount = new Number(); + this.amount.setFloat(amount); + return this; + } + /** + * The amount of money. + */ + public Builder amount(Double amount) { + if(this.amount == null) this.amount = new Number(); + this.amount.setDouble(amount); return this; } /** diff --git a/src/main/java/org/schema/DeliveryChargeSpecification.java b/src/main/java/org/schema/DeliveryChargeSpecification.java index 194916a2..49f020fa 100644 --- a/src/main/java/org/schema/DeliveryChargeSpecification.java +++ b/src/main/java/org/schema/DeliveryChargeSpecification.java @@ -123,15 +123,65 @@ public Builder eligibleTransactionVolume(PriceSpecification priceSpecification) /** * The highest price if the price is a range. */ - public Builder maxPrice(Number number) { - this.maxPrice = number; + public Builder maxPrice(Integer integer) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setInteger(integer); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Long maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setLong(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Float maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setFloat(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Double maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setDouble(maxPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Integer integer) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setInteger(integer); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Long minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setLong(minPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Float minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setFloat(minPrice); return this; } /** * The lowest price if the price is a range. */ - public Builder minPrice(Number number) { - this.minPrice = number; + public Builder minPrice(Double minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setDouble(minPrice); return this; } /** diff --git a/src/main/java/org/schema/DoseSchedule.java b/src/main/java/org/schema/DoseSchedule.java index 04d2be6c..e6991537 100644 --- a/src/main/java/org/schema/DoseSchedule.java +++ b/src/main/java/org/schema/DoseSchedule.java @@ -66,8 +66,33 @@ public Builder doseUnit(String doseUnit) { /** * The value of the dose, e.g. 500. */ - public Builder doseValue(Number number) { - this.doseValue = number; + public Builder doseValue(Integer integer) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setInteger(integer); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Long doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setLong(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Float doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setFloat(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Double doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setDouble(doseValue); return this; } /** diff --git a/src/main/java/org/schema/DrugStrength.java b/src/main/java/org/schema/DrugStrength.java index 9e38fe62..a17415ed 100644 --- a/src/main/java/org/schema/DrugStrength.java +++ b/src/main/java/org/schema/DrugStrength.java @@ -81,8 +81,33 @@ public Builder strengthUnit(String strengthUnit) { /** * The value of an active ingredient's strength, e.g. 325. */ - public Builder strengthValue(Number number) { - this.strengthValue = number; + public Builder strengthValue(Integer integer) { + if(this.strengthValue == null) this.strengthValue = new Number(); + this.strengthValue.setInteger(integer); + return this; + } + /** + * The value of an active ingredient's strength, e.g. 325. + */ + public Builder strengthValue(Long strengthValue) { + if(this.strengthValue == null) this.strengthValue = new Number(); + this.strengthValue.setLong(strengthValue); + return this; + } + /** + * The value of an active ingredient's strength, e.g. 325. + */ + public Builder strengthValue(Float strengthValue) { + if(this.strengthValue == null) this.strengthValue = new Number(); + this.strengthValue.setFloat(strengthValue); + return this; + } + /** + * The value of an active ingredient's strength, e.g. 325. + */ + public Builder strengthValue(Double strengthValue) { + if(this.strengthValue == null) this.strengthValue = new Number(); + this.strengthValue.setDouble(strengthValue); return this; } /** diff --git a/src/main/java/org/schema/EmailMessage.java b/src/main/java/org/schema/EmailMessage.java index 1273cb61..5b2c1266 100644 --- a/src/main/java/org/schema/EmailMessage.java +++ b/src/main/java/org/schema/EmailMessage.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/EmployeeRole.java b/src/main/java/org/schema/EmployeeRole.java index 9d29e957..63238479 100644 --- a/src/main/java/org/schema/EmployeeRole.java +++ b/src/main/java/org/schema/EmployeeRole.java @@ -48,8 +48,33 @@ public Builder salaryCurrency(String salaryCurrency) { /** * A number associated with a role in an organization, for example, the number on an athlete's jersey. */ - public Builder numberedPosition(Number number) { - this.numberedPosition = number; + public Builder numberedPosition(Integer integer) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setInteger(integer); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Long numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setLong(numberedPosition); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Float numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setFloat(numberedPosition); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Double numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setDouble(numberedPosition); return this; } /** diff --git a/src/main/java/org/schema/Episode.java b/src/main/java/org/schema/Episode.java index ebf8cc2f..e06e7085 100644 --- a/src/main/java/org/schema/Episode.java +++ b/src/main/java/org/schema/Episode.java @@ -333,8 +333,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -600,8 +625,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ExercisePlan.java b/src/main/java/org/schema/ExercisePlan.java index ab262776..12be4388 100644 --- a/src/main/java/org/schema/ExercisePlan.java +++ b/src/main/java/org/schema/ExercisePlan.java @@ -119,8 +119,33 @@ public Builder intensity(String intensity) { /** * Number of times one should repeat the activity. */ - public Builder repetitions(Number number) { - this.repetitions = number; + public Builder repetitions(Integer integer) { + if(this.repetitions == null) this.repetitions = new Number(); + this.repetitions.setInteger(integer); + return this; + } + /** + * Number of times one should repeat the activity. + */ + public Builder repetitions(Long repetitions) { + if(this.repetitions == null) this.repetitions = new Number(); + this.repetitions.setLong(repetitions); + return this; + } + /** + * Number of times one should repeat the activity. + */ + public Builder repetitions(Float repetitions) { + if(this.repetitions == null) this.repetitions = new Number(); + this.repetitions.setFloat(repetitions); + return this; + } + /** + * Number of times one should repeat the activity. + */ + public Builder repetitions(Double repetitions) { + if(this.repetitions == null) this.repetitions = new Number(); + this.repetitions.setDouble(repetitions); return this; } /** diff --git a/src/main/java/org/schema/Game.java b/src/main/java/org/schema/Game.java index b9fe0c71..6cc7c54f 100644 --- a/src/main/java/org/schema/Game.java +++ b/src/main/java/org/schema/Game.java @@ -293,8 +293,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -560,8 +585,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ImageGallery.java b/src/main/java/org/schema/ImageGallery.java index d8dfe159..72a52b23 100644 --- a/src/main/java/org/schema/ImageGallery.java +++ b/src/main/java/org/schema/ImageGallery.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ImageObject.java b/src/main/java/org/schema/ImageObject.java index 9d6dc393..aa09688c 100644 --- a/src/main/java/org/schema/ImageObject.java +++ b/src/main/java/org/schema/ImageObject.java @@ -403,8 +403,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -670,8 +695,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ItemPage.java b/src/main/java/org/schema/ItemPage.java index 06035557..a650f718 100644 --- a/src/main/java/org/schema/ItemPage.java +++ b/src/main/java/org/schema/ItemPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Map.java b/src/main/java/org/schema/Map.java index 88e78a37..c77af34f 100644 --- a/src/main/java/org/schema/Map.java +++ b/src/main/java/org/schema/Map.java @@ -224,8 +224,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -491,8 +516,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MaximumDoseSchedule.java b/src/main/java/org/schema/MaximumDoseSchedule.java index 3fe204f0..15034798 100644 --- a/src/main/java/org/schema/MaximumDoseSchedule.java +++ b/src/main/java/org/schema/MaximumDoseSchedule.java @@ -42,8 +42,33 @@ public Builder doseUnit(String doseUnit) { /** * The value of the dose, e.g. 500. */ - public Builder doseValue(Number number) { - this.doseValue = number; + public Builder doseValue(Integer integer) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setInteger(integer); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Long doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setLong(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Float doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setFloat(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Double doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setDouble(doseValue); return this; } /** diff --git a/src/main/java/org/schema/MediaObject.java b/src/main/java/org/schema/MediaObject.java index 98f81029..260cf623 100644 --- a/src/main/java/org/schema/MediaObject.java +++ b/src/main/java/org/schema/MediaObject.java @@ -439,8 +439,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -706,8 +731,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MedicalAudience.java b/src/main/java/org/schema/MedicalAudience.java index bcd21c29..c8676867 100644 --- a/src/main/java/org/schema/MedicalAudience.java +++ b/src/main/java/org/schema/MedicalAudience.java @@ -71,15 +71,65 @@ public Builder suggestedGender(String suggestedGender) { /** * Maximal age recommended for viewing content. */ - public Builder suggestedMaxAge(Number number) { - this.suggestedMaxAge = number; + public Builder suggestedMaxAge(Integer integer) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setInteger(integer); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Long suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setLong(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Float suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setFloat(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Double suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setDouble(suggestedMaxAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Integer integer) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setInteger(integer); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Long suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setLong(suggestedMinAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Float suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setFloat(suggestedMinAge); return this; } /** * Minimal age recommended for viewing content. */ - public Builder suggestedMinAge(Number number) { - this.suggestedMinAge = number; + public Builder suggestedMinAge(Double suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setDouble(suggestedMinAge); return this; } /** diff --git a/src/main/java/org/schema/MedicalConditionStage.java b/src/main/java/org/schema/MedicalConditionStage.java index f4b08c5c..baebdda2 100644 --- a/src/main/java/org/schema/MedicalConditionStage.java +++ b/src/main/java/org/schema/MedicalConditionStage.java @@ -48,8 +48,33 @@ public MedicalConditionStage build() { /** * The stage represented as a number, e.g. 3. */ - public Builder stageAsNumber(Number number) { - this.stageAsNumber = number; + public Builder stageAsNumber(Integer integer) { + if(this.stageAsNumber == null) this.stageAsNumber = new Number(); + this.stageAsNumber.setInteger(integer); + return this; + } + /** + * The stage represented as a number, e.g. 3. + */ + public Builder stageAsNumber(Long stageAsNumber) { + if(this.stageAsNumber == null) this.stageAsNumber = new Number(); + this.stageAsNumber.setLong(stageAsNumber); + return this; + } + /** + * The stage represented as a number, e.g. 3. + */ + public Builder stageAsNumber(Float stageAsNumber) { + if(this.stageAsNumber == null) this.stageAsNumber = new Number(); + this.stageAsNumber.setFloat(stageAsNumber); + return this; + } + /** + * The stage represented as a number, e.g. 3. + */ + public Builder stageAsNumber(Double stageAsNumber) { + if(this.stageAsNumber == null) this.stageAsNumber = new Number(); + this.stageAsNumber.setDouble(stageAsNumber); return this; } /** diff --git a/src/main/java/org/schema/MedicalScholarlyArticle.java b/src/main/java/org/schema/MedicalScholarlyArticle.java index 52bda4ae..1c7d7fec 100644 --- a/src/main/java/org/schema/MedicalScholarlyArticle.java +++ b/src/main/java/org/schema/MedicalScholarlyArticle.java @@ -284,8 +284,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -551,8 +576,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MedicalWebPage.java b/src/main/java/org/schema/MedicalWebPage.java index 88dd11ed..b6ef18e6 100644 --- a/src/main/java/org/schema/MedicalWebPage.java +++ b/src/main/java/org/schema/MedicalWebPage.java @@ -298,8 +298,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -565,8 +590,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MobileApplication.java b/src/main/java/org/schema/MobileApplication.java index 276585af..0575675e 100644 --- a/src/main/java/org/schema/MobileApplication.java +++ b/src/main/java/org/schema/MobileApplication.java @@ -387,8 +387,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -654,8 +679,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Movie.java b/src/main/java/org/schema/Movie.java index 339e5974..f68e3ed5 100644 --- a/src/main/java/org/schema/Movie.java +++ b/src/main/java/org/schema/Movie.java @@ -320,8 +320,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -587,8 +612,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MovieClip.java b/src/main/java/org/schema/MovieClip.java index e7e1717c..05dd8ec4 100644 --- a/src/main/java/org/schema/MovieClip.java +++ b/src/main/java/org/schema/MovieClip.java @@ -269,8 +269,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -536,8 +561,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MovieSeries.java b/src/main/java/org/schema/MovieSeries.java index e3e1dc07..d2e94e8e 100644 --- a/src/main/java/org/schema/MovieSeries.java +++ b/src/main/java/org/schema/MovieSeries.java @@ -286,8 +286,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -553,8 +578,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MovieTheater.java b/src/main/java/org/schema/MovieTheater.java index a1f9221b..7791350f 100644 --- a/src/main/java/org/schema/MovieTheater.java +++ b/src/main/java/org/schema/MovieTheater.java @@ -41,8 +41,33 @@ public MovieTheater build() { /** * The number of screens in the movie theater. */ - public Builder screenCount(Number number) { - this.screenCount = number; + public Builder screenCount(Integer integer) { + if(this.screenCount == null) this.screenCount = new Number(); + this.screenCount.setInteger(integer); + return this; + } + /** + * The number of screens in the movie theater. + */ + public Builder screenCount(Long screenCount) { + if(this.screenCount == null) this.screenCount = new Number(); + this.screenCount.setLong(screenCount); + return this; + } + /** + * The number of screens in the movie theater. + */ + public Builder screenCount(Float screenCount) { + if(this.screenCount == null) this.screenCount = new Number(); + this.screenCount.setFloat(screenCount); + return this; + } + /** + * The number of screens in the movie theater. + */ + public Builder screenCount(Double screenCount) { + if(this.screenCount == null) this.screenCount = new Number(); + this.screenCount.setDouble(screenCount); return this; } /** diff --git a/src/main/java/org/schema/MusicAlbum.java b/src/main/java/org/schema/MusicAlbum.java index e0343665..e5c825a8 100644 --- a/src/main/java/org/schema/MusicAlbum.java +++ b/src/main/java/org/schema/MusicAlbum.java @@ -286,8 +286,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -553,8 +578,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MusicComposition.java b/src/main/java/org/schema/MusicComposition.java index 8438d7b2..df692126 100644 --- a/src/main/java/org/schema/MusicComposition.java +++ b/src/main/java/org/schema/MusicComposition.java @@ -338,8 +338,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -605,8 +630,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MusicPlaylist.java b/src/main/java/org/schema/MusicPlaylist.java index 9bf87ab1..2566f323 100644 --- a/src/main/java/org/schema/MusicPlaylist.java +++ b/src/main/java/org/schema/MusicPlaylist.java @@ -246,8 +246,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -513,8 +538,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MusicRecording.java b/src/main/java/org/schema/MusicRecording.java index 656712c4..d38f2975 100644 --- a/src/main/java/org/schema/MusicRecording.java +++ b/src/main/java/org/schema/MusicRecording.java @@ -289,8 +289,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -556,8 +581,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MusicRelease.java b/src/main/java/org/schema/MusicRelease.java index 3c74bdc6..b1a038b4 100644 --- a/src/main/java/org/schema/MusicRelease.java +++ b/src/main/java/org/schema/MusicRelease.java @@ -322,8 +322,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -589,8 +614,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/MusicVideoObject.java b/src/main/java/org/schema/MusicVideoObject.java index 4d554ffc..58dcc7eb 100644 --- a/src/main/java/org/schema/MusicVideoObject.java +++ b/src/main/java/org/schema/MusicVideoObject.java @@ -341,8 +341,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -608,8 +633,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/NewsArticle.java b/src/main/java/org/schema/NewsArticle.java index 21019fec..e3ce6b87 100644 --- a/src/main/java/org/schema/NewsArticle.java +++ b/src/main/java/org/schema/NewsArticle.java @@ -337,8 +337,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -604,8 +629,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Number.java b/src/main/java/org/schema/Number.java index f3d0d136..40551772 100644 --- a/src/main/java/org/schema/Number.java +++ b/src/main/java/org/schema/Number.java @@ -18,22 +18,32 @@ package org.schema; -/** - * Data type: Number. - */ -public class Number { - /** - * Builder for {@link Number} - */ - public static final class Builder { - /** - * Creates new {@link Number} instance. - */ - public Number build() { - return new Number(); - } +@com.fasterxml.jackson.databind.annotation.JsonSerialize(include = com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion.NON_NULL) +class Number { + @com.fasterxml.jackson.annotation.JsonValue + public Object getJsonLdValue() { + if (myInteger != null) return myInteger; + if (myLong != null) return myLong; + if (myFloat != null) return myFloat; + if (myDouble != null) return myDouble; + return null; } - - protected Number() { + public void setInteger(Integer integer) { clear(); myInteger = integer; } + public Integer getInteger() { return myInteger; } + private Integer myInteger; + public void setLong(Long value) { clear(); myLong = value; } + public Long getLong() { return myLong; } + private Long myLong; + public void setFloat(Float value) { clear(); myFloat = value; } + public Float getFloat() { return myFloat; } + private Float myFloat; + public void setDouble(Double value) { clear(); myDouble = value; } + public Double getDouble() { return myDouble; } + private Double myDouble; + private void clear() { + myInteger = null; + myLong = null; + myFloat = null; + myDouble = null; } } diff --git a/src/main/java/org/schema/OrderItem.java b/src/main/java/org/schema/OrderItem.java index b5a6ccd0..d1952e36 100644 --- a/src/main/java/org/schema/OrderItem.java +++ b/src/main/java/org/schema/OrderItem.java @@ -65,8 +65,33 @@ public OrderItem build() { /** * The number of the item ordered. If the property is not set, assume the quantity is one. */ - public Builder orderQuantity(Number number) { - this.orderQuantity = number; + public Builder orderQuantity(Integer integer) { + if(this.orderQuantity == null) this.orderQuantity = new Number(); + this.orderQuantity.setInteger(integer); + return this; + } + /** + * The number of the item ordered. If the property is not set, assume the quantity is one. + */ + public Builder orderQuantity(Long orderQuantity) { + if(this.orderQuantity == null) this.orderQuantity = new Number(); + this.orderQuantity.setLong(orderQuantity); + return this; + } + /** + * The number of the item ordered. If the property is not set, assume the quantity is one. + */ + public Builder orderQuantity(Float orderQuantity) { + if(this.orderQuantity == null) this.orderQuantity = new Number(); + this.orderQuantity.setFloat(orderQuantity); + return this; + } + /** + * The number of the item ordered. If the property is not set, assume the quantity is one. + */ + public Builder orderQuantity(Double orderQuantity) { + if(this.orderQuantity == null) this.orderQuantity = new Number(); + this.orderQuantity.setDouble(orderQuantity); return this; } /** diff --git a/src/main/java/org/schema/OrganizationRole.java b/src/main/java/org/schema/OrganizationRole.java index 4e5652f7..10fd06c2 100644 --- a/src/main/java/org/schema/OrganizationRole.java +++ b/src/main/java/org/schema/OrganizationRole.java @@ -41,8 +41,33 @@ public OrganizationRole build() { /** * A number associated with a role in an organization, for example, the number on an athlete's jersey. */ - public Builder numberedPosition(Number number) { - this.numberedPosition = number; + public Builder numberedPosition(Integer integer) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setInteger(integer); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Long numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setLong(numberedPosition); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Float numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setFloat(numberedPosition); + return this; + } + /** + * A number associated with a role in an organization, for example, the number on an athlete's jersey. + */ + public Builder numberedPosition(Double numberedPosition) { + if(this.numberedPosition == null) this.numberedPosition = new Number(); + this.numberedPosition.setDouble(numberedPosition); return this; } /** diff --git a/src/main/java/org/schema/Painting.java b/src/main/java/org/schema/Painting.java index 3f4f0594..5a1faea4 100644 --- a/src/main/java/org/schema/Painting.java +++ b/src/main/java/org/schema/Painting.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/ParentAudience.java b/src/main/java/org/schema/ParentAudience.java index d35364c1..22a3bb77 100644 --- a/src/main/java/org/schema/ParentAudience.java +++ b/src/main/java/org/schema/ParentAudience.java @@ -47,15 +47,65 @@ public ParentAudience build() { /** * Maximal age of the child. */ - public Builder childMaxAge(Number number) { - this.childMaxAge = number; + public Builder childMaxAge(Integer integer) { + if(this.childMaxAge == null) this.childMaxAge = new Number(); + this.childMaxAge.setInteger(integer); + return this; + } + /** + * Maximal age of the child. + */ + public Builder childMaxAge(Long childMaxAge) { + if(this.childMaxAge == null) this.childMaxAge = new Number(); + this.childMaxAge.setLong(childMaxAge); + return this; + } + /** + * Maximal age of the child. + */ + public Builder childMaxAge(Float childMaxAge) { + if(this.childMaxAge == null) this.childMaxAge = new Number(); + this.childMaxAge.setFloat(childMaxAge); + return this; + } + /** + * Maximal age of the child. + */ + public Builder childMaxAge(Double childMaxAge) { + if(this.childMaxAge == null) this.childMaxAge = new Number(); + this.childMaxAge.setDouble(childMaxAge); + return this; + } + /** + * Minimal age of the child. + */ + public Builder childMinAge(Integer integer) { + if(this.childMinAge == null) this.childMinAge = new Number(); + this.childMinAge.setInteger(integer); + return this; + } + /** + * Minimal age of the child. + */ + public Builder childMinAge(Long childMinAge) { + if(this.childMinAge == null) this.childMinAge = new Number(); + this.childMinAge.setLong(childMinAge); + return this; + } + /** + * Minimal age of the child. + */ + public Builder childMinAge(Float childMinAge) { + if(this.childMinAge == null) this.childMinAge = new Number(); + this.childMinAge.setFloat(childMinAge); return this; } /** * Minimal age of the child. */ - public Builder childMinAge(Number number) { - this.childMinAge = number; + public Builder childMinAge(Double childMinAge) { + if(this.childMinAge == null) this.childMinAge = new Number(); + this.childMinAge.setDouble(childMinAge); return this; } /** @@ -96,15 +146,65 @@ public Builder suggestedGender(String suggestedGender) { /** * Maximal age recommended for viewing content. */ - public Builder suggestedMaxAge(Number number) { - this.suggestedMaxAge = number; + public Builder suggestedMaxAge(Integer integer) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setInteger(integer); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Long suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setLong(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Float suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setFloat(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Double suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setDouble(suggestedMaxAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Integer integer) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setInteger(integer); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Long suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setLong(suggestedMinAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Float suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setFloat(suggestedMinAge); return this; } /** * Minimal age recommended for viewing content. */ - public Builder suggestedMinAge(Number number) { - this.suggestedMinAge = number; + public Builder suggestedMinAge(Double suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setDouble(suggestedMinAge); return this; } /** diff --git a/src/main/java/org/schema/PaymentChargeSpecification.java b/src/main/java/org/schema/PaymentChargeSpecification.java index 54c5eab8..50ef9bed 100644 --- a/src/main/java/org/schema/PaymentChargeSpecification.java +++ b/src/main/java/org/schema/PaymentChargeSpecification.java @@ -76,15 +76,65 @@ public Builder eligibleTransactionVolume(PriceSpecification priceSpecification) /** * The highest price if the price is a range. */ - public Builder maxPrice(Number number) { - this.maxPrice = number; + public Builder maxPrice(Integer integer) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setInteger(integer); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Long maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setLong(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Float maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setFloat(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Double maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setDouble(maxPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Integer integer) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setInteger(integer); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Long minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setLong(minPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Float minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setFloat(minPrice); return this; } /** * The lowest price if the price is a range. */ - public Builder minPrice(Number number) { - this.minPrice = number; + public Builder minPrice(Double minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setDouble(minPrice); return this; } /** diff --git a/src/main/java/org/schema/PeopleAudience.java b/src/main/java/org/schema/PeopleAudience.java index cfe23842..60fd3f4d 100644 --- a/src/main/java/org/schema/PeopleAudience.java +++ b/src/main/java/org/schema/PeopleAudience.java @@ -112,15 +112,65 @@ public Builder suggestedGender(String suggestedGender) { /** * Maximal age recommended for viewing content. */ - public Builder suggestedMaxAge(Number number) { - this.suggestedMaxAge = number; + public Builder suggestedMaxAge(Integer integer) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setInteger(integer); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Long suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setLong(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Float suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setFloat(suggestedMaxAge); + return this; + } + /** + * Maximal age recommended for viewing content. + */ + public Builder suggestedMaxAge(Double suggestedMaxAge) { + if(this.suggestedMaxAge == null) this.suggestedMaxAge = new Number(); + this.suggestedMaxAge.setDouble(suggestedMaxAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Integer integer) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setInteger(integer); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Long suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setLong(suggestedMinAge); + return this; + } + /** + * Minimal age recommended for viewing content. + */ + public Builder suggestedMinAge(Float suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setFloat(suggestedMinAge); return this; } /** * Minimal age recommended for viewing content. */ - public Builder suggestedMinAge(Number number) { - this.suggestedMinAge = number; + public Builder suggestedMinAge(Double suggestedMinAge) { + if(this.suggestedMinAge == null) this.suggestedMinAge = new Number(); + this.suggestedMinAge.setDouble(suggestedMinAge); return this; } /** diff --git a/src/main/java/org/schema/Periodical.java b/src/main/java/org/schema/Periodical.java index fd5ed6aa..5b9c44bf 100644 --- a/src/main/java/org/schema/Periodical.java +++ b/src/main/java/org/schema/Periodical.java @@ -242,8 +242,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -509,8 +534,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Photograph.java b/src/main/java/org/schema/Photograph.java index 979584ff..e50e17ee 100644 --- a/src/main/java/org/schema/Photograph.java +++ b/src/main/java/org/schema/Photograph.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/PriceSpecification.java b/src/main/java/org/schema/PriceSpecification.java index d4f49a93..4203aa0c 100644 --- a/src/main/java/org/schema/PriceSpecification.java +++ b/src/main/java/org/schema/PriceSpecification.java @@ -126,15 +126,65 @@ public Builder eligibleTransactionVolume(PriceSpecification priceSpecification) /** * The highest price if the price is a range. */ - public Builder maxPrice(Number number) { - this.maxPrice = number; + public Builder maxPrice(Integer integer) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setInteger(integer); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Long maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setLong(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Float maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setFloat(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Double maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setDouble(maxPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Integer integer) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setInteger(integer); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Long minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setLong(minPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Float minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setFloat(minPrice); return this; } /** * The lowest price if the price is a range. */ - public Builder minPrice(Number number) { - this.minPrice = number; + public Builder minPrice(Double minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setDouble(minPrice); return this; } /** diff --git a/src/main/java/org/schema/ProfilePage.java b/src/main/java/org/schema/ProfilePage.java index 7df1bbc7..75613298 100644 --- a/src/main/java/org/schema/ProfilePage.java +++ b/src/main/java/org/schema/ProfilePage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Project.java b/src/main/java/org/schema/Project.java new file mode 100644 index 00000000..80be5a80 --- /dev/null +++ b/src/main/java/org/schema/Project.java @@ -0,0 +1,172 @@ +/* + * Copyright 2015 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This is auto-generated file. Do not edit. + */ + +package org.schema; + +/** + * Project + */ +public class Project extends Thing { + /** + * Builder for {@link Project} + */ + public static final class Builder { + /** + * Creates new {@link Project} instance. + */ + public Project build() { + return new Project(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); + } + /** + * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. + */ + public Builder additionalType(String additionalType) { + this.additionalType = additionalType; + return this; + } + /** + * An alias for the item. + */ + public Builder alternateName(String alternateName) { + this.alternateName = alternateName; + return this; + } + /** + * A short description of the item. + */ + public Builder description(String description) { + this.description = description; + return this; + } + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. +

+ Many (but not all) pages have a fairly clear primary topic, some entity or thing that the page describes. For + example a restaurant's home page might be primarily about that Restaurant, or an event listing page might + represent a single event. The mainEntity and mainEntityOfPage properties allow you to explicitly express the relationship + between the page and the primary entity. +

+ + Related properties include sameAs, about, and url. +

+ + The sameAs and url properties are both similar to mainEntityOfPage. The url property should be reserved to refer to more + official or authoritative web pages, such as the item’s official website. The sameAs property also relates a thing + to a page that indirectly identifies it. Whereas sameAs emphasises well known pages, the mainEntityOfPage property + serves more to clarify which of several entities is the main one for that page. +

+ + mainEntityOfPage can be used for any page, including those not recognized as authoritative for that entity. For example, + for a product, sameAs might refer to a page on the manufacturer’s official site with specs for the product, while + mainEntityOfPage might be used on pages within various retailers’ sites giving details for the same product. +

+ + about is similar to mainEntity, with two key differences. First, about can refer to multiple entities/topics, + while mainEntity should be used for only the primary one. Second, some pages have a primary entity that itself + describes some other entity. For example, one web page may display a news article about a particular person. + Another page may display a product review for a particular product. In these cases, mainEntity for the pages + should refer to the news article or review, respectively, while about would more properly refer to the person or product. + + */ + public Builder mainEntityOfPage(CreativeWork creativeWork) { + if(this.mainEntityOfPage == null) this.mainEntityOfPage = new CreativeWorkOrString(); + this.mainEntityOfPage.setCreativeWork(creativeWork); + return this; + } + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. +

+ Many (but not all) pages have a fairly clear primary topic, some entity or thing that the page describes. For + example a restaurant's home page might be primarily about that Restaurant, or an event listing page might + represent a single event. The mainEntity and mainEntityOfPage properties allow you to explicitly express the relationship + between the page and the primary entity. +

+ + Related properties include sameAs, about, and url. +

+ + The sameAs and url properties are both similar to mainEntityOfPage. The url property should be reserved to refer to more + official or authoritative web pages, such as the item’s official website. The sameAs property also relates a thing + to a page that indirectly identifies it. Whereas sameAs emphasises well known pages, the mainEntityOfPage property + serves more to clarify which of several entities is the main one for that page. +

+ + mainEntityOfPage can be used for any page, including those not recognized as authoritative for that entity. For example, + for a product, sameAs might refer to a page on the manufacturer’s official site with specs for the product, while + mainEntityOfPage might be used on pages within various retailers’ sites giving details for the same product. +

+ + about is similar to mainEntity, with two key differences. First, about can refer to multiple entities/topics, + while mainEntity should be used for only the primary one. Second, some pages have a primary entity that itself + describes some other entity. For example, one web page may display a news article about a particular person. + Another page may display a product review for a particular product. In these cases, mainEntity for the pages + should refer to the news article or review, respectively, while about would more properly refer to the person or product. + + */ + public Builder mainEntityOfPage(String mainEntityOfPage) { + if(this.mainEntityOfPage == null) this.mainEntityOfPage = new CreativeWorkOrString(); + this.mainEntityOfPage.setString(mainEntityOfPage); + return this; + } + /** + * The name of the item. + */ + public Builder name(String name) { + this.name = name; + return this; + } + /** + * URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website. + */ + public Builder sameAs(String sameAs) { + this.sameAs = sameAs; + return this; + } + /** + * URL of the item. + */ + public Builder url(String url) { + this.url = url; + return this; + } + /** + * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. + */ + public Builder potentialAction(Action action) { + this.potentialAction = action; + return this; + } + public Builder id(String id) { + this.id = id; + return this; + } + private String additionalType; + private String alternateName; + private String description; + private CreativeWorkOrString mainEntityOfPage; + private String name; + private String sameAs; + private String url; + private Action potentialAction; + private String id; + } + + protected Project(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); + } +} diff --git a/src/main/java/org/schema/PropertyValue.java b/src/main/java/org/schema/PropertyValue.java index f514ea31..1875548d 100644 --- a/src/main/java/org/schema/PropertyValue.java +++ b/src/main/java/org/schema/PropertyValue.java @@ -79,8 +79,33 @@ public PropertyValue build() { /** * The lower value of some characteristic or property. */ - public Builder minValue(Number number) { - this.minValue = number; + public Builder minValue(Integer integer) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setInteger(integer); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Long minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setLong(minValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Float minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setFloat(minValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Double minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setDouble(minValue); return this; } /** diff --git a/src/main/java/org/schema/PropertyValueSpecification.java b/src/main/java/org/schema/PropertyValueSpecification.java index a76dfcc9..4fb4e1a1 100644 --- a/src/main/java/org/schema/PropertyValueSpecification.java +++ b/src/main/java/org/schema/PropertyValueSpecification.java @@ -96,8 +96,33 @@ public PropertyValueSpecification build() { /** * The lower value of some characteristic or property. */ - public Builder minValue(Number number) { - this.minValue = number; + public Builder minValue(Integer integer) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setInteger(integer); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Long minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setLong(minValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Float minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setFloat(minValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Double minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setDouble(minValue); return this; } /** @@ -147,15 +172,65 @@ public Builder multipleValues(Boolean multipleValues) { /** * Specifies the minimum allowed range for number of characters in a literal value. */ - public Builder valueMinLength(Number number) { - this.valueMinLength = number; + public Builder valueMinLength(Integer integer) { + if(this.valueMinLength == null) this.valueMinLength = new Number(); + this.valueMinLength.setInteger(integer); + return this; + } + /** + * Specifies the minimum allowed range for number of characters in a literal value. + */ + public Builder valueMinLength(Long valueMinLength) { + if(this.valueMinLength == null) this.valueMinLength = new Number(); + this.valueMinLength.setLong(valueMinLength); + return this; + } + /** + * Specifies the minimum allowed range for number of characters in a literal value. + */ + public Builder valueMinLength(Float valueMinLength) { + if(this.valueMinLength == null) this.valueMinLength = new Number(); + this.valueMinLength.setFloat(valueMinLength); + return this; + } + /** + * Specifies the minimum allowed range for number of characters in a literal value. + */ + public Builder valueMinLength(Double valueMinLength) { + if(this.valueMinLength == null) this.valueMinLength = new Number(); + this.valueMinLength.setDouble(valueMinLength); return this; } /** * Specifies the allowed range for number of characters in a literal value. */ - public Builder valueMaxLength(Number number) { - this.valueMaxLength = number; + public Builder valueMaxLength(Integer integer) { + if(this.valueMaxLength == null) this.valueMaxLength = new Number(); + this.valueMaxLength.setInteger(integer); + return this; + } + /** + * Specifies the allowed range for number of characters in a literal value. + */ + public Builder valueMaxLength(Long valueMaxLength) { + if(this.valueMaxLength == null) this.valueMaxLength = new Number(); + this.valueMaxLength.setLong(valueMaxLength); + return this; + } + /** + * Specifies the allowed range for number of characters in a literal value. + */ + public Builder valueMaxLength(Float valueMaxLength) { + if(this.valueMaxLength == null) this.valueMaxLength = new Number(); + this.valueMaxLength.setFloat(valueMaxLength); + return this; + } + /** + * Specifies the allowed range for number of characters in a literal value. + */ + public Builder valueMaxLength(Double valueMaxLength) { + if(this.valueMaxLength == null) this.valueMaxLength = new Number(); + this.valueMaxLength.setDouble(valueMaxLength); return this; } /** @@ -168,8 +243,33 @@ public Builder valuePattern(String valuePattern) { /** * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. */ - public Builder stepValue(Number number) { - this.stepValue = number; + public Builder stepValue(Integer integer) { + if(this.stepValue == null) this.stepValue = new Number(); + this.stepValue.setInteger(integer); + return this; + } + /** + * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. + */ + public Builder stepValue(Long stepValue) { + if(this.stepValue == null) this.stepValue = new Number(); + this.stepValue.setLong(stepValue); + return this; + } + /** + * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. + */ + public Builder stepValue(Float stepValue) { + if(this.stepValue == null) this.stepValue = new Number(); + this.stepValue.setFloat(stepValue); + return this; + } + /** + * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. + */ + public Builder stepValue(Double stepValue) { + if(this.stepValue == null) this.stepValue = new Number(); + this.stepValue.setDouble(stepValue); return this; } /** diff --git a/src/main/java/org/schema/PublicationIssue.java b/src/main/java/org/schema/PublicationIssue.java index 7bb1488d..6f219506 100644 --- a/src/main/java/org/schema/PublicationIssue.java +++ b/src/main/java/org/schema/PublicationIssue.java @@ -294,8 +294,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -561,8 +586,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/PublicationVolume.java b/src/main/java/org/schema/PublicationVolume.java index 3911fb81..bbd65819 100644 --- a/src/main/java/org/schema/PublicationVolume.java +++ b/src/main/java/org/schema/PublicationVolume.java @@ -293,8 +293,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -560,8 +585,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/QAPage.java b/src/main/java/org/schema/QAPage.java index 8851332b..e928ef0e 100644 --- a/src/main/java/org/schema/QAPage.java +++ b/src/main/java/org/schema/QAPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/QuantitativeValue.java b/src/main/java/org/schema/QuantitativeValue.java index d4b06102..2866be11 100644 --- a/src/main/java/org/schema/QuantitativeValue.java +++ b/src/main/java/org/schema/QuantitativeValue.java @@ -82,15 +82,65 @@ public QuantitativeValue build() { /** * The upper value of some characteristic or property. */ - public Builder maxValue(Number number) { - this.maxValue = number; + public Builder maxValue(Integer integer) { + if(this.maxValue == null) this.maxValue = new Number(); + this.maxValue.setInteger(integer); + return this; + } + /** + * The upper value of some characteristic or property. + */ + public Builder maxValue(Long maxValue) { + if(this.maxValue == null) this.maxValue = new Number(); + this.maxValue.setLong(maxValue); + return this; + } + /** + * The upper value of some characteristic or property. + */ + public Builder maxValue(Float maxValue) { + if(this.maxValue == null) this.maxValue = new Number(); + this.maxValue.setFloat(maxValue); + return this; + } + /** + * The upper value of some characteristic or property. + */ + public Builder maxValue(Double maxValue) { + if(this.maxValue == null) this.maxValue = new Number(); + this.maxValue.setDouble(maxValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Integer integer) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setInteger(integer); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Long minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setLong(minValue); + return this; + } + /** + * The lower value of some characteristic or property. + */ + public Builder minValue(Float minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setFloat(minValue); return this; } /** * The lower value of some characteristic or property. */ - public Builder minValue(Number number) { - this.minValue = number; + public Builder minValue(Double minValue) { + if(this.minValue == null) this.minValue = new Number(); + this.minValue.setDouble(minValue); return this; } /** diff --git a/src/main/java/org/schema/Question.java b/src/main/java/org/schema/Question.java index 266c5fb4..50dd65e2 100644 --- a/src/main/java/org/schema/Question.java +++ b/src/main/java/org/schema/Question.java @@ -277,8 +277,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -544,8 +569,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RadioClip.java b/src/main/java/org/schema/RadioClip.java index 0ba8be96..dfd00af5 100644 --- a/src/main/java/org/schema/RadioClip.java +++ b/src/main/java/org/schema/RadioClip.java @@ -269,8 +269,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -536,8 +561,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RadioEpisode.java b/src/main/java/org/schema/RadioEpisode.java index 0a09c283..de8dcc94 100644 --- a/src/main/java/org/schema/RadioEpisode.java +++ b/src/main/java/org/schema/RadioEpisode.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RadioSeason.java b/src/main/java/org/schema/RadioSeason.java index 3a8cab00..b05068c1 100644 --- a/src/main/java/org/schema/RadioSeason.java +++ b/src/main/java/org/schema/RadioSeason.java @@ -290,8 +290,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -557,8 +582,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RadioSeries.java b/src/main/java/org/schema/RadioSeries.java index d368a5a7..6e05a659 100644 --- a/src/main/java/org/schema/RadioSeries.java +++ b/src/main/java/org/schema/RadioSeries.java @@ -351,8 +351,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -618,8 +643,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Recipe.java b/src/main/java/org/schema/Recipe.java index bc0d0015..76348d4b 100644 --- a/src/main/java/org/schema/Recipe.java +++ b/src/main/java/org/schema/Recipe.java @@ -350,8 +350,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -617,8 +642,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RecommendedDoseSchedule.java b/src/main/java/org/schema/RecommendedDoseSchedule.java index 4abf7aef..645208a3 100644 --- a/src/main/java/org/schema/RecommendedDoseSchedule.java +++ b/src/main/java/org/schema/RecommendedDoseSchedule.java @@ -42,8 +42,33 @@ public Builder doseUnit(String doseUnit) { /** * The value of the dose, e.g. 500. */ - public Builder doseValue(Number number) { - this.doseValue = number; + public Builder doseValue(Integer integer) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setInteger(integer); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Long doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setLong(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Float doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setFloat(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Double doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setDouble(doseValue); return this; } /** diff --git a/src/main/java/org/schema/ReportedDoseSchedule.java b/src/main/java/org/schema/ReportedDoseSchedule.java index 9805ad22..8e89790a 100644 --- a/src/main/java/org/schema/ReportedDoseSchedule.java +++ b/src/main/java/org/schema/ReportedDoseSchedule.java @@ -42,8 +42,33 @@ public Builder doseUnit(String doseUnit) { /** * The value of the dose, e.g. 500. */ - public Builder doseValue(Number number) { - this.doseValue = number; + public Builder doseValue(Integer integer) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setInteger(integer); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Long doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setLong(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Float doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setFloat(doseValue); + return this; + } + /** + * The value of the dose, e.g. 500. + */ + public Builder doseValue(Double doseValue) { + if(this.doseValue == null) this.doseValue = new Number(); + this.doseValue.setDouble(doseValue); return this; } /** diff --git a/src/main/java/org/schema/Review.java b/src/main/java/org/schema/Review.java index 65ffd614..3f486437 100644 --- a/src/main/java/org/schema/Review.java +++ b/src/main/java/org/schema/Review.java @@ -250,8 +250,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -517,8 +542,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/RsvpAction.java b/src/main/java/org/schema/RsvpAction.java index ce855331..4aa78bc8 100644 --- a/src/main/java/org/schema/RsvpAction.java +++ b/src/main/java/org/schema/RsvpAction.java @@ -53,8 +53,33 @@ public RsvpAction build() { /** * If responding yes, the number of guests who will attend in addition to the invitee. */ - public Builder additionalNumberOfGuests(Number number) { - this.additionalNumberOfGuests = number; + public Builder additionalNumberOfGuests(Integer integer) { + if(this.additionalNumberOfGuests == null) this.additionalNumberOfGuests = new Number(); + this.additionalNumberOfGuests.setInteger(integer); + return this; + } + /** + * If responding yes, the number of guests who will attend in addition to the invitee. + */ + public Builder additionalNumberOfGuests(Long additionalNumberOfGuests) { + if(this.additionalNumberOfGuests == null) this.additionalNumberOfGuests = new Number(); + this.additionalNumberOfGuests.setLong(additionalNumberOfGuests); + return this; + } + /** + * If responding yes, the number of guests who will attend in addition to the invitee. + */ + public Builder additionalNumberOfGuests(Float additionalNumberOfGuests) { + if(this.additionalNumberOfGuests == null) this.additionalNumberOfGuests = new Number(); + this.additionalNumberOfGuests.setFloat(additionalNumberOfGuests); + return this; + } + /** + * If responding yes, the number of guests who will attend in addition to the invitee. + */ + public Builder additionalNumberOfGuests(Double additionalNumberOfGuests) { + if(this.additionalNumberOfGuests == null) this.additionalNumberOfGuests = new Number(); + this.additionalNumberOfGuests.setDouble(additionalNumberOfGuests); return this; } /** diff --git a/src/main/java/org/schema/SchemaOrg.java b/src/main/java/org/schema/SchemaOrg.java index eaafebc5..7ec1f7fc 100644 --- a/src/main/java/org/schema/SchemaOrg.java +++ b/src/main/java/org/schema/SchemaOrg.java @@ -951,6 +951,10 @@ CreativeWorkSeries is on published materials (written e.g. books and periodicals * A statement of the money due for goods or services; a bill. */ public static Invoice.Builder invoice() { return new Invoice.Builder(); } + /** + * Project + */ + public static Project.Builder project() { return new Project.Builder(); } /** * A recycling center. */ @@ -2099,6 +2103,10 @@ CreativeWorkSeries is on published materials (written e.g. books and periodicals * An event involving the delivery of an item. */ public static DeliveryEvent.Builder deliveryEvent() { return new DeliveryEvent.Builder(); } + /** + * Specific build of a software applicaton + */ + public static SoftwareApplicationBuild.Builder softwareApplicationBuild() { return new SoftwareApplicationBuild.Builder(); } /** * A campground. */ @@ -3449,10 +3457,6 @@ CreativeWorkSeries is on published materials (written e.g. books and periodicals * A church. */ public static Church.Builder church() { return new Church.Builder(); } - /** - * Data type: Number. - */ - public static Number.Builder number() { return new Number.Builder(); } /** * A music store. */ diff --git a/src/main/java/org/schema/ScholarlyArticle.java b/src/main/java/org/schema/ScholarlyArticle.java index 65d30d86..5379f110 100644 --- a/src/main/java/org/schema/ScholarlyArticle.java +++ b/src/main/java/org/schema/ScholarlyArticle.java @@ -271,8 +271,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -538,8 +563,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Sculpture.java b/src/main/java/org/schema/Sculpture.java index b1723b42..af603bfe 100644 --- a/src/main/java/org/schema/Sculpture.java +++ b/src/main/java/org/schema/Sculpture.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/SearchResultsPage.java b/src/main/java/org/schema/SearchResultsPage.java index 52b8ac5a..3f13a7f8 100644 --- a/src/main/java/org/schema/SearchResultsPage.java +++ b/src/main/java/org/schema/SearchResultsPage.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Season.java b/src/main/java/org/schema/Season.java index 389a0e2b..607bd492 100644 --- a/src/main/java/org/schema/Season.java +++ b/src/main/java/org/schema/Season.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Series.java b/src/main/java/org/schema/Series.java index 025cf0da..77379ddc 100644 --- a/src/main/java/org/schema/Series.java +++ b/src/main/java/org/schema/Series.java @@ -212,8 +212,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -479,8 +504,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/SiteNavigationElement.java b/src/main/java/org/schema/SiteNavigationElement.java index 461a305e..c149e945 100644 --- a/src/main/java/org/schema/SiteNavigationElement.java +++ b/src/main/java/org/schema/SiteNavigationElement.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/SoftwareApplication.java b/src/main/java/org/schema/SoftwareApplication.java index 5989d7ad..aba40ec8 100644 --- a/src/main/java/org/schema/SoftwareApplication.java +++ b/src/main/java/org/schema/SoftwareApplication.java @@ -506,8 +506,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -773,8 +798,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/SoftwareApplicationBuild.java b/src/main/java/org/schema/SoftwareApplicationBuild.java new file mode 100644 index 00000000..9182c0b3 --- /dev/null +++ b/src/main/java/org/schema/SoftwareApplicationBuild.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2015 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This is auto-generated file. Do not edit. + */ + +package org.schema; + +/** + * Specific build of a software applicaton + */ +public class SoftwareApplicationBuild extends SoftwareApplication { + /** + * Software application product this build belongs to. + */ + public SoftwareApplication getSoftwareApplication() { + return mySoftwareApplication; + } + /** + * Project this build belongs to. + */ + public Project getProject() { + return myProject; + } + /** + * Builder for {@link SoftwareApplicationBuild} + */ + public static final class Builder { + /** + * Creates new {@link SoftwareApplicationBuild} instance. + */ + public SoftwareApplicationBuild build() { + return new SoftwareApplicationBuild(softwareApplication, project, applicationCategory, applicationSubCategory, applicationSuite, countriesNotSupported, countriesSupported, availableOnDevice, downloadUrl, featureList, fileFormat, fileSize, installUrl, memoryRequirements, operatingSystem, permissions, processorRequirements, releaseNotes, softwareRequirements, screenshot, softwareVersion, storageRequirements, softwareAddOn, softwareHelp, schemaVersion, about, accessibilityAPI, accessibilityControl, accessibilityFeature, accessibilityHazard, accountablePerson, aggregateRating, alternativeHeadline, associatedMedia, audience, audio, author, award, citation, comment, contentLocation, contentRating, contributor, copyrightHolder, copyrightYear, creator, dateCreated, dateModified, datePublished, discussionUrl, editor, educationalAlignment, educationalUse, encoding, genre, headline, inLanguage, interactivityType, isBasedOnUrl, isFamilyFriendly, keywords, license, learningResourceType, mainEntity, mentions, offers, producer, publication, publisher, publishingPrinciples, recordedAt, review, sourceOrganization, text, thumbnailUrl, timeRequired, typicalAgeRange, version, video, provider, commentCount, hasPart, workExample, exampleOfWork, character, translator, releasedEvent, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); + } + /** + * Software application product this build belongs to. + */ + public Builder softwareApplication(SoftwareApplication softwareApplication) { + this.softwareApplication = softwareApplication; + return this; + } + /** + * Project this build belongs to. + */ + public Builder project(Project project) { + this.project = project; + return this; + } + /** + * Type of software application, e.g. "Game, Multimedia". + */ + public Builder applicationCategory(String applicationCategory) { + this.applicationCategory = applicationCategory; + return this; + } + /** + * Subcategory of the application, e.g. "Arcade Game". + */ + public Builder applicationSubCategory(String applicationSubCategory) { + this.applicationSubCategory = applicationSubCategory; + return this; + } + /** + * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). + */ + public Builder applicationSuite(String applicationSuite) { + this.applicationSuite = applicationSuite; + return this; + } + /** + * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + */ + public Builder countriesNotSupported(String countriesNotSupported) { + this.countriesNotSupported = countriesNotSupported; + return this; + } + /** + * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + */ + public Builder countriesSupported(String countriesSupported) { + this.countriesSupported = countriesSupported; + return this; + } + /** + * Device required to run the application. Used in cases where a specific make/model is required to run the application. + */ + public Builder availableOnDevice(String availableOnDevice) { + this.availableOnDevice = availableOnDevice; + return this; + } + /** + * If the file can be downloaded, URL to download the binary. + */ + public Builder downloadUrl(String downloadUrl) { + this.downloadUrl = downloadUrl; + return this; + } + /** + * Features or modules provided by this application (and possibly required by other applications). + */ + public Builder featureList(String featureList) { + this.featureList = featureList; + return this; + } + /** + * MIME format of the binary (e.g. application/zip). + */ + public Builder fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; + } + /** + * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. + */ + public Builder fileSize(Integer integer) { + this.fileSize = integer; + return this; + } + /** + * URL at which the app may be installed, if different from the URL of the item. + */ + public Builder installUrl(String installUrl) { + this.installUrl = installUrl; + return this; + } + /** + * Minimum memory requirements. + */ + public Builder memoryRequirements(String memoryRequirements) { + this.memoryRequirements = memoryRequirements; + return this; + } + /** + * Operating systems supported (Windows 7, OSX 10.6, Android 1.6). + */ + public Builder operatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + return this; + } + /** + * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). + */ + public Builder permissions(String permissions) { + this.permissions = permissions; + return this; + } + /** + * Processor architecture required to run the application (e.g. IA64). + */ + public Builder processorRequirements(String processorRequirements) { + this.processorRequirements = processorRequirements; + return this; + } + /** + * Description of what changed in this version. + */ + public Builder releaseNotes(String releaseNotes) { + this.releaseNotes = releaseNotes; + return this; + } + /** + * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime). + */ + public Builder softwareRequirements(String softwareRequirements) { + this.softwareRequirements = softwareRequirements; + return this; + } + /** + * A link to a screenshot image of the app. + */ + public Builder screenshot(ImageObject imageObject) { + if(this.screenshot == null) this.screenshot = new ImageObjectOrString(); + this.screenshot.setImageObject(imageObject); + return this; + } + /** + * A link to a screenshot image of the app. + */ + public Builder screenshot(String screenshot) { + if(this.screenshot == null) this.screenshot = new ImageObjectOrString(); + this.screenshot.setString(screenshot); + return this; + } + /** + * Version of the software instance. + */ + public Builder softwareVersion(String softwareVersion) { + this.softwareVersion = softwareVersion; + return this; + } + /** + * Storage requirements (free space required). + */ + public Builder storageRequirements(String storageRequirements) { + this.storageRequirements = storageRequirements; + return this; + } + /** + * Additional content for a software application. + */ + public Builder softwareAddOn(SoftwareApplication softwareApplication) { + this.softwareAddOn = softwareApplication; + return this; + } + /** + * Software application help. + */ + public Builder softwareHelp(CreativeWork creativeWork) { + this.softwareHelp = creativeWork; + return this; + } + /** + * Indicates (by URL or string) a particular version of a schema used in some CreativeWork. For example, a document could declare a schemaVersion using an URL such as http://schema.org/version/2.0/ if precise indication of schema version was required by some application. + */ + public Builder schemaVersion(String schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + /** + * The subject matter of the content. + */ + public Builder about(Thing thing) { + this.about = thing; + return this; + } + /** + * Indicates that the resource is compatible with the referenced accessibility API (WebSchemas wiki lists possible values). + */ + public Builder accessibilityAPI(String accessibilityAPI) { + this.accessibilityAPI = accessibilityAPI; + return this; + } + /** + * Identifies input methods that are sufficient to fully control the described resource (WebSchemas wiki lists possible values). + */ + public Builder accessibilityControl(String accessibilityControl) { + this.accessibilityControl = accessibilityControl; + return this; + } + /** + * Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility (WebSchemas wiki lists possible values). + */ + public Builder accessibilityFeature(String accessibilityFeature) { + this.accessibilityFeature = accessibilityFeature; + return this; + } + /** + * A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3 (WebSchemas wiki lists possible values). + */ + public Builder accessibilityHazard(String accessibilityHazard) { + this.accessibilityHazard = accessibilityHazard; + return this; + } + /** + * Specifies the Person that is legally accountable for the CreativeWork. + */ + public Builder accountablePerson(Person person) { + this.accountablePerson = person; + return this; + } + /** + * The overall rating, based on a collection of reviews or ratings, of the item. + */ + public Builder aggregateRating(AggregateRating aggregateRating) { + this.aggregateRating = aggregateRating; + return this; + } + /** + * A secondary title of the CreativeWork. + */ + public Builder alternativeHeadline(String alternativeHeadline) { + this.alternativeHeadline = alternativeHeadline; + return this; + } + /** + * A media object that encodes this CreativeWork. This property is a synonym for encoding. + */ + public Builder associatedMedia(MediaObject mediaObject) { + this.associatedMedia = mediaObject; + return this; + } + /** + * An intended audience, i.e. a group for whom something was created. + */ + public Builder audience(Audience audience) { + this.audience = audience; + return this; + } + /** + * An embedded audio object. + */ + public Builder audio(AudioObject audioObject) { + this.audio = audioObject; + return this; + } + /** + * The author of this content. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. + */ + public Builder author(Organization organization) { + if(this.author == null) this.author = new OrganizationOrPerson(); + this.author.setOrganization(organization); + return this; + } + /** + * The author of this content. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. + */ + public Builder author(Person person) { + if(this.author == null) this.author = new OrganizationOrPerson(); + this.author.setPerson(person); + return this; + } + /** + * An award won by or for this item. + */ + public Builder award(String award) { + this.award = award; + return this; + } + /** + * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. + */ + public Builder citation(CreativeWork creativeWork) { + if(this.citation == null) this.citation = new CreativeWorkOrString(); + this.citation.setCreativeWork(creativeWork); + return this; + } + /** + * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. + */ + public Builder citation(String citation) { + if(this.citation == null) this.citation = new CreativeWorkOrString(); + this.citation.setString(citation); + return this; + } + /** + * Comments, typically from users. + */ + public Builder comment(Comment comment) { + this.comment = comment; + return this; + } + /** + * The location depicted or described in the content. For example, the location in a photograph or painting. + */ + public Builder contentLocation(Place place) { + this.contentLocation = place; + return this; + } + /** + * Official rating of a piece of content—for example,'MPAA PG-13'. + */ + public Builder contentRating(String contentRating) { + this.contentRating = contentRating; + return this; + } + /** + * A secondary contributor to the CreativeWork. + */ + public Builder contributor(Organization organization) { + if(this.contributor == null) this.contributor = new OrganizationOrPerson(); + this.contributor.setOrganization(organization); + return this; + } + /** + * A secondary contributor to the CreativeWork. + */ + public Builder contributor(Person person) { + if(this.contributor == null) this.contributor = new OrganizationOrPerson(); + this.contributor.setPerson(person); + return this; + } + /** + * The party holding the legal copyright to the CreativeWork. + */ + public Builder copyrightHolder(Organization organization) { + if(this.copyrightHolder == null) this.copyrightHolder = new OrganizationOrPerson(); + this.copyrightHolder.setOrganization(organization); + return this; + } + /** + * The party holding the legal copyright to the CreativeWork. + */ + public Builder copyrightHolder(Person person) { + if(this.copyrightHolder == null) this.copyrightHolder = new OrganizationOrPerson(); + this.copyrightHolder.setPerson(person); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); + return this; + } + /** + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + */ + public Builder creator(Organization organization) { + if(this.creator == null) this.creator = new OrganizationOrPerson(); + this.creator.setOrganization(organization); + return this; + } + /** + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + */ + public Builder creator(Person person) { + if(this.creator == null) this.creator = new OrganizationOrPerson(); + this.creator.setPerson(person); + return this; + } + /** + * The date on which the CreativeWork was created. + */ + public Builder dateCreated(java.util.Date date) { + this.dateCreated = date; + return this; + } + /** + * The date on which the CreativeWork was most recently modified. + */ + public Builder dateModified(java.util.Date date) { + this.dateModified = date; + return this; + } + /** + * Date of first broadcast/publication. + */ + public Builder datePublished(java.util.Date date) { + this.datePublished = date; + return this; + } + /** + * A link to the page containing the comments of the CreativeWork. + */ + public Builder discussionUrl(String discussionUrl) { + this.discussionUrl = discussionUrl; + return this; + } + /** + * Specifies the Person who edited the CreativeWork. + */ + public Builder editor(Person person) { + this.editor = person; + return this; + } + /** + * An alignment to an established educational framework. + */ + public Builder educationalAlignment(AlignmentObject alignmentObject) { + this.educationalAlignment = alignmentObject; + return this; + } + /** + * The purpose of a work in the context of education; for example, 'assignment', 'group work'. + */ + public Builder educationalUse(String educationalUse) { + this.educationalUse = educationalUse; + return this; + } + /** + * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. + */ + public Builder encoding(MediaObject mediaObject) { + this.encoding = mediaObject; + return this; + } + /** + * Genre of the creative work or group. + */ + public Builder genre(String genre) { + this.genre = genre; + return this; + } + /** + * Headline of the article. + */ + public Builder headline(String headline) { + this.headline = headline; + return this; + } + /** + * The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. + */ + public Builder inLanguage(Language language) { + if(this.inLanguage == null) this.inLanguage = new LanguageOrString(); + this.inLanguage.setLanguage(language); + return this; + } + /** + * The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. + */ + public Builder inLanguage(String inLanguage) { + if(this.inLanguage == null) this.inLanguage = new LanguageOrString(); + this.inLanguage.setString(inLanguage); + return this; + } + /** + * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. + */ + public Builder interactivityType(String interactivityType) { + this.interactivityType = interactivityType; + return this; + } + /** + * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. + */ + public Builder isBasedOnUrl(String isBasedOnUrl) { + this.isBasedOnUrl = isBasedOnUrl; + return this; + } + /** + * Indicates whether this content is family friendly. + */ + public Builder isFamilyFriendly(Boolean isFamilyFriendly) { + this.isFamilyFriendly = isFamilyFriendly; + return this; + } + /** + * Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas. + */ + public Builder keywords(String keywords) { + this.keywords = keywords; + return this; + } + /** + * A license document that applies to this content, typically indicated by URL. + */ + public Builder license(CreativeWork creativeWork) { + if(this.license == null) this.license = new CreativeWorkOrString(); + this.license.setCreativeWork(creativeWork); + return this; + } + /** + * A license document that applies to this content, typically indicated by URL. + */ + public Builder license(String license) { + if(this.license == null) this.license = new CreativeWorkOrString(); + this.license.setString(license); + return this; + } + /** + * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + */ + public Builder learningResourceType(String learningResourceType) { + this.learningResourceType = learningResourceType; + return this; + } + /** + * Indicates the primary entity described in some page or other CreativeWork. + */ + public Builder mainEntity(Thing thing) { + this.mainEntity = thing; + return this; + } + /** + * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. + */ + public Builder mentions(Thing thing) { + this.mentions = thing; + return this; + } + /** + * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, or give away tickets to an event. + */ + public Builder offers(Offer offer) { + this.offers = offer; + return this; + } + /** + * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). + */ + public Builder producer(Organization organization) { + if(this.producer == null) this.producer = new OrganizationOrPerson(); + this.producer.setOrganization(organization); + return this; + } + /** + * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). + */ + public Builder producer(Person person) { + if(this.producer == null) this.producer = new OrganizationOrPerson(); + this.producer.setPerson(person); + return this; + } + /** + * A publication event associated with the item. + */ + public Builder publication(PublicationEvent publicationEvent) { + this.publication = publicationEvent; + return this; + } + /** + * The publisher of the creative work. + */ + public Builder publisher(Organization organization) { + this.publisher = organization; + return this; + } + /** + * Link to page describing the editorial principles of the organization primarily responsible for the creation of the CreativeWork. + */ + public Builder publishingPrinciples(String publishingPrinciples) { + this.publishingPrinciples = publishingPrinciples; + return this; + } + /** + * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. + */ + public Builder recordedAt(Event event) { + this.recordedAt = event; + return this; + } + /** + * A review of the item. + */ + public Builder review(Review review) { + this.review = review; + return this; + } + /** + * The Organization on whose behalf the creator was working. + */ + public Builder sourceOrganization(Organization organization) { + this.sourceOrganization = organization; + return this; + } + /** + * The textual content of this CreativeWork. + */ + public Builder text(String text) { + this.text = text; + return this; + } + /** + * A thumbnail image relevant to the Thing. + */ + public Builder thumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + return this; + } + /** + * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'P30M', 'P1H25M'. + */ + public Builder timeRequired(Duration duration) { + this.timeRequired = duration; + return this; + } + /** + * The typical expected age range, e.g. '7-9', '11-'. + */ + public Builder typicalAgeRange(String typicalAgeRange) { + this.typicalAgeRange = typicalAgeRange; + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); + return this; + } + /** + * An embedded video object. + */ + public Builder video(VideoObject videoObject) { + this.video = videoObject; + return this; + } + /** + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + */ + public Builder provider(Organization organization) { + if(this.provider == null) this.provider = new OrganizationOrPerson(); + this.provider.setOrganization(organization); + return this; + } + /** + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + */ + public Builder provider(Person person) { + if(this.provider == null) this.provider = new OrganizationOrPerson(); + this.provider.setPerson(person); + return this; + } + /** + * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. + */ + public Builder commentCount(Integer integer) { + this.commentCount = integer; + return this; + } + /** + * Indicates a CreativeWork that is (in some sense) a part of this CreativeWork. + */ + public Builder hasPart(HasPart hasPart) { + this.hasPart = hasPart; + return this; + } + /** + * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook. + */ + public Builder workExample(CreativeWork creativeWork) { + this.workExample = creativeWork; + return this; + } + /** + * A creative work that this work is an example/instance/realization/derivation of. + */ + public Builder exampleOfWork(CreativeWork creativeWork) { + this.exampleOfWork = creativeWork; + return this; + } + /** + * Fictional person connected with a creative work. + */ + public Builder character(Person person) { + this.character = person; + return this; + } + /** + * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market. + */ + public Builder translator(Organization organization) { + if(this.translator == null) this.translator = new OrganizationOrPerson(); + this.translator.setOrganization(organization); + return this; + } + /** + * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market. + */ + public Builder translator(Person person) { + if(this.translator == null) this.translator = new OrganizationOrPerson(); + this.translator.setPerson(person); + return this; + } + /** + * The place and time the release was issued, expressed as a PublicationEvent. + */ + public Builder releasedEvent(PublicationEvent publicationEvent) { + this.releasedEvent = publicationEvent; + return this; + } + /** + * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. + */ + public Builder additionalType(String additionalType) { + this.additionalType = additionalType; + return this; + } + /** + * An alias for the item. + */ + public Builder alternateName(String alternateName) { + this.alternateName = alternateName; + return this; + } + /** + * A short description of the item. + */ + public Builder description(String description) { + this.description = description; + return this; + } + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. +

+ Many (but not all) pages have a fairly clear primary topic, some entity or thing that the page describes. For + example a restaurant's home page might be primarily about that Restaurant, or an event listing page might + represent a single event. The mainEntity and mainEntityOfPage properties allow you to explicitly express the relationship + between the page and the primary entity. +

+ + Related properties include sameAs, about, and url. +

+ + The sameAs and url properties are both similar to mainEntityOfPage. The url property should be reserved to refer to more + official or authoritative web pages, such as the item’s official website. The sameAs property also relates a thing + to a page that indirectly identifies it. Whereas sameAs emphasises well known pages, the mainEntityOfPage property + serves more to clarify which of several entities is the main one for that page. +

+ + mainEntityOfPage can be used for any page, including those not recognized as authoritative for that entity. For example, + for a product, sameAs might refer to a page on the manufacturer’s official site with specs for the product, while + mainEntityOfPage might be used on pages within various retailers’ sites giving details for the same product. +

+ + about is similar to mainEntity, with two key differences. First, about can refer to multiple entities/topics, + while mainEntity should be used for only the primary one. Second, some pages have a primary entity that itself + describes some other entity. For example, one web page may display a news article about a particular person. + Another page may display a product review for a particular product. In these cases, mainEntity for the pages + should refer to the news article or review, respectively, while about would more properly refer to the person or product. + + */ + public Builder mainEntityOfPage(CreativeWork creativeWork) { + if(this.mainEntityOfPage == null) this.mainEntityOfPage = new CreativeWorkOrString(); + this.mainEntityOfPage.setCreativeWork(creativeWork); + return this; + } + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. +

+ Many (but not all) pages have a fairly clear primary topic, some entity or thing that the page describes. For + example a restaurant's home page might be primarily about that Restaurant, or an event listing page might + represent a single event. The mainEntity and mainEntityOfPage properties allow you to explicitly express the relationship + between the page and the primary entity. +

+ + Related properties include sameAs, about, and url. +

+ + The sameAs and url properties are both similar to mainEntityOfPage. The url property should be reserved to refer to more + official or authoritative web pages, such as the item’s official website. The sameAs property also relates a thing + to a page that indirectly identifies it. Whereas sameAs emphasises well known pages, the mainEntityOfPage property + serves more to clarify which of several entities is the main one for that page. +

+ + mainEntityOfPage can be used for any page, including those not recognized as authoritative for that entity. For example, + for a product, sameAs might refer to a page on the manufacturer’s official site with specs for the product, while + mainEntityOfPage might be used on pages within various retailers’ sites giving details for the same product. +

+ + about is similar to mainEntity, with two key differences. First, about can refer to multiple entities/topics, + while mainEntity should be used for only the primary one. Second, some pages have a primary entity that itself + describes some other entity. For example, one web page may display a news article about a particular person. + Another page may display a product review for a particular product. In these cases, mainEntity for the pages + should refer to the news article or review, respectively, while about would more properly refer to the person or product. + + */ + public Builder mainEntityOfPage(String mainEntityOfPage) { + if(this.mainEntityOfPage == null) this.mainEntityOfPage = new CreativeWorkOrString(); + this.mainEntityOfPage.setString(mainEntityOfPage); + return this; + } + /** + * The name of the item. + */ + public Builder name(String name) { + this.name = name; + return this; + } + /** + * URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website. + */ + public Builder sameAs(String sameAs) { + this.sameAs = sameAs; + return this; + } + /** + * URL of the item. + */ + public Builder url(String url) { + this.url = url; + return this; + } + /** + * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. + */ + public Builder potentialAction(Action action) { + this.potentialAction = action; + return this; + } + public Builder id(String id) { + this.id = id; + return this; + } + private SoftwareApplication softwareApplication; + private Project project; + private String applicationCategory; + private String applicationSubCategory; + private String applicationSuite; + private String countriesNotSupported; + private String countriesSupported; + private String availableOnDevice; + private String downloadUrl; + private String featureList; + private String fileFormat; + private Integer fileSize; + private String installUrl; + private String memoryRequirements; + private String operatingSystem; + private String permissions; + private String processorRequirements; + private String releaseNotes; + private String softwareRequirements; + private ImageObjectOrString screenshot; + private String softwareVersion; + private String storageRequirements; + private SoftwareApplication softwareAddOn; + private CreativeWork softwareHelp; + private String schemaVersion; + private Thing about; + private String accessibilityAPI; + private String accessibilityControl; + private String accessibilityFeature; + private String accessibilityHazard; + private Person accountablePerson; + private AggregateRating aggregateRating; + private String alternativeHeadline; + private MediaObject associatedMedia; + private Audience audience; + private AudioObject audio; + private OrganizationOrPerson author; + private String award; + private CreativeWorkOrString citation; + private Comment comment; + private Place contentLocation; + private String contentRating; + private OrganizationOrPerson contributor; + private OrganizationOrPerson copyrightHolder; + private Number copyrightYear; + private OrganizationOrPerson creator; + private java.util.Date dateCreated; + private java.util.Date dateModified; + private java.util.Date datePublished; + private String discussionUrl; + private Person editor; + private AlignmentObject educationalAlignment; + private String educationalUse; + private MediaObject encoding; + private String genre; + private String headline; + private LanguageOrString inLanguage; + private String interactivityType; + private String isBasedOnUrl; + private Boolean isFamilyFriendly; + private String keywords; + private CreativeWorkOrString license; + private String learningResourceType; + private Thing mainEntity; + private Thing mentions; + private Offer offers; + private OrganizationOrPerson producer; + private PublicationEvent publication; + private Organization publisher; + private String publishingPrinciples; + private Event recordedAt; + private Review review; + private Organization sourceOrganization; + private String text; + private String thumbnailUrl; + private Duration timeRequired; + private String typicalAgeRange; + private Number version; + private VideoObject video; + private OrganizationOrPerson provider; + private Integer commentCount; + private HasPart hasPart; + private CreativeWork workExample; + private CreativeWork exampleOfWork; + private Person character; + private OrganizationOrPerson translator; + private PublicationEvent releasedEvent; + private String additionalType; + private String alternateName; + private String description; + private CreativeWorkOrString mainEntityOfPage; + private String name; + private String sameAs; + private String url; + private Action potentialAction; + private String id; + } + + protected SoftwareApplicationBuild(SoftwareApplication softwareApplication, Project project, String applicationCategory, String applicationSubCategory, String applicationSuite, String countriesNotSupported, String countriesSupported, String availableOnDevice, String downloadUrl, String featureList, String fileFormat, Integer fileSize, String installUrl, String memoryRequirements, String operatingSystem, String permissions, String processorRequirements, String releaseNotes, String softwareRequirements, ImageObjectOrString screenshot, String softwareVersion, String storageRequirements, SoftwareApplication softwareAddOn, CreativeWork softwareHelp, String schemaVersion, Thing about, String accessibilityAPI, String accessibilityControl, String accessibilityFeature, String accessibilityHazard, Person accountablePerson, AggregateRating aggregateRating, String alternativeHeadline, MediaObject associatedMedia, Audience audience, AudioObject audio, OrganizationOrPerson author, String award, CreativeWorkOrString citation, Comment comment, Place contentLocation, String contentRating, OrganizationOrPerson contributor, OrganizationOrPerson copyrightHolder, Number copyrightYear, OrganizationOrPerson creator, java.util.Date dateCreated, java.util.Date dateModified, java.util.Date datePublished, String discussionUrl, Person editor, AlignmentObject educationalAlignment, String educationalUse, MediaObject encoding, String genre, String headline, LanguageOrString inLanguage, String interactivityType, String isBasedOnUrl, Boolean isFamilyFriendly, String keywords, CreativeWorkOrString license, String learningResourceType, Thing mainEntity, Thing mentions, Offer offers, OrganizationOrPerson producer, PublicationEvent publication, Organization publisher, String publishingPrinciples, Event recordedAt, Review review, Organization sourceOrganization, String text, String thumbnailUrl, Duration timeRequired, String typicalAgeRange, Number version, VideoObject video, OrganizationOrPerson provider, Integer commentCount, HasPart hasPart, CreativeWork workExample, CreativeWork exampleOfWork, Person character, OrganizationOrPerson translator, PublicationEvent releasedEvent, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(applicationCategory, applicationSubCategory, applicationSuite, countriesNotSupported, countriesSupported, availableOnDevice, downloadUrl, featureList, fileFormat, fileSize, installUrl, memoryRequirements, operatingSystem, permissions, processorRequirements, releaseNotes, softwareRequirements, screenshot, softwareVersion, storageRequirements, softwareAddOn, softwareHelp, schemaVersion, about, accessibilityAPI, accessibilityControl, accessibilityFeature, accessibilityHazard, accountablePerson, aggregateRating, alternativeHeadline, associatedMedia, audience, audio, author, award, citation, comment, contentLocation, contentRating, contributor, copyrightHolder, copyrightYear, creator, dateCreated, dateModified, datePublished, discussionUrl, editor, educationalAlignment, educationalUse, encoding, genre, headline, inLanguage, interactivityType, isBasedOnUrl, isFamilyFriendly, keywords, license, learningResourceType, mainEntity, mentions, offers, producer, publication, publisher, publishingPrinciples, recordedAt, review, sourceOrganization, text, thumbnailUrl, timeRequired, typicalAgeRange, version, video, provider, commentCount, hasPart, workExample, exampleOfWork, character, translator, releasedEvent, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); + mySoftwareApplication = softwareApplication; + myProject = project; + } + private SoftwareApplication mySoftwareApplication; + private Project myProject; +} diff --git a/src/main/java/org/schema/SoftwareSourceCode.java b/src/main/java/org/schema/SoftwareSourceCode.java index c3c92c7e..d401b86e 100644 --- a/src/main/java/org/schema/SoftwareSourceCode.java +++ b/src/main/java/org/schema/SoftwareSourceCode.java @@ -276,8 +276,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -543,8 +568,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/TVClip.java b/src/main/java/org/schema/TVClip.java index 2987f0b9..1baef12e 100644 --- a/src/main/java/org/schema/TVClip.java +++ b/src/main/java/org/schema/TVClip.java @@ -269,8 +269,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -536,8 +561,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/TVEpisode.java b/src/main/java/org/schema/TVEpisode.java index eb5009c5..a218c23e 100644 --- a/src/main/java/org/schema/TVEpisode.java +++ b/src/main/java/org/schema/TVEpisode.java @@ -307,8 +307,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -574,8 +599,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/TVSeason.java b/src/main/java/org/schema/TVSeason.java index 3cb8bdd2..4039c123 100644 --- a/src/main/java/org/schema/TVSeason.java +++ b/src/main/java/org/schema/TVSeason.java @@ -290,8 +290,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -557,8 +582,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/TVSeries.java b/src/main/java/org/schema/TVSeries.java index f4a68ee8..7ccb16b9 100644 --- a/src/main/java/org/schema/TVSeries.java +++ b/src/main/java/org/schema/TVSeries.java @@ -351,8 +351,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -618,8 +643,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Table.java b/src/main/java/org/schema/Table.java index 60810c4b..ffe9b999 100644 --- a/src/main/java/org/schema/Table.java +++ b/src/main/java/org/schema/Table.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/TechArticle.java b/src/main/java/org/schema/TechArticle.java index ff333144..6126f4ea 100644 --- a/src/main/java/org/schema/TechArticle.java +++ b/src/main/java/org/schema/TechArticle.java @@ -297,8 +297,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -564,8 +589,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/Thing.java b/src/main/java/org/schema/Thing.java index 279e9e06..20b4d42c 100644 --- a/src/main/java/org/schema/Thing.java +++ b/src/main/java/org/schema/Thing.java @@ -245,6 +245,9 @@ public Builder id(String id) { this.id = id; return this; } + public Builder id(long id) { + return id(Long.toString(id)); + } private String additionalType; private String alternateName; private String description; diff --git a/src/main/java/org/schema/TypeAndQuantityNode.java b/src/main/java/org/schema/TypeAndQuantityNode.java index ee22b6b5..0f2144fc 100644 --- a/src/main/java/org/schema/TypeAndQuantityNode.java +++ b/src/main/java/org/schema/TypeAndQuantityNode.java @@ -67,8 +67,33 @@ public TypeAndQuantityNode build() { /** * The quantity of the goods included in the offer. */ - public Builder amountOfThisGood(Number number) { - this.amountOfThisGood = number; + public Builder amountOfThisGood(Integer integer) { + if(this.amountOfThisGood == null) this.amountOfThisGood = new Number(); + this.amountOfThisGood.setInteger(integer); + return this; + } + /** + * The quantity of the goods included in the offer. + */ + public Builder amountOfThisGood(Long amountOfThisGood) { + if(this.amountOfThisGood == null) this.amountOfThisGood = new Number(); + this.amountOfThisGood.setLong(amountOfThisGood); + return this; + } + /** + * The quantity of the goods included in the offer. + */ + public Builder amountOfThisGood(Float amountOfThisGood) { + if(this.amountOfThisGood == null) this.amountOfThisGood = new Number(); + this.amountOfThisGood.setFloat(amountOfThisGood); + return this; + } + /** + * The quantity of the goods included in the offer. + */ + public Builder amountOfThisGood(Double amountOfThisGood) { + if(this.amountOfThisGood == null) this.amountOfThisGood = new Number(); + this.amountOfThisGood.setDouble(amountOfThisGood); return this; } /** diff --git a/src/main/java/org/schema/UnitPriceSpecification.java b/src/main/java/org/schema/UnitPriceSpecification.java index acf43aba..0a2121a9 100644 --- a/src/main/java/org/schema/UnitPriceSpecification.java +++ b/src/main/java/org/schema/UnitPriceSpecification.java @@ -61,8 +61,33 @@ public UnitPriceSpecification build() { /** * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. */ - public Builder billingIncrement(Number number) { - this.billingIncrement = number; + public Builder billingIncrement(Integer integer) { + if(this.billingIncrement == null) this.billingIncrement = new Number(); + this.billingIncrement.setInteger(integer); + return this; + } + /** + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + */ + public Builder billingIncrement(Long billingIncrement) { + if(this.billingIncrement == null) this.billingIncrement = new Number(); + this.billingIncrement.setLong(billingIncrement); + return this; + } + /** + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + */ + public Builder billingIncrement(Float billingIncrement) { + if(this.billingIncrement == null) this.billingIncrement = new Number(); + this.billingIncrement.setFloat(billingIncrement); + return this; + } + /** + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + */ + public Builder billingIncrement(Double billingIncrement) { + if(this.billingIncrement == null) this.billingIncrement = new Number(); + this.billingIncrement.setDouble(billingIncrement); return this; } /** @@ -104,15 +129,65 @@ public Builder eligibleTransactionVolume(PriceSpecification priceSpecification) /** * The highest price if the price is a range. */ - public Builder maxPrice(Number number) { - this.maxPrice = number; + public Builder maxPrice(Integer integer) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setInteger(integer); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Long maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setLong(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Float maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setFloat(maxPrice); + return this; + } + /** + * The highest price if the price is a range. + */ + public Builder maxPrice(Double maxPrice) { + if(this.maxPrice == null) this.maxPrice = new Number(); + this.maxPrice.setDouble(maxPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Integer integer) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setInteger(integer); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Long minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setLong(minPrice); + return this; + } + /** + * The lowest price if the price is a range. + */ + public Builder minPrice(Float minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setFloat(minPrice); return this; } /** * The lowest price if the price is a range. */ - public Builder minPrice(Number number) { - this.minPrice = number; + public Builder minPrice(Double minPrice) { + if(this.minPrice == null) this.minPrice = new Number(); + this.minPrice.setDouble(minPrice); return this; } /** diff --git a/src/main/java/org/schema/VideoGallery.java b/src/main/java/org/schema/VideoGallery.java index 9a296054..50a69101 100644 --- a/src/main/java/org/schema/VideoGallery.java +++ b/src/main/java/org/schema/VideoGallery.java @@ -285,8 +285,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -552,8 +577,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/VideoGame.java b/src/main/java/org/schema/VideoGame.java index 6f046265..857f6194 100644 --- a/src/main/java/org/schema/VideoGame.java +++ b/src/main/java/org/schema/VideoGame.java @@ -385,8 +385,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -652,8 +677,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/VideoGameClip.java b/src/main/java/org/schema/VideoGameClip.java index df1cbf2e..e856813a 100644 --- a/src/main/java/org/schema/VideoGameClip.java +++ b/src/main/java/org/schema/VideoGameClip.java @@ -269,8 +269,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -536,8 +561,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/VideoGameSeries.java b/src/main/java/org/schema/VideoGameSeries.java index f2e84e9f..51bb2e12 100644 --- a/src/main/java/org/schema/VideoGameSeries.java +++ b/src/main/java/org/schema/VideoGameSeries.java @@ -481,8 +481,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -748,8 +773,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/VideoObject.java b/src/main/java/org/schema/VideoObject.java index d50463c6..1ca5ca6e 100644 --- a/src/main/java/org/schema/VideoObject.java +++ b/src/main/java/org/schema/VideoObject.java @@ -455,8 +455,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -722,8 +747,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/VisualArtwork.java b/src/main/java/org/schema/VisualArtwork.java index e49b6735..01a7f197 100644 --- a/src/main/java/org/schema/VisualArtwork.java +++ b/src/main/java/org/schema/VisualArtwork.java @@ -339,8 +339,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -606,8 +631,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WPAdBlock.java b/src/main/java/org/schema/WPAdBlock.java index 850a3fa9..9a4f3d82 100644 --- a/src/main/java/org/schema/WPAdBlock.java +++ b/src/main/java/org/schema/WPAdBlock.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WPFooter.java b/src/main/java/org/schema/WPFooter.java index 892114eb..30c00a8a 100644 --- a/src/main/java/org/schema/WPFooter.java +++ b/src/main/java/org/schema/WPFooter.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WPHeader.java b/src/main/java/org/schema/WPHeader.java index 6aba702b..5e1b696c 100644 --- a/src/main/java/org/schema/WPHeader.java +++ b/src/main/java/org/schema/WPHeader.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WPSideBar.java b/src/main/java/org/schema/WPSideBar.java index fccd53a8..32058815 100644 --- a/src/main/java/org/schema/WPSideBar.java +++ b/src/main/java/org/schema/WPSideBar.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WebApplication.java b/src/main/java/org/schema/WebApplication.java index f0579e75..a5ecc48d 100644 --- a/src/main/java/org/schema/WebApplication.java +++ b/src/main/java/org/schema/WebApplication.java @@ -387,8 +387,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -654,8 +679,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WebPage.java b/src/main/java/org/schema/WebPage.java index c2f172ab..6e428b26 100644 --- a/src/main/java/org/schema/WebPage.java +++ b/src/main/java/org/schema/WebPage.java @@ -334,8 +334,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -601,8 +626,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WebPageElement.java b/src/main/java/org/schema/WebPageElement.java index 369320b9..7dbd47a8 100644 --- a/src/main/java/org/schema/WebPageElement.java +++ b/src/main/java/org/schema/WebPageElement.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /** diff --git a/src/main/java/org/schema/WebSite.java b/src/main/java/org/schema/WebSite.java index ec4e9c18..7fa37fb7 100644 --- a/src/main/java/org/schema/WebSite.java +++ b/src/main/java/org/schema/WebSite.java @@ -211,8 +211,33 @@ public Builder copyrightHolder(Person person) { /** * The year during which the claimed copyright for the CreativeWork was first asserted. */ - public Builder copyrightYear(Number number) { - this.copyrightYear = number; + public Builder copyrightYear(Integer integer) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setInteger(integer); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Long copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setLong(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Float copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setFloat(copyrightYear); + return this; + } + /** + * The year during which the claimed copyright for the CreativeWork was first asserted. + */ + public Builder copyrightYear(Double copyrightYear) { + if(this.copyrightYear == null) this.copyrightYear = new Number(); + this.copyrightYear.setDouble(copyrightYear); return this; } /** @@ -478,8 +503,33 @@ public Builder typicalAgeRange(String typicalAgeRange) { /** * The version of the CreativeWork embodied by a specified resource. */ - public Builder version(Number number) { - this.version = number; + public Builder version(Integer integer) { + if(this.version == null) this.version = new Number(); + this.version.setInteger(integer); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Long version) { + if(this.version == null) this.version = new Number(); + this.version.setLong(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Float version) { + if(this.version == null) this.version = new Number(); + this.version.setFloat(version); + return this; + } + /** + * The version of the CreativeWork embodied by a specified resource. + */ + public Builder version(Double version) { + if(this.version == null) this.version = new Number(); + this.version.setDouble(version); return this; } /**