From 560360641005ad3f167a4758aeaf1c75794bfdd1 Mon Sep 17 00:00:00 2001 From: Victor Kropp Date: Fri, 24 Jul 2015 12:06:01 +0200 Subject: [PATCH] add id --- generator/src/main/kotlin/generator.kt | 19 ++++++++++++++++--- src/main/java/org/schema/APIReference.java | 11 ++++++++--- src/main/java/org/schema/AboutPage.java | 11 ++++++++--- src/main/java/org/schema/AcceptAction.java | 11 ++++++++--- .../java/org/schema/AccountingService.java | 11 ++++++++--- src/main/java/org/schema/AchieveAction.java | 11 ++++++++--- src/main/java/org/schema/Action.java | 11 ++++++++--- .../java/org/schema/ActionStatusType.java | 11 ++++++++--- src/main/java/org/schema/ActivateAction.java | 11 ++++++++--- src/main/java/org/schema/AddAction.java | 11 ++++++++--- .../java/org/schema/AdministrativeArea.java | 11 ++++++++--- .../java/org/schema/AdultEntertainment.java | 11 ++++++++--- src/main/java/org/schema/AggregateOffer.java | 11 ++++++++--- src/main/java/org/schema/AggregateRating.java | 11 ++++++++--- src/main/java/org/schema/AgreeAction.java | 11 ++++++++--- src/main/java/org/schema/Airline.java | 11 ++++++++--- src/main/java/org/schema/Airport.java | 11 ++++++++--- src/main/java/org/schema/AlignmentObject.java | 11 ++++++++--- src/main/java/org/schema/AllocateAction.java | 11 ++++++++--- src/main/java/org/schema/AmusementPark.java | 11 ++++++++--- .../java/org/schema/AnatomicalStructure.java | 11 ++++++++--- .../java/org/schema/AnatomicalSystem.java | 11 ++++++++--- src/main/java/org/schema/AnimalShelter.java | 11 ++++++++--- src/main/java/org/schema/Answer.java | 11 ++++++++--- .../java/org/schema/ApartmentComplex.java | 11 ++++++++--- src/main/java/org/schema/AppendAction.java | 11 ++++++++--- src/main/java/org/schema/ApplyAction.java | 11 ++++++++--- .../java/org/schema/ApprovedIndication.java | 11 ++++++++--- src/main/java/org/schema/Aquarium.java | 11 ++++++++--- src/main/java/org/schema/ArriveAction.java | 11 ++++++++--- src/main/java/org/schema/ArtGallery.java | 11 ++++++++--- src/main/java/org/schema/Artery.java | 11 ++++++++--- src/main/java/org/schema/Article.java | 11 ++++++++--- src/main/java/org/schema/AskAction.java | 11 ++++++++--- src/main/java/org/schema/AssessAction.java | 11 ++++++++--- src/main/java/org/schema/AssignAction.java | 11 ++++++++--- src/main/java/org/schema/Attorney.java | 11 ++++++++--- src/main/java/org/schema/Audience.java | 11 ++++++++--- src/main/java/org/schema/AudioObject.java | 11 ++++++++--- src/main/java/org/schema/AuthorizeAction.java | 11 ++++++++--- src/main/java/org/schema/AutoBodyShop.java | 11 ++++++++--- src/main/java/org/schema/AutoDealer.java | 11 ++++++++--- src/main/java/org/schema/AutoPartsStore.java | 11 ++++++++--- src/main/java/org/schema/AutoRental.java | 11 ++++++++--- src/main/java/org/schema/AutoRepair.java | 11 ++++++++--- src/main/java/org/schema/AutoWash.java | 11 ++++++++--- src/main/java/org/schema/AutomatedTeller.java | 11 ++++++++--- .../java/org/schema/AutomotiveBusiness.java | 11 ++++++++--- src/main/java/org/schema/Bakery.java | 11 ++++++++--- .../java/org/schema/BankOrCreditUnion.java | 11 ++++++++--- src/main/java/org/schema/BarOrPub.java | 11 ++++++++--- src/main/java/org/schema/Beach.java | 11 ++++++++--- src/main/java/org/schema/BeautySalon.java | 11 ++++++++--- src/main/java/org/schema/BedAndBreakfast.java | 11 ++++++++--- src/main/java/org/schema/BefriendAction.java | 11 ++++++++--- src/main/java/org/schema/BikeStore.java | 11 ++++++++--- src/main/java/org/schema/Blog.java | 11 ++++++++--- src/main/java/org/schema/BlogPosting.java | 11 ++++++++--- src/main/java/org/schema/BloodTest.java | 11 ++++++++--- .../java/org/schema/BoardingPolicyType.java | 11 ++++++++--- src/main/java/org/schema/BodyOfWater.java | 11 ++++++++--- src/main/java/org/schema/Bone.java | 11 ++++++++--- src/main/java/org/schema/Book.java | 11 ++++++++--- src/main/java/org/schema/BookFormatType.java | 11 ++++++++--- src/main/java/org/schema/BookSeries.java | 11 ++++++++--- src/main/java/org/schema/BookStore.java | 11 ++++++++--- src/main/java/org/schema/BookmarkAction.java | 11 ++++++++--- src/main/java/org/schema/BorrowAction.java | 11 ++++++++--- src/main/java/org/schema/BowlingAlley.java | 11 ++++++++--- src/main/java/org/schema/BrainStructure.java | 11 ++++++++--- src/main/java/org/schema/Brand.java | 11 ++++++++--- src/main/java/org/schema/BreadcrumbList.java | 11 ++++++++--- src/main/java/org/schema/Brewery.java | 11 ++++++++--- .../java/org/schema/BroadcastChannel.java | 11 ++++++++--- src/main/java/org/schema/BroadcastEvent.java | 11 ++++++++--- .../java/org/schema/BroadcastService.java | 11 ++++++++--- src/main/java/org/schema/BuddhistTemple.java | 11 ++++++++--- src/main/java/org/schema/BusReservation.java | 11 ++++++++--- src/main/java/org/schema/BusStation.java | 11 ++++++++--- src/main/java/org/schema/BusStop.java | 11 ++++++++--- src/main/java/org/schema/BusTrip.java | 11 ++++++++--- .../java/org/schema/BusinessAudience.java | 11 ++++++++--- .../java/org/schema/BusinessEntityType.java | 11 ++++++++--- src/main/java/org/schema/BusinessEvent.java | 11 ++++++++--- .../java/org/schema/BusinessFunction.java | 11 ++++++++--- src/main/java/org/schema/BuyAction.java | 11 ++++++++--- .../org/schema/CableOrSatelliteService.java | 11 ++++++++--- .../java/org/schema/CafeOrCoffeeShop.java | 11 ++++++++--- src/main/java/org/schema/Campground.java | 11 ++++++++--- src/main/java/org/schema/Canal.java | 11 ++++++++--- src/main/java/org/schema/CancelAction.java | 11 ++++++++--- src/main/java/org/schema/Car.java | 11 ++++++++--- src/main/java/org/schema/CarUsageType.java | 11 ++++++++--- src/main/java/org/schema/Casino.java | 11 ++++++++--- src/main/java/org/schema/CatholicChurch.java | 11 ++++++++--- src/main/java/org/schema/Cemetery.java | 11 ++++++++--- src/main/java/org/schema/CheckAction.java | 11 ++++++++--- src/main/java/org/schema/CheckInAction.java | 11 ++++++++--- src/main/java/org/schema/CheckOutAction.java | 11 ++++++++--- src/main/java/org/schema/CheckoutPage.java | 11 ++++++++--- src/main/java/org/schema/ChildCare.java | 11 ++++++++--- src/main/java/org/schema/ChildrensEvent.java | 11 ++++++++--- src/main/java/org/schema/ChooseAction.java | 11 ++++++++--- src/main/java/org/schema/Church.java | 11 ++++++++--- src/main/java/org/schema/City.java | 11 ++++++++--- src/main/java/org/schema/CityHall.java | 11 ++++++++--- src/main/java/org/schema/CivicStructure.java | 11 ++++++++--- src/main/java/org/schema/Clip.java | 11 ++++++++--- src/main/java/org/schema/ClothingStore.java | 11 ++++++++--- src/main/java/org/schema/Code.java | 11 ++++++++--- src/main/java/org/schema/CollectionPage.java | 11 ++++++++--- .../java/org/schema/CollegeOrUniversity.java | 11 ++++++++--- src/main/java/org/schema/ComedyClub.java | 11 ++++++++--- src/main/java/org/schema/ComedyEvent.java | 11 ++++++++--- src/main/java/org/schema/Comment.java | 11 ++++++++--- src/main/java/org/schema/CommentAction.java | 11 ++++++++--- .../java/org/schema/CommunicateAction.java | 11 ++++++++--- src/main/java/org/schema/ComputerStore.java | 11 ++++++++--- src/main/java/org/schema/ConfirmAction.java | 11 ++++++++--- src/main/java/org/schema/ConsumeAction.java | 11 ++++++++--- src/main/java/org/schema/ContactPage.java | 11 ++++++++--- src/main/java/org/schema/ContactPoint.java | 11 ++++++++--- .../java/org/schema/ContactPointOption.java | 11 ++++++++--- src/main/java/org/schema/Continent.java | 11 ++++++++--- src/main/java/org/schema/ControlAction.java | 11 ++++++++--- .../java/org/schema/ConvenienceStore.java | 11 ++++++++--- src/main/java/org/schema/CookAction.java | 11 ++++++++--- src/main/java/org/schema/Corporation.java | 11 ++++++++--- src/main/java/org/schema/Country.java | 11 ++++++++--- src/main/java/org/schema/Courthouse.java | 11 ++++++++--- src/main/java/org/schema/CreateAction.java | 11 ++++++++--- src/main/java/org/schema/CreativeWork.java | 11 ++++++++--- .../java/org/schema/CreativeWorkSeason.java | 11 ++++++++--- .../java/org/schema/CreativeWorkSeries.java | 11 ++++++++--- src/main/java/org/schema/CreditCard.java | 11 ++++++++--- src/main/java/org/schema/Crematorium.java | 11 ++++++++--- src/main/java/org/schema/DDxElement.java | 11 ++++++++--- src/main/java/org/schema/DanceEvent.java | 11 ++++++++--- src/main/java/org/schema/DanceGroup.java | 11 ++++++++--- src/main/java/org/schema/DataCatalog.java | 11 ++++++++--- src/main/java/org/schema/DataDownload.java | 11 ++++++++--- src/main/java/org/schema/Dataset.java | 11 ++++++++--- .../org/schema/DatedMoneySpecification.java | 11 ++++++++--- src/main/java/org/schema/DayOfWeek.java | 11 ++++++++--- src/main/java/org/schema/DaySpa.java | 11 ++++++++--- .../java/org/schema/DeactivateAction.java | 11 ++++++++--- .../java/org/schema/DefenceEstablishment.java | 11 ++++++++--- src/main/java/org/schema/DeleteAction.java | 11 ++++++++--- .../schema/DeliveryChargeSpecification.java | 11 ++++++++--- src/main/java/org/schema/DeliveryEvent.java | 11 ++++++++--- src/main/java/org/schema/DeliveryMethod.java | 11 ++++++++--- src/main/java/org/schema/Demand.java | 11 ++++++++--- src/main/java/org/schema/Dentist.java | 11 ++++++++--- src/main/java/org/schema/DepartAction.java | 11 ++++++++--- src/main/java/org/schema/DepartmentStore.java | 11 ++++++++--- src/main/java/org/schema/DiagnosticLab.java | 11 ++++++++--- .../java/org/schema/DiagnosticProcedure.java | 11 ++++++++--- src/main/java/org/schema/Diet.java | 11 ++++++++--- .../java/org/schema/DietarySupplement.java | 11 ++++++++--- src/main/java/org/schema/DisagreeAction.java | 11 ++++++++--- src/main/java/org/schema/DiscoverAction.java | 11 ++++++++--- src/main/java/org/schema/DislikeAction.java | 11 ++++++++--- src/main/java/org/schema/Distance.java | 11 ++++++++--- src/main/java/org/schema/DonateAction.java | 11 ++++++++--- src/main/java/org/schema/DoseSchedule.java | 11 ++++++++--- src/main/java/org/schema/DownloadAction.java | 11 ++++++++--- src/main/java/org/schema/DrawAction.java | 11 ++++++++--- src/main/java/org/schema/DrinkAction.java | 11 ++++++++--- .../schema/DriveWheelConfigurationValue.java | 11 ++++++++--- src/main/java/org/schema/Drug.java | 11 ++++++++--- src/main/java/org/schema/DrugClass.java | 11 ++++++++--- src/main/java/org/schema/DrugCost.java | 11 ++++++++--- .../java/org/schema/DrugCostCategory.java | 11 ++++++++--- src/main/java/org/schema/DrugLegalStatus.java | 11 ++++++++--- .../org/schema/DrugPregnancyCategory.java | 11 ++++++++--- .../org/schema/DrugPrescriptionStatus.java | 11 ++++++++--- src/main/java/org/schema/DrugStrength.java | 11 ++++++++--- .../java/org/schema/DryCleaningOrLaundry.java | 11 ++++++++--- src/main/java/org/schema/Duration.java | 11 ++++++++--- src/main/java/org/schema/EatAction.java | 11 ++++++++--- src/main/java/org/schema/EducationEvent.java | 11 ++++++++--- .../java/org/schema/EducationalAudience.java | 11 ++++++++--- .../org/schema/EducationalOrganization.java | 11 ++++++++--- src/main/java/org/schema/Electrician.java | 11 ++++++++--- .../java/org/schema/ElectronicsStore.java | 11 ++++++++--- .../java/org/schema/ElementarySchool.java | 11 ++++++++--- src/main/java/org/schema/EmailMessage.java | 11 ++++++++--- src/main/java/org/schema/Embassy.java | 11 ++++++++--- .../java/org/schema/EmergencyService.java | 11 ++++++++--- src/main/java/org/schema/EmployeeRole.java | 11 ++++++++--- .../java/org/schema/EmploymentAgency.java | 11 ++++++++--- src/main/java/org/schema/EndorseAction.java | 11 ++++++++--- src/main/java/org/schema/Energy.java | 11 ++++++++--- .../java/org/schema/EngineSpecification.java | 11 ++++++++--- .../org/schema/EntertainmentBusiness.java | 11 ++++++++--- src/main/java/org/schema/EntryPoint.java | 11 ++++++++--- src/main/java/org/schema/Enumeration.java | 11 ++++++++--- src/main/java/org/schema/Episode.java | 11 ++++++++--- src/main/java/org/schema/Event.java | 11 ++++++++--- .../java/org/schema/EventReservation.java | 11 ++++++++--- src/main/java/org/schema/EventStatusType.java | 11 ++++++++--- src/main/java/org/schema/EventVenue.java | 11 ++++++++--- src/main/java/org/schema/ExerciseAction.java | 11 ++++++++--- src/main/java/org/schema/ExerciseGym.java | 11 ++++++++--- src/main/java/org/schema/ExercisePlan.java | 11 ++++++++--- .../java/org/schema/FastFoodRestaurant.java | 11 ++++++++--- src/main/java/org/schema/Festival.java | 11 ++++++++--- src/main/java/org/schema/FilmAction.java | 11 ++++++++--- .../java/org/schema/FinancialService.java | 11 ++++++++--- src/main/java/org/schema/FindAction.java | 11 ++++++++--- src/main/java/org/schema/FireStation.java | 11 ++++++++--- src/main/java/org/schema/Flight.java | 11 ++++++++--- .../java/org/schema/FlightReservation.java | 11 ++++++++--- src/main/java/org/schema/Florist.java | 11 ++++++++--- src/main/java/org/schema/FollowAction.java | 11 ++++++++--- .../java/org/schema/FoodEstablishment.java | 11 ++++++++--- .../schema/FoodEstablishmentReservation.java | 11 ++++++++--- src/main/java/org/schema/FoodEvent.java | 11 ++++++++--- src/main/java/org/schema/FurnitureStore.java | 11 ++++++++--- src/main/java/org/schema/Game.java | 11 ++++++++--- src/main/java/org/schema/GamePlayMode.java | 11 ++++++++--- src/main/java/org/schema/GameServer.java | 11 ++++++++--- .../java/org/schema/GameServerStatus.java | 11 ++++++++--- src/main/java/org/schema/GardenStore.java | 11 ++++++++--- src/main/java/org/schema/GasStation.java | 11 ++++++++--- .../org/schema/GatedResidenceCommunity.java | 11 ++++++++--- .../java/org/schema/GeneralContractor.java | 11 ++++++++--- src/main/java/org/schema/GeoCoordinates.java | 11 ++++++++--- src/main/java/org/schema/GeoShape.java | 11 ++++++++--- src/main/java/org/schema/GiveAction.java | 11 ++++++++--- src/main/java/org/schema/GolfCourse.java | 11 ++++++++--- .../java/org/schema/GovernmentBuilding.java | 11 ++++++++--- .../java/org/schema/GovernmentOffice.java | 11 ++++++++--- .../org/schema/GovernmentOrganization.java | 11 ++++++++--- .../java/org/schema/GovernmentPermit.java | 11 ++++++++--- .../java/org/schema/GovernmentService.java | 11 ++++++++--- src/main/java/org/schema/GroceryStore.java | 11 ++++++++--- src/main/java/org/schema/HVACBusiness.java | 11 ++++++++--- src/main/java/org/schema/HairSalon.java | 11 ++++++++--- src/main/java/org/schema/HardwareStore.java | 11 ++++++++--- .../org/schema/HealthAndBeautyBusiness.java | 11 ++++++++--- src/main/java/org/schema/HealthClub.java | 11 ++++++++--- src/main/java/org/schema/HighSchool.java | 11 ++++++++--- src/main/java/org/schema/HinduTemple.java | 11 ++++++++--- src/main/java/org/schema/HobbyShop.java | 11 ++++++++--- .../schema/HomeAndConstructionBusiness.java | 11 ++++++++--- src/main/java/org/schema/HomeGoodsStore.java | 11 ++++++++--- src/main/java/org/schema/Hospital.java | 11 ++++++++--- src/main/java/org/schema/Hostel.java | 11 ++++++++--- src/main/java/org/schema/Hotel.java | 11 ++++++++--- src/main/java/org/schema/HousePainter.java | 11 ++++++++--- src/main/java/org/schema/IceCreamShop.java | 11 ++++++++--- src/main/java/org/schema/IgnoreAction.java | 11 ++++++++--- src/main/java/org/schema/ImageGallery.java | 11 ++++++++--- src/main/java/org/schema/ImageObject.java | 11 ++++++++--- src/main/java/org/schema/ImagingTest.java | 11 ++++++++--- .../java/org/schema/IndividualProduct.java | 11 ++++++++--- .../java/org/schema/InfectiousAgentClass.java | 11 ++++++++--- .../java/org/schema/InfectiousDisease.java | 11 ++++++++--- src/main/java/org/schema/InformAction.java | 11 ++++++++--- src/main/java/org/schema/InsertAction.java | 11 ++++++++--- src/main/java/org/schema/InstallAction.java | 11 ++++++++--- src/main/java/org/schema/InsuranceAgency.java | 11 ++++++++--- src/main/java/org/schema/Intangible.java | 11 ++++++++--- src/main/java/org/schema/InteractAction.java | 11 ++++++++--- src/main/java/org/schema/InternetCafe.java | 11 ++++++++--- src/main/java/org/schema/InviteAction.java | 11 ++++++++--- src/main/java/org/schema/Invoice.java | 11 ++++++++--- .../java/org/schema/ItemAvailability.java | 11 ++++++++--- src/main/java/org/schema/ItemList.java | 11 ++++++++--- .../java/org/schema/ItemListOrderType.java | 11 ++++++++--- src/main/java/org/schema/ItemPage.java | 11 ++++++++--- src/main/java/org/schema/JewelryStore.java | 11 ++++++++--- src/main/java/org/schema/JobPosting.java | 11 ++++++++--- src/main/java/org/schema/JoinAction.java | 11 ++++++++--- src/main/java/org/schema/Joint.java | 11 ++++++++--- src/main/java/org/schema/LakeBodyOfWater.java | 11 ++++++++--- src/main/java/org/schema/Landform.java | 11 ++++++++--- .../LandmarksOrHistoricalBuildings.java | 11 ++++++++--- src/main/java/org/schema/Language.java | 11 ++++++++--- src/main/java/org/schema/LeaveAction.java | 11 ++++++++--- .../java/org/schema/LegislativeBuilding.java | 11 ++++++++--- src/main/java/org/schema/LendAction.java | 11 ++++++++--- src/main/java/org/schema/Library.java | 11 ++++++++--- .../org/schema/LifestyleModification.java | 11 ++++++++--- src/main/java/org/schema/Ligament.java | 11 ++++++++--- src/main/java/org/schema/LikeAction.java | 11 ++++++++--- src/main/java/org/schema/LiquorStore.java | 11 ++++++++--- src/main/java/org/schema/ListItem.java | 11 ++++++++--- src/main/java/org/schema/ListenAction.java | 11 ++++++++--- src/main/java/org/schema/LiteraryEvent.java | 11 ++++++++--- src/main/java/org/schema/LocalBusiness.java | 11 ++++++++--- src/main/java/org/schema/LockerDelivery.java | 11 ++++++++--- src/main/java/org/schema/Locksmith.java | 11 ++++++++--- src/main/java/org/schema/LodgingBusiness.java | 11 ++++++++--- .../java/org/schema/LodgingReservation.java | 11 ++++++++--- src/main/java/org/schema/LoseAction.java | 11 ++++++++--- src/main/java/org/schema/LymphaticVessel.java | 11 ++++++++--- src/main/java/org/schema/Map.java | 11 ++++++++--- src/main/java/org/schema/MapCategoryType.java | 11 ++++++++--- src/main/java/org/schema/MarryAction.java | 11 ++++++++--- src/main/java/org/schema/Mass.java | 11 ++++++++--- .../java/org/schema/MaximumDoseSchedule.java | 11 ++++++++--- src/main/java/org/schema/MediaObject.java | 11 ++++++++--- src/main/java/org/schema/MedicalAudience.java | 11 ++++++++--- src/main/java/org/schema/MedicalCause.java | 11 ++++++++--- src/main/java/org/schema/MedicalClinic.java | 11 ++++++++--- src/main/java/org/schema/MedicalCode.java | 11 ++++++++--- .../java/org/schema/MedicalCondition.java | 11 ++++++++--- .../org/schema/MedicalConditionStage.java | 11 ++++++++--- .../org/schema/MedicalContraindication.java | 11 ++++++++--- src/main/java/org/schema/MedicalDevice.java | 11 ++++++++--- .../java/org/schema/MedicalDevicePurpose.java | 11 ++++++++--- src/main/java/org/schema/MedicalEntity.java | 11 ++++++++--- .../java/org/schema/MedicalEnumeration.java | 11 ++++++++--- .../java/org/schema/MedicalEvidenceLevel.java | 11 ++++++++--- .../java/org/schema/MedicalGuideline.java | 11 ++++++++--- .../MedicalGuidelineContraindication.java | 11 ++++++++--- .../MedicalGuidelineRecommendation.java | 11 ++++++++--- .../org/schema/MedicalImagingTechnique.java | 11 ++++++++--- .../java/org/schema/MedicalIndication.java | 11 ++++++++--- .../java/org/schema/MedicalIntangible.java | 11 ++++++++--- .../org/schema/MedicalObservationalStudy.java | 11 ++++++++--- .../MedicalObservationalStudyDesign.java | 11 ++++++++--- .../java/org/schema/MedicalOrganization.java | 11 ++++++++--- .../java/org/schema/MedicalProcedure.java | 11 ++++++++--- .../java/org/schema/MedicalProcedureType.java | 11 ++++++++--- .../org/schema/MedicalRiskCalculator.java | 11 ++++++++--- .../java/org/schema/MedicalRiskEstimator.java | 11 ++++++++--- .../java/org/schema/MedicalRiskFactor.java | 11 ++++++++--- .../java/org/schema/MedicalRiskScore.java | 11 ++++++++--- .../org/schema/MedicalScholarlyArticle.java | 11 ++++++++--- src/main/java/org/schema/MedicalSign.java | 11 ++++++++--- .../java/org/schema/MedicalSignOrSymptom.java | 11 ++++++++--- .../java/org/schema/MedicalSpecialty.java | 11 ++++++++--- src/main/java/org/schema/MedicalStudy.java | 11 ++++++++--- .../java/org/schema/MedicalStudyStatus.java | 11 ++++++++--- src/main/java/org/schema/MedicalSymptom.java | 11 ++++++++--- src/main/java/org/schema/MedicalTest.java | 11 ++++++++--- .../java/org/schema/MedicalTestPanel.java | 11 ++++++++--- src/main/java/org/schema/MedicalTherapy.java | 11 ++++++++--- src/main/java/org/schema/MedicalTrial.java | 11 ++++++++--- .../java/org/schema/MedicalTrialDesign.java | 11 ++++++++--- src/main/java/org/schema/MedicalWebPage.java | 11 ++++++++--- src/main/java/org/schema/MedicineSystem.java | 11 ++++++++--- .../java/org/schema/MensClothingStore.java | 11 ++++++++--- src/main/java/org/schema/MiddleSchool.java | 11 ++++++++--- .../java/org/schema/MobileApplication.java | 11 ++++++++--- .../java/org/schema/MobilePhoneStore.java | 11 ++++++++--- src/main/java/org/schema/Mosque.java | 11 ++++++++--- src/main/java/org/schema/Motel.java | 11 ++++++++--- .../java/org/schema/MotorcycleDealer.java | 11 ++++++++--- .../java/org/schema/MotorcycleRepair.java | 11 ++++++++--- src/main/java/org/schema/Mountain.java | 11 ++++++++--- src/main/java/org/schema/MoveAction.java | 11 ++++++++--- src/main/java/org/schema/Movie.java | 11 ++++++++--- src/main/java/org/schema/MovieClip.java | 11 ++++++++--- .../java/org/schema/MovieRentalStore.java | 11 ++++++++--- src/main/java/org/schema/MovieSeries.java | 11 ++++++++--- src/main/java/org/schema/MovieTheater.java | 11 ++++++++--- src/main/java/org/schema/MovingCompany.java | 11 ++++++++--- src/main/java/org/schema/Muscle.java | 11 ++++++++--- src/main/java/org/schema/Museum.java | 11 ++++++++--- src/main/java/org/schema/MusicAlbum.java | 11 ++++++++--- .../org/schema/MusicAlbumProductionType.java | 11 ++++++++--- .../org/schema/MusicAlbumReleaseType.java | 11 ++++++++--- .../java/org/schema/MusicComposition.java | 11 ++++++++--- src/main/java/org/schema/MusicEvent.java | 11 ++++++++--- src/main/java/org/schema/MusicGroup.java | 11 ++++++++--- src/main/java/org/schema/MusicPlaylist.java | 11 ++++++++--- src/main/java/org/schema/MusicRecording.java | 11 ++++++++--- src/main/java/org/schema/MusicRelease.java | 11 ++++++++--- .../org/schema/MusicReleaseFormatType.java | 11 ++++++++--- src/main/java/org/schema/MusicStore.java | 11 ++++++++--- src/main/java/org/schema/MusicVenue.java | 11 ++++++++--- .../java/org/schema/MusicVideoObject.java | 11 ++++++++--- src/main/java/org/schema/NGO.java | 11 ++++++++--- src/main/java/org/schema/NailSalon.java | 11 ++++++++--- src/main/java/org/schema/Nerve.java | 11 ++++++++--- src/main/java/org/schema/NewsArticle.java | 11 ++++++++--- src/main/java/org/schema/NightClub.java | 11 ++++++++--- src/main/java/org/schema/Notary.java | 11 ++++++++--- .../java/org/schema/NutritionInformation.java | 11 ++++++++--- .../java/org/schema/OceanBodyOfWater.java | 11 ++++++++--- src/main/java/org/schema/Offer.java | 11 ++++++++--- .../java/org/schema/OfferItemCondition.java | 11 ++++++++--- .../java/org/schema/OfficeEquipmentStore.java | 11 ++++++++--- src/main/java/org/schema/OnDemandEvent.java | 11 ++++++++--- .../org/schema/OpeningHoursSpecification.java | 11 ++++++++--- src/main/java/org/schema/Optician.java | 11 ++++++++--- src/main/java/org/schema/Order.java | 11 ++++++++--- src/main/java/org/schema/OrderAction.java | 11 ++++++++--- src/main/java/org/schema/OrderItem.java | 11 ++++++++--- src/main/java/org/schema/OrderStatus.java | 11 ++++++++--- src/main/java/org/schema/Organization.java | 11 ++++++++--- .../java/org/schema/OrganizationRole.java | 11 ++++++++--- src/main/java/org/schema/OrganizeAction.java | 11 ++++++++--- src/main/java/org/schema/OutletStore.java | 11 ++++++++--- src/main/java/org/schema/OwnershipInfo.java | 11 ++++++++--- src/main/java/org/schema/PaintAction.java | 11 ++++++++--- src/main/java/org/schema/Painting.java | 11 ++++++++--- .../java/org/schema/PalliativeProcedure.java | 11 ++++++++--- src/main/java/org/schema/ParcelDelivery.java | 11 ++++++++--- src/main/java/org/schema/ParcelService.java | 11 ++++++++--- src/main/java/org/schema/ParentAudience.java | 11 ++++++++--- src/main/java/org/schema/Park.java | 11 ++++++++--- src/main/java/org/schema/ParkingFacility.java | 11 ++++++++--- src/main/java/org/schema/PathologyTest.java | 11 ++++++++--- src/main/java/org/schema/PawnShop.java | 11 ++++++++--- src/main/java/org/schema/PayAction.java | 11 ++++++++--- .../schema/PaymentChargeSpecification.java | 11 ++++++++--- src/main/java/org/schema/PaymentMethod.java | 11 ++++++++--- src/main/java/org/schema/PeopleAudience.java | 11 ++++++++--- src/main/java/org/schema/PerformAction.java | 11 ++++++++--- src/main/java/org/schema/PerformanceRole.java | 11 ++++++++--- .../org/schema/PerformingArtsTheater.java | 11 ++++++++--- src/main/java/org/schema/PerformingGroup.java | 11 ++++++++--- src/main/java/org/schema/Periodical.java | 11 ++++++++--- src/main/java/org/schema/Permit.java | 11 ++++++++--- src/main/java/org/schema/Person.java | 11 ++++++++--- src/main/java/org/schema/PetStore.java | 11 ++++++++--- src/main/java/org/schema/Pharmacy.java | 11 ++++++++--- src/main/java/org/schema/Photograph.java | 11 ++++++++--- .../java/org/schema/PhotographAction.java | 11 ++++++++--- .../java/org/schema/PhysicalActivity.java | 11 ++++++++--- .../org/schema/PhysicalActivityCategory.java | 11 ++++++++--- src/main/java/org/schema/PhysicalExam.java | 11 ++++++++--- src/main/java/org/schema/PhysicalTherapy.java | 11 ++++++++--- src/main/java/org/schema/Physician.java | 11 ++++++++--- src/main/java/org/schema/Place.java | 11 ++++++++--- src/main/java/org/schema/PlaceOfWorship.java | 11 ++++++++--- src/main/java/org/schema/PlanAction.java | 11 ++++++++--- src/main/java/org/schema/PlayAction.java | 11 ++++++++--- src/main/java/org/schema/Playground.java | 11 ++++++++--- src/main/java/org/schema/Plumber.java | 11 ++++++++--- src/main/java/org/schema/PoliceStation.java | 11 ++++++++--- src/main/java/org/schema/Pond.java | 11 ++++++++--- src/main/java/org/schema/PostOffice.java | 11 ++++++++--- src/main/java/org/schema/PostalAddress.java | 11 ++++++++--- src/main/java/org/schema/PrependAction.java | 11 ++++++++--- src/main/java/org/schema/Preschool.java | 11 ++++++++--- .../java/org/schema/PreventionIndication.java | 11 ++++++++--- .../java/org/schema/PriceSpecification.java | 11 ++++++++--- src/main/java/org/schema/Product.java | 11 ++++++++--- src/main/java/org/schema/ProductModel.java | 11 ++++++++--- .../java/org/schema/ProfessionalService.java | 11 ++++++++--- src/main/java/org/schema/ProfilePage.java | 11 ++++++++--- .../java/org/schema/ProgramMembership.java | 11 ++++++++--- src/main/java/org/schema/Property.java | 11 ++++++++--- src/main/java/org/schema/PropertyValue.java | 11 ++++++++--- .../schema/PropertyValueSpecification.java | 11 ++++++++--- .../org/schema/PsychologicalTreatment.java | 11 ++++++++--- .../java/org/schema/PublicSwimmingPool.java | 11 ++++++++--- .../java/org/schema/PublicationEvent.java | 11 ++++++++--- .../java/org/schema/PublicationIssue.java | 11 ++++++++--- .../java/org/schema/PublicationVolume.java | 11 ++++++++--- src/main/java/org/schema/QAPage.java | 11 ++++++++--- .../java/org/schema/QualitativeValue.java | 11 ++++++++--- .../java/org/schema/QuantitativeValue.java | 11 ++++++++--- src/main/java/org/schema/Quantity.java | 11 ++++++++--- src/main/java/org/schema/Question.java | 11 ++++++++--- src/main/java/org/schema/QuoteAction.java | 11 ++++++++--- src/main/java/org/schema/RVPark.java | 11 ++++++++--- .../java/org/schema/RadiationTherapy.java | 11 ++++++++--- src/main/java/org/schema/RadioChannel.java | 11 ++++++++--- src/main/java/org/schema/RadioClip.java | 11 ++++++++--- src/main/java/org/schema/RadioEpisode.java | 11 ++++++++--- src/main/java/org/schema/RadioSeason.java | 11 ++++++++--- src/main/java/org/schema/RadioSeries.java | 11 ++++++++--- src/main/java/org/schema/RadioStation.java | 11 ++++++++--- src/main/java/org/schema/Rating.java | 11 ++++++++--- src/main/java/org/schema/ReactAction.java | 11 ++++++++--- src/main/java/org/schema/ReadAction.java | 11 ++++++++--- src/main/java/org/schema/RealEstateAgent.java | 11 ++++++++--- src/main/java/org/schema/ReceiveAction.java | 11 ++++++++--- src/main/java/org/schema/Recipe.java | 11 ++++++++--- .../org/schema/RecommendedDoseSchedule.java | 11 ++++++++--- src/main/java/org/schema/RecyclingCenter.java | 11 ++++++++--- src/main/java/org/schema/RegisterAction.java | 11 ++++++++--- src/main/java/org/schema/RejectAction.java | 11 ++++++++--- src/main/java/org/schema/RentAction.java | 11 ++++++++--- .../java/org/schema/RentalCarReservation.java | 11 ++++++++--- src/main/java/org/schema/ReplaceAction.java | 11 ++++++++--- src/main/java/org/schema/ReplyAction.java | 11 ++++++++--- .../java/org/schema/ReportedDoseSchedule.java | 11 ++++++++--- src/main/java/org/schema/Reservation.java | 11 ++++++++--- .../java/org/schema/ReservationPackage.java | 11 ++++++++--- .../org/schema/ReservationStatusType.java | 11 ++++++++--- src/main/java/org/schema/ReserveAction.java | 11 ++++++++--- src/main/java/org/schema/Reservoir.java | 11 ++++++++--- src/main/java/org/schema/Residence.java | 11 ++++++++--- src/main/java/org/schema/Restaurant.java | 11 ++++++++--- src/main/java/org/schema/ResumeAction.java | 11 ++++++++--- src/main/java/org/schema/ReturnAction.java | 11 ++++++++--- src/main/java/org/schema/Review.java | 11 ++++++++--- src/main/java/org/schema/ReviewAction.java | 11 ++++++++--- .../java/org/schema/RiverBodyOfWater.java | 11 ++++++++--- src/main/java/org/schema/Role.java | 11 ++++++++--- .../java/org/schema/RoofingContractor.java | 11 ++++++++--- src/main/java/org/schema/RsvpAction.java | 11 ++++++++--- .../java/org/schema/RsvpResponseType.java | 11 ++++++++--- src/main/java/org/schema/SaleEvent.java | 11 ++++++++--- src/main/java/org/schema/ScheduleAction.java | 11 ++++++++--- .../java/org/schema/ScholarlyArticle.java | 11 ++++++++--- src/main/java/org/schema/School.java | 11 ++++++++--- src/main/java/org/schema/ScreeningEvent.java | 11 ++++++++--- src/main/java/org/schema/Sculpture.java | 11 ++++++++--- src/main/java/org/schema/SeaBodyOfWater.java | 11 ++++++++--- src/main/java/org/schema/SearchAction.java | 11 ++++++++--- .../java/org/schema/SearchResultsPage.java | 11 ++++++++--- src/main/java/org/schema/Season.java | 11 ++++++++--- src/main/java/org/schema/Seat.java | 11 ++++++++--- src/main/java/org/schema/SelfStorage.java | 11 ++++++++--- src/main/java/org/schema/SellAction.java | 11 ++++++++--- src/main/java/org/schema/SendAction.java | 11 ++++++++--- src/main/java/org/schema/Series.java | 11 ++++++++--- src/main/java/org/schema/Service.java | 11 ++++++++--- src/main/java/org/schema/ServiceChannel.java | 11 ++++++++--- src/main/java/org/schema/ShareAction.java | 11 ++++++++--- src/main/java/org/schema/ShoeStore.java | 11 ++++++++--- src/main/java/org/schema/ShoppingCenter.java | 11 ++++++++--- .../org/schema/SingleFamilyResidence.java | 11 ++++++++--- .../org/schema/SiteNavigationElement.java | 11 ++++++++--- src/main/java/org/schema/SkiResort.java | 11 ++++++++--- src/main/java/org/schema/SocialEvent.java | 11 ++++++++--- .../java/org/schema/SoftwareApplication.java | 11 ++++++++--- .../java/org/schema/SoftwareSourceCode.java | 11 ++++++++--- src/main/java/org/schema/SomeProducts.java | 11 ++++++++--- src/main/java/org/schema/Specialty.java | 11 ++++++++--- .../java/org/schema/SportingGoodsStore.java | 11 ++++++++--- .../org/schema/SportsActivityLocation.java | 11 ++++++++--- src/main/java/org/schema/SportsClub.java | 11 ++++++++--- src/main/java/org/schema/SportsEvent.java | 11 ++++++++--- .../java/org/schema/SportsOrganization.java | 11 ++++++++--- src/main/java/org/schema/SportsTeam.java | 11 ++++++++--- src/main/java/org/schema/StadiumOrArena.java | 11 ++++++++--- src/main/java/org/schema/State.java | 11 ++++++++--- .../org/schema/SteeringPositionValue.java | 11 ++++++++--- src/main/java/org/schema/Store.java | 11 ++++++++--- src/main/java/org/schema/StructuredValue.java | 11 ++++++++--- src/main/java/org/schema/SubscribeAction.java | 11 ++++++++--- src/main/java/org/schema/SubwayStation.java | 11 ++++++++--- .../java/org/schema/SuperficialAnatomy.java | 11 ++++++++--- src/main/java/org/schema/SuspendAction.java | 11 ++++++++--- src/main/java/org/schema/Synagogue.java | 11 ++++++++--- src/main/java/org/schema/TVClip.java | 11 ++++++++--- src/main/java/org/schema/TVEpisode.java | 11 ++++++++--- src/main/java/org/schema/TVSeason.java | 11 ++++++++--- src/main/java/org/schema/TVSeries.java | 11 ++++++++--- src/main/java/org/schema/Table.java | 11 ++++++++--- src/main/java/org/schema/TakeAction.java | 11 ++++++++--- src/main/java/org/schema/TattooParlor.java | 11 ++++++++--- src/main/java/org/schema/Taxi.java | 11 ++++++++--- src/main/java/org/schema/TaxiReservation.java | 11 ++++++++--- src/main/java/org/schema/TaxiService.java | 11 ++++++++--- src/main/java/org/schema/TaxiStand.java | 11 ++++++++--- src/main/java/org/schema/TechArticle.java | 11 ++++++++--- .../java/org/schema/TelevisionChannel.java | 11 ++++++++--- .../java/org/schema/TelevisionStation.java | 11 ++++++++--- src/main/java/org/schema/TennisComplex.java | 11 ++++++++--- src/main/java/org/schema/TheaterEvent.java | 11 ++++++++--- src/main/java/org/schema/TheaterGroup.java | 11 ++++++++--- .../java/org/schema/TherapeuticProcedure.java | 11 ++++++++--- src/main/java/org/schema/Thing.java | 15 +++++++++++++-- src/main/java/org/schema/Ticket.java | 11 ++++++++--- src/main/java/org/schema/TieAction.java | 11 ++++++++--- src/main/java/org/schema/TipAction.java | 11 ++++++++--- src/main/java/org/schema/TireShop.java | 11 ++++++++--- .../java/org/schema/TouristAttraction.java | 11 ++++++++--- .../org/schema/TouristInformationCenter.java | 11 ++++++++--- src/main/java/org/schema/ToyStore.java | 11 ++++++++--- src/main/java/org/schema/TrackAction.java | 11 ++++++++--- src/main/java/org/schema/TradeAction.java | 11 ++++++++--- .../java/org/schema/TrainReservation.java | 11 ++++++++--- src/main/java/org/schema/TrainStation.java | 11 ++++++++--- src/main/java/org/schema/TrainTrip.java | 11 ++++++++--- src/main/java/org/schema/TransferAction.java | 11 ++++++++--- src/main/java/org/schema/TravelAction.java | 11 ++++++++--- src/main/java/org/schema/TravelAgency.java | 11 ++++++++--- .../java/org/schema/TreatmentIndication.java | 11 ++++++++--- .../java/org/schema/TypeAndQuantityNode.java | 11 ++++++++--- .../java/org/schema/UnRegisterAction.java | 11 ++++++++--- .../org/schema/UnitPriceSpecification.java | 11 ++++++++--- src/main/java/org/schema/UpdateAction.java | 11 ++++++++--- src/main/java/org/schema/UseAction.java | 11 ++++++++--- src/main/java/org/schema/UserBlocks.java | 11 ++++++++--- src/main/java/org/schema/UserCheckins.java | 11 ++++++++--- src/main/java/org/schema/UserComments.java | 11 ++++++++--- src/main/java/org/schema/UserDownloads.java | 11 ++++++++--- src/main/java/org/schema/UserInteraction.java | 11 ++++++++--- src/main/java/org/schema/UserLikes.java | 11 ++++++++--- src/main/java/org/schema/UserPageVisits.java | 11 ++++++++--- src/main/java/org/schema/UserPlays.java | 11 ++++++++--- src/main/java/org/schema/UserPlusOnes.java | 11 ++++++++--- src/main/java/org/schema/UserTweets.java | 11 ++++++++--- src/main/java/org/schema/Vehicle.java | 11 ++++++++--- src/main/java/org/schema/Vein.java | 11 ++++++++--- src/main/java/org/schema/Vessel.java | 11 ++++++++--- src/main/java/org/schema/VeterinaryCare.java | 11 ++++++++--- src/main/java/org/schema/VideoGallery.java | 11 ++++++++--- src/main/java/org/schema/VideoGame.java | 11 ++++++++--- src/main/java/org/schema/VideoGameClip.java | 11 ++++++++--- src/main/java/org/schema/VideoGameSeries.java | 11 ++++++++--- src/main/java/org/schema/VideoObject.java | 11 ++++++++--- src/main/java/org/schema/ViewAction.java | 11 ++++++++--- src/main/java/org/schema/VisualArtsEvent.java | 11 ++++++++--- src/main/java/org/schema/VisualArtwork.java | 11 ++++++++--- src/main/java/org/schema/Volcano.java | 11 ++++++++--- src/main/java/org/schema/VoteAction.java | 11 ++++++++--- src/main/java/org/schema/WPAdBlock.java | 11 ++++++++--- src/main/java/org/schema/WPFooter.java | 11 ++++++++--- src/main/java/org/schema/WPHeader.java | 11 ++++++++--- src/main/java/org/schema/WPSideBar.java | 11 ++++++++--- src/main/java/org/schema/WantAction.java | 11 ++++++++--- src/main/java/org/schema/WarrantyPromise.java | 11 ++++++++--- src/main/java/org/schema/WarrantyScope.java | 11 ++++++++--- src/main/java/org/schema/WatchAction.java | 11 ++++++++--- src/main/java/org/schema/Waterfall.java | 11 ++++++++--- src/main/java/org/schema/WearAction.java | 11 ++++++++--- src/main/java/org/schema/WebApplication.java | 11 ++++++++--- src/main/java/org/schema/WebPage.java | 11 ++++++++--- src/main/java/org/schema/WebPageElement.java | 11 ++++++++--- src/main/java/org/schema/WebSite.java | 11 ++++++++--- src/main/java/org/schema/WholesaleStore.java | 11 ++++++++--- src/main/java/org/schema/WinAction.java | 11 ++++++++--- src/main/java/org/schema/Winery.java | 11 ++++++++--- src/main/java/org/schema/WriteAction.java | 11 ++++++++--- src/main/java/org/schema/Zoo.java | 11 ++++++++--- 628 files changed, 5037 insertions(+), 1883 deletions(-) diff --git a/generator/src/main/kotlin/generator.kt b/generator/src/main/kotlin/generator.kt index 1b029775..3ebb6472 100644 --- a/generator/src/main/kotlin/generator.kt +++ b/generator/src/main/kotlin/generator.kt @@ -66,6 +66,8 @@ private val BANNER = """/* * This is auto-generated file. Do not edit. */""" +private val ID_TYPE = "http://schema.org/@id" + class GeneratorSink : TripleSink { private var uri: String = "http://schema.org/" @@ -81,7 +83,15 @@ class GeneratorSink : TripleSink { type.isField = false type.dataTypes.forEach { types.get(it)!!.interfaces.add(type.name!!.capitalize()) } } + if (type.name == "Thing") { + type.subTypes.add(ID_TYPE) + } } + val idType = Type() + idType.name = "Id" + idType.isField = true + idType.dataTypes.add("http://schema.org/Text") + types.put(ID_TYPE, idType) } override fun setBaseUri(baseUri: String) { @@ -179,9 +189,9 @@ class GeneratorSink : TripleSink { if (field.dataTypes.size() < 2) return listOf(getFieldType(field) ?: "") - val iface = field.dataTypes.firstOrNull { types.get(it)!!.isInterface } - if (iface != null) - return listOf(types.get(iface)!!.name!!) + val interfaceName = field.dataTypes.firstOrNull { types.get(it)!!.isInterface } + if (interfaceName != null) + return listOf(types.get(interfaceName)!!.name!!) return field.dataTypes.map { getBasicTypeName(types.get(it)?.name) }.filterNotNull().toHashSet().sort() } @@ -331,6 +341,9 @@ class GeneratorSink : TripleSink { if (fieldType == "java.util.Date") { appendln(" @com.fasterxml.jackson.annotation.JsonFormat(shape = com.fasterxml.jackson.annotation.JsonFormat.Shape.STRING, pattern = \"yyyy-MM-dd'T'HH:mm:ss'Z'\")") } + if (name == "Id") { + appendln(" @com.fasterxml.jackson.annotation.JsonProperty(\"@id\")"); + } appendln(" public $fieldType get$name() {") appendln(" return my$name;") appendln(" }") diff --git a/src/main/java/org/schema/APIReference.java b/src/main/java/org/schema/APIReference.java index 64495357..b10164d5 100644 --- a/src/main/java/org/schema/APIReference.java +++ b/src/main/java/org/schema/APIReference.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link APIReference} instance. */ public APIReference build() { - return new APIReference(executableLibraryName, assemblyVersion, programmingModel, targetPlatform, dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new APIReference(executableLibraryName, assemblyVersion, programmingModel, targetPlatform, dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * Library file name e.g., mscorlib.dll, system.web.dll. @@ -808,6 +808,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String executableLibraryName; private String assemblyVersion; private String programmingModel; @@ -891,10 +895,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected APIReference(String executableLibraryName, String assemblyVersion, String programmingModel, String targetPlatform, String dependencies, String proficiencyLevel, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected APIReference(String executableLibraryName, String assemblyVersion, String programmingModel, String targetPlatform, String dependencies, String proficiencyLevel, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); myExecutableLibraryName = executableLibraryName; myAssemblyVersion = assemblyVersion; myProgrammingModel = programmingModel; diff --git a/src/main/java/org/schema/AboutPage.java b/src/main/java/org/schema/AboutPage.java index 01faf6e8..118ba39b 100644 --- a/src/main/java/org/schema/AboutPage.java +++ b/src/main/java/org/schema/AboutPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AboutPage} instance. */ public AboutPage build() { - return new AboutPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new AboutPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AboutPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected AboutPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/AcceptAction.java b/src/main/java/org/schema/AcceptAction.java index c91194db..a8820b72 100644 --- a/src/main/java/org/schema/AcceptAction.java +++ b/src/main/java/org/schema/AcceptAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AcceptAction} instance. */ public AcceptAction build() { - return new AcceptAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AcceptAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A goal towards an action is taken. Can be concrete or abstract. @@ -222,6 +222,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalDevicePurposeOrThing purpose; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -237,9 +241,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AcceptAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AcceptAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AccountingService.java b/src/main/java/org/schema/AccountingService.java index 0fdc4d0c..6c465ce7 100644 --- a/src/main/java/org/schema/AccountingService.java +++ b/src/main/java/org/schema/AccountingService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AccountingService} instance. */ public AccountingService build() { - return new AccountingService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AccountingService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AccountingService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AccountingService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AchieveAction.java b/src/main/java/org/schema/AchieveAction.java index a125f56f..0bfd77c1 100644 --- a/src/main/java/org/schema/AchieveAction.java +++ b/src/main/java/org/schema/AchieveAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AchieveAction} instance. */ public AchieveAction build() { - return new AchieveAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AchieveAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AchieveAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AchieveAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Action.java b/src/main/java/org/schema/Action.java index f74ee7c8..96bb2bad 100644 --- a/src/main/java/org/schema/Action.java +++ b/src/main/java/org/schema/Action.java @@ -75,7 +75,7 @@ public static final class Builder { * Creates new {@link Action} instance. */ public Action build() { - return new Action(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Action(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -251,6 +251,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -265,10 +269,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Action(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Action(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, 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); myAgent = agent; myEndTime = endTime; myStartTime = startTime; diff --git a/src/main/java/org/schema/ActionStatusType.java b/src/main/java/org/schema/ActionStatusType.java index 0a5fefc5..cd2c7b8c 100644 --- a/src/main/java/org/schema/ActionStatusType.java +++ b/src/main/java/org/schema/ActionStatusType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ActionStatusType} instance. */ public ActionStatusType build() { - return new ActionStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ActionStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ActionStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ActionStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ActivateAction.java b/src/main/java/org/schema/ActivateAction.java index 739ec376..791f9558 100644 --- a/src/main/java/org/schema/ActivateAction.java +++ b/src/main/java/org/schema/ActivateAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ActivateAction} instance. */ public ActivateAction build() { - return new ActivateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ActivateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ActivateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ActivateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AddAction.java b/src/main/java/org/schema/AddAction.java index e9c4008d..6b46771f 100644 --- a/src/main/java/org/schema/AddAction.java +++ b/src/main/java/org/schema/AddAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AddAction} instance. */ public AddAction build() { - return new AddAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AddAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The collection target of the action. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing targetCollection; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AddAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AddAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AdministrativeArea.java b/src/main/java/org/schema/AdministrativeArea.java index 1e40fc6d..1d6a1cce 100644 --- a/src/main/java/org/schema/AdministrativeArea.java +++ b/src/main/java/org/schema/AdministrativeArea.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AdministrativeArea} instance. */ public AdministrativeArea build() { - return new AdministrativeArea(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AdministrativeArea(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AdministrativeArea(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AdministrativeArea(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AdultEntertainment.java b/src/main/java/org/schema/AdultEntertainment.java index 3cf7669a..ea003dd1 100644 --- a/src/main/java/org/schema/AdultEntertainment.java +++ b/src/main/java/org/schema/AdultEntertainment.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AdultEntertainment} instance. */ public AdultEntertainment build() { - return new AdultEntertainment(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AdultEntertainment(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AdultEntertainment(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AdultEntertainment(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AggregateOffer.java b/src/main/java/org/schema/AggregateOffer.java index 73bee3d6..f46b2bb1 100644 --- a/src/main/java/org/schema/AggregateOffer.java +++ b/src/main/java/org/schema/AggregateOffer.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link AggregateOffer} instance. */ public AggregateOffer build() { - return new AggregateOffer(highPrice, lowPrice, offerCount, offers, acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AggregateOffer(highPrice, lowPrice, offerCount, offers, acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The highest price of all offers available. @@ -580,6 +580,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrString highPrice; private NumberOrString lowPrice; private Integer offerCount; @@ -629,10 +633,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AggregateOffer(NumberOrString highPrice, NumberOrString lowPrice, Integer offerCount, Offer offers, PaymentMethod acceptedPaymentMethod, Offer addOn, QuantitativeValue advanceBookingRequirement, AggregateRating aggregateRating, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, PhysicalActivityCategoryOrStringOrThing category, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, NumberOrString price, PriceSpecification priceSpecification, java.util.Date priceValidUntil, Review review, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AggregateOffer(NumberOrString highPrice, NumberOrString lowPrice, Integer offerCount, Offer offers, PaymentMethod acceptedPaymentMethod, Offer addOn, QuantitativeValue advanceBookingRequirement, AggregateRating aggregateRating, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, PhysicalActivityCategoryOrStringOrThing category, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, NumberOrString price, PriceSpecification priceSpecification, java.util.Date priceValidUntil, Review review, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myHighPrice = highPrice; myLowPrice = lowPrice; myOfferCount = offerCount; diff --git a/src/main/java/org/schema/AggregateRating.java b/src/main/java/org/schema/AggregateRating.java index 6aa3e7f1..268de960 100644 --- a/src/main/java/org/schema/AggregateRating.java +++ b/src/main/java/org/schema/AggregateRating.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link AggregateRating} instance. */ public AggregateRating build() { - return new AggregateRating(itemReviewed, ratingCount, reviewCount, bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AggregateRating(itemReviewed, ratingCount, reviewCount, bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The item that is being reviewed/rated. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing itemReviewed; private Integer ratingCount; private Integer reviewCount; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AggregateRating(Thing itemReviewed, Integer ratingCount, Integer reviewCount, NumberOrString bestRating, String ratingValue, NumberOrString worstRating, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AggregateRating(Thing itemReviewed, Integer ratingCount, Integer reviewCount, NumberOrString bestRating, String ratingValue, NumberOrString worstRating, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myItemReviewed = itemReviewed; myRatingCount = ratingCount; myReviewCount = reviewCount; diff --git a/src/main/java/org/schema/AgreeAction.java b/src/main/java/org/schema/AgreeAction.java index cb0af08f..3b4dbac6 100644 --- a/src/main/java/org/schema/AgreeAction.java +++ b/src/main/java/org/schema/AgreeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AgreeAction} instance. */ public AgreeAction build() { - return new AgreeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AgreeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AgreeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AgreeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Airline.java b/src/main/java/org/schema/Airline.java index 47e5051b..fb312bf8 100644 --- a/src/main/java/org/schema/Airline.java +++ b/src/main/java/org/schema/Airline.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link Airline} instance. */ public Airline build() { - return new Airline(boardingPolicy, iataCode, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Airline(boardingPolicy, iataCode, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The type of boarding policy used by the airline (e.g. zone-based or group-based). @@ -446,6 +446,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BoardingPolicyType boardingPolicy; private String iataCode; private PostalAddress address; @@ -488,10 +492,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Airline(BoardingPolicyType boardingPolicy, String iataCode, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Airline(BoardingPolicyType boardingPolicy, String iataCode, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBoardingPolicy = boardingPolicy; myIataCode = iataCode; } diff --git a/src/main/java/org/schema/Airport.java b/src/main/java/org/schema/Airport.java index 9b0d0bda..e0a1bdc0 100644 --- a/src/main/java/org/schema/Airport.java +++ b/src/main/java/org/schema/Airport.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link Airport} instance. */ public Airport build() { - return new Airport(iataCode, iacoCode, openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Airport(iataCode, iacoCode, openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * IATA identifier for an airline or airport. @@ -328,6 +328,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String iataCode; private String iacoCode; private String openingHours; @@ -354,10 +358,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Airport(String iataCode, String iacoCode, String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Airport(String iataCode, String iacoCode, String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIataCode = iataCode; myIacoCode = iacoCode; } diff --git a/src/main/java/org/schema/AlignmentObject.java b/src/main/java/org/schema/AlignmentObject.java index 85b062a9..f6afc8df 100644 --- a/src/main/java/org/schema/AlignmentObject.java +++ b/src/main/java/org/schema/AlignmentObject.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link AlignmentObject} instance. */ public AlignmentObject build() { - return new AlignmentObject(alignmentType, educationalFramework, targetDescription, targetName, targetUrl, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AlignmentObject(alignmentType, educationalFramework, targetDescription, targetName, targetUrl, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A category of alignment between the learning resource and the framework node. Recommended values include: 'assesses', 'teaches', 'requires', 'textComplexity', 'readingLevel', 'educationalSubject', and 'educationLevel'. @@ -217,6 +217,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String alignmentType; private String educationalFramework; private String targetDescription; @@ -230,10 +234,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AlignmentObject(String alignmentType, String educationalFramework, String targetDescription, String targetName, String targetUrl, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AlignmentObject(String alignmentType, String educationalFramework, String targetDescription, String targetName, String targetUrl, 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); myAlignmentType = alignmentType; myEducationalFramework = educationalFramework; myTargetDescription = targetDescription; diff --git a/src/main/java/org/schema/AllocateAction.java b/src/main/java/org/schema/AllocateAction.java index 68f65b7d..9c54a11c 100644 --- a/src/main/java/org/schema/AllocateAction.java +++ b/src/main/java/org/schema/AllocateAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link AllocateAction} instance. */ public AllocateAction build() { - return new AllocateAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AllocateAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A goal towards an action is taken. Can be concrete or abstract. @@ -228,6 +228,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalDevicePurposeOrThing purpose; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AllocateAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AllocateAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPurpose = purpose; } private MedicalDevicePurposeOrThing myPurpose; diff --git a/src/main/java/org/schema/AmusementPark.java b/src/main/java/org/schema/AmusementPark.java index f2b0356c..400194fe 100644 --- a/src/main/java/org/schema/AmusementPark.java +++ b/src/main/java/org/schema/AmusementPark.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AmusementPark} instance. */ public AmusementPark build() { - return new AmusementPark(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AmusementPark(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AmusementPark(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AmusementPark(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AnatomicalStructure.java b/src/main/java/org/schema/AnatomicalStructure.java index a357d9f9..1ed131b2 100644 --- a/src/main/java/org/schema/AnatomicalStructure.java +++ b/src/main/java/org/schema/AnatomicalStructure.java @@ -85,7 +85,7 @@ public static final class Builder { * Creates new {@link AnatomicalStructure} instance. */ public AnatomicalStructure build() { - return new AnatomicalStructure(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AnatomicalStructure(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -311,6 +311,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private String bodyLocation; private AnatomicalStructure connectedTo; @@ -334,10 +338,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AnatomicalStructure(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AnatomicalStructure(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAssociatedPathophysiology = associatedPathophysiology; myBodyLocation = bodyLocation; myConnectedTo = connectedTo; diff --git a/src/main/java/org/schema/AnatomicalSystem.java b/src/main/java/org/schema/AnatomicalSystem.java index 6b548062..71a3590c 100644 --- a/src/main/java/org/schema/AnatomicalSystem.java +++ b/src/main/java/org/schema/AnatomicalSystem.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link AnatomicalSystem} instance. */ public AnatomicalSystem build() { - return new AnatomicalSystem(associatedPathophysiology, comprisedOf, relatedCondition, relatedStructure, relatedTherapy, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AnatomicalSystem(associatedPathophysiology, comprisedOf, relatedCondition, relatedStructure, relatedTherapy, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -268,6 +268,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private AnatomicalStructureOrAnatomicalSystem comprisedOf; private MedicalCondition relatedCondition; @@ -287,10 +291,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AnatomicalSystem(String associatedPathophysiology, AnatomicalStructureOrAnatomicalSystem comprisedOf, MedicalCondition relatedCondition, AnatomicalStructure relatedStructure, MedicalTherapy relatedTherapy, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AnatomicalSystem(String associatedPathophysiology, AnatomicalStructureOrAnatomicalSystem comprisedOf, MedicalCondition relatedCondition, AnatomicalStructure relatedStructure, MedicalTherapy relatedTherapy, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAssociatedPathophysiology = associatedPathophysiology; myComprisedOf = comprisedOf; myRelatedCondition = relatedCondition; diff --git a/src/main/java/org/schema/AnimalShelter.java b/src/main/java/org/schema/AnimalShelter.java index 88581400..5fb428af 100644 --- a/src/main/java/org/schema/AnimalShelter.java +++ b/src/main/java/org/schema/AnimalShelter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AnimalShelter} instance. */ public AnimalShelter build() { - return new AnimalShelter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AnimalShelter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AnimalShelter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AnimalShelter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Answer.java b/src/main/java/org/schema/Answer.java index e020c255..44c4e90b 100644 --- a/src/main/java/org/schema/Answer.java +++ b/src/main/java/org/schema/Answer.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Answer} instance. */ public Answer build() { - return new Answer(upvoteCount, downvoteCount, parentItem, 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); + return new Answer(upvoteCount, downvoteCount, parentItem, 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); } /** * The number of upvotes this question, answer or comment has received from the community. @@ -704,6 +704,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer upvoteCount; private Integer downvoteCount; private Question parentItem; @@ -778,9 +782,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Answer(Integer upvoteCount, Integer downvoteCount, Question parentItem, 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) { - super(upvoteCount, downvoteCount, parentItem, 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); + protected Answer(Integer upvoteCount, Integer downvoteCount, Question parentItem, 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(upvoteCount, downvoteCount, parentItem, 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); } } diff --git a/src/main/java/org/schema/ApartmentComplex.java b/src/main/java/org/schema/ApartmentComplex.java index 3b35c156..e8411532 100644 --- a/src/main/java/org/schema/ApartmentComplex.java +++ b/src/main/java/org/schema/ApartmentComplex.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ApartmentComplex} instance. */ public ApartmentComplex build() { - return new ApartmentComplex(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ApartmentComplex(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ApartmentComplex(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ApartmentComplex(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AppendAction.java b/src/main/java/org/schema/AppendAction.java index 03f5fa1f..05c65b65 100644 --- a/src/main/java/org/schema/AppendAction.java +++ b/src/main/java/org/schema/AppendAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AppendAction} instance. */ public AppendAction build() { - return new AppendAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AppendAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The final location of the object or the agent after the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place toLocation; private Thing targetCollection; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AppendAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AppendAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ApplyAction.java b/src/main/java/org/schema/ApplyAction.java index fe40fde9..271a8f10 100644 --- a/src/main/java/org/schema/ApplyAction.java +++ b/src/main/java/org/schema/ApplyAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ApplyAction} instance. */ public ApplyAction build() { - return new ApplyAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ApplyAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ApplyAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ApplyAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ApprovedIndication.java b/src/main/java/org/schema/ApprovedIndication.java index aa10f9dd..1e6f873c 100644 --- a/src/main/java/org/schema/ApprovedIndication.java +++ b/src/main/java/org/schema/ApprovedIndication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link ApprovedIndication} instance. */ public ApprovedIndication build() { - return new ApprovedIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ApprovedIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -194,6 +194,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -208,9 +212,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ApprovedIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ApprovedIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Aquarium.java b/src/main/java/org/schema/Aquarium.java index ef06ea6d..746708fb 100644 --- a/src/main/java/org/schema/Aquarium.java +++ b/src/main/java/org/schema/Aquarium.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Aquarium} instance. */ public Aquarium build() { - return new Aquarium(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Aquarium(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Aquarium(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Aquarium(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ArriveAction.java b/src/main/java/org/schema/ArriveAction.java index db91490b..552dd6ed 100644 --- a/src/main/java/org/schema/ArriveAction.java +++ b/src/main/java/org/schema/ArriveAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ArriveAction} instance. */ public ArriveAction build() { - return new ArriveAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ArriveAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ArriveAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ArriveAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ArtGallery.java b/src/main/java/org/schema/ArtGallery.java index f0a61b3c..27b888d5 100644 --- a/src/main/java/org/schema/ArtGallery.java +++ b/src/main/java/org/schema/ArtGallery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ArtGallery} instance. */ public ArtGallery build() { - return new ArtGallery(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ArtGallery(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ArtGallery(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ArtGallery(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Artery.java b/src/main/java/org/schema/Artery.java index dd41fcb1..449c2776 100644 --- a/src/main/java/org/schema/Artery.java +++ b/src/main/java/org/schema/Artery.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link Artery} instance. */ public Artery build() { - return new Artery(arterialBranch, source, supplyTo, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Artery(arterialBranch, source, supplyTo, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The branches that comprise the arterial structure. @@ -296,6 +296,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AnatomicalStructure arterialBranch; private AnatomicalStructure source; private AnatomicalStructure supplyTo; @@ -322,10 +326,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Artery(AnatomicalStructure arterialBranch, AnatomicalStructure source, AnatomicalStructure supplyTo, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Artery(AnatomicalStructure arterialBranch, AnatomicalStructure source, AnatomicalStructure supplyTo, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myArterialBranch = arterialBranch; mySource = source; mySupplyTo = supplyTo; diff --git a/src/main/java/org/schema/Article.java b/src/main/java/org/schema/Article.java index 777b9cb1..de8cbe43 100644 --- a/src/main/java/org/schema/Article.java +++ b/src/main/java/org/schema/Article.java @@ -69,7 +69,7 @@ public static final class Builder { * Creates new {@link Article} instance. */ public Article build() { - return new Article(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new Article(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * The actual body of the article. @@ -781,6 +781,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String articleBody; private String articleSection; private Integer wordCount; @@ -858,10 +862,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Article(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(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); + protected Article(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(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); myArticleBody = articleBody; myArticleSection = articleSection; myWordCount = wordCount; diff --git a/src/main/java/org/schema/AskAction.java b/src/main/java/org/schema/AskAction.java index 5a80a840..7e55405a 100644 --- a/src/main/java/org/schema/AskAction.java +++ b/src/main/java/org/schema/AskAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link AskAction} instance. */ public AskAction build() { - return new AskAction(question, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AskAction(question, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. A question. @@ -266,6 +266,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Question question; private Thing about; private LanguageOrString inLanguage; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AskAction(Question question, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AskAction(Question question, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myQuestion = question; } private Question myQuestion; diff --git a/src/main/java/org/schema/AssessAction.java b/src/main/java/org/schema/AssessAction.java index c23e0593..37ccd56e 100644 --- a/src/main/java/org/schema/AssessAction.java +++ b/src/main/java/org/schema/AssessAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AssessAction} instance. */ public AssessAction build() { - return new AssessAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AssessAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AssessAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AssessAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AssignAction.java b/src/main/java/org/schema/AssignAction.java index ffbd327b..248cdbc8 100644 --- a/src/main/java/org/schema/AssignAction.java +++ b/src/main/java/org/schema/AssignAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AssignAction} instance. */ public AssignAction build() { - return new AssignAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AssignAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A goal towards an action is taken. Can be concrete or abstract. @@ -222,6 +222,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalDevicePurposeOrThing purpose; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -237,9 +241,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AssignAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AssignAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Attorney.java b/src/main/java/org/schema/Attorney.java index a6de9a76..12111847 100644 --- a/src/main/java/org/schema/Attorney.java +++ b/src/main/java/org/schema/Attorney.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Attorney} instance. */ public Attorney build() { - return new Attorney(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Attorney(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Attorney(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Attorney(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Audience.java b/src/main/java/org/schema/Audience.java index 55cfd835..656f8a58 100644 --- a/src/main/java/org/schema/Audience.java +++ b/src/main/java/org/schema/Audience.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link Audience} instance. */ public Audience build() { - return new Audience(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Audience(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.). @@ -177,6 +177,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String audienceType; private AdministrativeArea geographicArea; private String additionalType; @@ -187,10 +191,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Audience(String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Audience(String audienceType, AdministrativeArea geographicArea, 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); myAudienceType = audienceType; myGeographicArea = geographicArea; } diff --git a/src/main/java/org/schema/AudioObject.java b/src/main/java/org/schema/AudioObject.java index 3117c1cc..d4624496 100644 --- a/src/main/java/org/schema/AudioObject.java +++ b/src/main/java/org/schema/AudioObject.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link AudioObject} instance. */ public AudioObject build() { - return new AudioObject(transcript, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new AudioObject(transcript, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. @@ -826,6 +826,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String transcript; private NewsArticle associatedArticle; private String bitrate; @@ -914,10 +918,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AudioObject(String transcript, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + protected AudioObject(String transcript, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); myTranscript = transcript; } private String myTranscript; diff --git a/src/main/java/org/schema/AuthorizeAction.java b/src/main/java/org/schema/AuthorizeAction.java index c6c798d4..3cca2a17 100644 --- a/src/main/java/org/schema/AuthorizeAction.java +++ b/src/main/java/org/schema/AuthorizeAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link AuthorizeAction} instance. */ public AuthorizeAction build() { - return new AuthorizeAction(recipient, purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AuthorizeAction(recipient, purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant who is at the receiving end of the action. @@ -252,6 +252,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AudienceOrOrganizationOrPerson recipient; private MedicalDevicePurposeOrThing purpose; private OrganizationOrPerson agent; @@ -268,10 +272,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AuthorizeAction(AudienceOrOrganizationOrPerson recipient, MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AuthorizeAction(AudienceOrOrganizationOrPerson recipient, MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecipient = recipient; } private AudienceOrOrganizationOrPerson myRecipient; diff --git a/src/main/java/org/schema/AutoBodyShop.java b/src/main/java/org/schema/AutoBodyShop.java index 8d80fe40..bb48c230 100644 --- a/src/main/java/org/schema/AutoBodyShop.java +++ b/src/main/java/org/schema/AutoBodyShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoBodyShop} instance. */ public AutoBodyShop build() { - return new AutoBodyShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoBodyShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoBodyShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoBodyShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutoDealer.java b/src/main/java/org/schema/AutoDealer.java index e87baa8c..049702c0 100644 --- a/src/main/java/org/schema/AutoDealer.java +++ b/src/main/java/org/schema/AutoDealer.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoDealer} instance. */ public AutoDealer build() { - return new AutoDealer(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoDealer(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoDealer(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoDealer(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutoPartsStore.java b/src/main/java/org/schema/AutoPartsStore.java index aa824baa..b7cc34ac 100644 --- a/src/main/java/org/schema/AutoPartsStore.java +++ b/src/main/java/org/schema/AutoPartsStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoPartsStore} instance. */ public AutoPartsStore build() { - return new AutoPartsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoPartsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoPartsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoPartsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutoRental.java b/src/main/java/org/schema/AutoRental.java index 39048b63..32da5b3c 100644 --- a/src/main/java/org/schema/AutoRental.java +++ b/src/main/java/org/schema/AutoRental.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoRental} instance. */ public AutoRental build() { - return new AutoRental(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoRental(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoRental(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoRental(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutoRepair.java b/src/main/java/org/schema/AutoRepair.java index 5546359f..a03d7226 100644 --- a/src/main/java/org/schema/AutoRepair.java +++ b/src/main/java/org/schema/AutoRepair.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoRepair} instance. */ public AutoRepair build() { - return new AutoRepair(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoRepair(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoRepair(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoRepair(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutoWash.java b/src/main/java/org/schema/AutoWash.java index 7ccfdfd3..21e02399 100644 --- a/src/main/java/org/schema/AutoWash.java +++ b/src/main/java/org/schema/AutoWash.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutoWash} instance. */ public AutoWash build() { - return new AutoWash(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutoWash(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutoWash(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutoWash(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutomatedTeller.java b/src/main/java/org/schema/AutomatedTeller.java index 2dc9f8fe..79d9ec48 100644 --- a/src/main/java/org/schema/AutomatedTeller.java +++ b/src/main/java/org/schema/AutomatedTeller.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutomatedTeller} instance. */ public AutomatedTeller build() { - return new AutomatedTeller(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutomatedTeller(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutomatedTeller(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutomatedTeller(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/AutomotiveBusiness.java b/src/main/java/org/schema/AutomotiveBusiness.java index 4c2ff03f..a4cdbecc 100644 --- a/src/main/java/org/schema/AutomotiveBusiness.java +++ b/src/main/java/org/schema/AutomotiveBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link AutomotiveBusiness} instance. */ public AutomotiveBusiness build() { - return new AutomotiveBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new AutomotiveBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected AutomotiveBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected AutomotiveBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Bakery.java b/src/main/java/org/schema/Bakery.java index 448b2b7b..1b4bb23a 100644 --- a/src/main/java/org/schema/Bakery.java +++ b/src/main/java/org/schema/Bakery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Bakery} instance. */ public Bakery build() { - return new Bakery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Bakery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Bakery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Bakery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BankOrCreditUnion.java b/src/main/java/org/schema/BankOrCreditUnion.java index 4be4d127..dad3af0c 100644 --- a/src/main/java/org/schema/BankOrCreditUnion.java +++ b/src/main/java/org/schema/BankOrCreditUnion.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BankOrCreditUnion} instance. */ public BankOrCreditUnion build() { - return new BankOrCreditUnion(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BankOrCreditUnion(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BankOrCreditUnion(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BankOrCreditUnion(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BarOrPub.java b/src/main/java/org/schema/BarOrPub.java index e71b5ae7..4800d375 100644 --- a/src/main/java/org/schema/BarOrPub.java +++ b/src/main/java/org/schema/BarOrPub.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BarOrPub} instance. */ public BarOrPub build() { - return new BarOrPub(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BarOrPub(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BarOrPub(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BarOrPub(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Beach.java b/src/main/java/org/schema/Beach.java index 6d09b5a0..df25a5a9 100644 --- a/src/main/java/org/schema/Beach.java +++ b/src/main/java/org/schema/Beach.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Beach} instance. */ public Beach build() { - return new Beach(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Beach(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Beach(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Beach(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BeautySalon.java b/src/main/java/org/schema/BeautySalon.java index 3c681ed3..8873fa79 100644 --- a/src/main/java/org/schema/BeautySalon.java +++ b/src/main/java/org/schema/BeautySalon.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BeautySalon} instance. */ public BeautySalon build() { - return new BeautySalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BeautySalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BeautySalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BeautySalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BedAndBreakfast.java b/src/main/java/org/schema/BedAndBreakfast.java index 99df2454..078054dc 100644 --- a/src/main/java/org/schema/BedAndBreakfast.java +++ b/src/main/java/org/schema/BedAndBreakfast.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BedAndBreakfast} instance. */ public BedAndBreakfast build() { - return new BedAndBreakfast(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BedAndBreakfast(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BedAndBreakfast(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BedAndBreakfast(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BefriendAction.java b/src/main/java/org/schema/BefriendAction.java index efc9cb68..45789a59 100644 --- a/src/main/java/org/schema/BefriendAction.java +++ b/src/main/java/org/schema/BefriendAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BefriendAction} instance. */ public BefriendAction build() { - return new BefriendAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BefriendAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BefriendAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BefriendAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BikeStore.java b/src/main/java/org/schema/BikeStore.java index 969c890b..532937d5 100644 --- a/src/main/java/org/schema/BikeStore.java +++ b/src/main/java/org/schema/BikeStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BikeStore} instance. */ public BikeStore build() { - return new BikeStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BikeStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BikeStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BikeStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Blog.java b/src/main/java/org/schema/Blog.java index be6fe0c3..a8e2779c 100644 --- a/src/main/java/org/schema/Blog.java +++ b/src/main/java/org/schema/Blog.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link Blog} instance. */ public Blog build() { - return new Blog(blogPost, 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); + return new Blog(blogPost, 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); } /** * A posting that is part of this blog. @@ -695,6 +695,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BlogPosting blogPost; private String schemaVersion; private Thing about; @@ -767,10 +771,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Blog(BlogPosting blogPost, 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) { - super(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); + protected Blog(BlogPosting blogPost, 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(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); myBlogPost = blogPost; } private BlogPosting myBlogPost; diff --git a/src/main/java/org/schema/BlogPosting.java b/src/main/java/org/schema/BlogPosting.java index 9921e008..e81b8044 100644 --- a/src/main/java/org/schema/BlogPosting.java +++ b/src/main/java/org/schema/BlogPosting.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BlogPosting} instance. */ public BlogPosting build() { - return new BlogPosting(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new BlogPosting(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * The actual body of the article. @@ -742,6 +742,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String articleBody; private String articleSection; private Integer wordCount; @@ -819,9 +823,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BlogPosting(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected BlogPosting(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } } diff --git a/src/main/java/org/schema/BloodTest.java b/src/main/java/org/schema/BloodTest.java index bb00280e..45bef2fc 100644 --- a/src/main/java/org/schema/BloodTest.java +++ b/src/main/java/org/schema/BloodTest.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link BloodTest} instance. */ public BloodTest build() { - return new BloodTest(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BloodTest(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Drugs that affect the test's results. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Drug affectedBy; private String normalRange; private MedicalSign signDetected; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BloodTest(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BloodTest(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BoardingPolicyType.java b/src/main/java/org/schema/BoardingPolicyType.java index 2cbc3236..32e29810 100644 --- a/src/main/java/org/schema/BoardingPolicyType.java +++ b/src/main/java/org/schema/BoardingPolicyType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BoardingPolicyType} instance. */ public BoardingPolicyType build() { - return new BoardingPolicyType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BoardingPolicyType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BoardingPolicyType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BoardingPolicyType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BodyOfWater.java b/src/main/java/org/schema/BodyOfWater.java index ba36ede8..87ebcd94 100644 --- a/src/main/java/org/schema/BodyOfWater.java +++ b/src/main/java/org/schema/BodyOfWater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BodyOfWater} instance. */ public BodyOfWater build() { - return new BodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Bone.java b/src/main/java/org/schema/Bone.java index 8beb35d6..8f1aadfa 100644 --- a/src/main/java/org/schema/Bone.java +++ b/src/main/java/org/schema/Bone.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Bone} instance. */ public Bone build() { - return new Bone(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Bone(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -257,6 +257,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private String bodyLocation; private AnatomicalStructure connectedTo; @@ -280,9 +284,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Bone(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Bone(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Book.java b/src/main/java/org/schema/Book.java index d1129e77..d35edd84 100644 --- a/src/main/java/org/schema/Book.java +++ b/src/main/java/org/schema/Book.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link Book} instance. */ public Book build() { - return new Book(bookEdition, bookFormat, illustrator, isbn, numberOfPages, 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); + return new Book(bookEdition, bookFormat, illustrator, isbn, numberOfPages, 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); } /** * The edition of the book. @@ -747,6 +747,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String bookEdition; private BookFormatType bookFormat; private Person illustrator; @@ -823,10 +827,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Book(String bookEdition, BookFormatType bookFormat, Person illustrator, String isbn, Integer numberOfPages, 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) { - super(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); + protected Book(String bookEdition, BookFormatType bookFormat, Person illustrator, String isbn, Integer numberOfPages, 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(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); myBookEdition = bookEdition; myBookFormat = bookFormat; myIllustrator = illustrator; diff --git a/src/main/java/org/schema/BookFormatType.java b/src/main/java/org/schema/BookFormatType.java index 17fd54eb..bac2b1c7 100644 --- a/src/main/java/org/schema/BookFormatType.java +++ b/src/main/java/org/schema/BookFormatType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BookFormatType} instance. */ public BookFormatType build() { - return new BookFormatType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BookFormatType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BookFormatType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BookFormatType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BookSeries.java b/src/main/java/org/schema/BookSeries.java index fbc56822..6fb201fc 100644 --- a/src/main/java/org/schema/BookSeries.java +++ b/src/main/java/org/schema/BookSeries.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BookSeries} instance. */ public BookSeries build() { - return new BookSeries(endDate, startDate, 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); + return new BookSeries(endDate, startDate, 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); } /** * The end date and time of the item (in ISO 8601 date format). @@ -696,6 +696,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date endDate; private java.util.Date startDate; private String schemaVersion; @@ -769,9 +773,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BookSeries(java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected BookSeries(java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); } } diff --git a/src/main/java/org/schema/BookStore.java b/src/main/java/org/schema/BookStore.java index 285b8b46..74126d89 100644 --- a/src/main/java/org/schema/BookStore.java +++ b/src/main/java/org/schema/BookStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BookStore} instance. */ public BookStore build() { - return new BookStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BookStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BookStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BookStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BookmarkAction.java b/src/main/java/org/schema/BookmarkAction.java index 2a45604a..62bfd8cb 100644 --- a/src/main/java/org/schema/BookmarkAction.java +++ b/src/main/java/org/schema/BookmarkAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BookmarkAction} instance. */ public BookmarkAction build() { - return new BookmarkAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BookmarkAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BookmarkAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BookmarkAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BorrowAction.java b/src/main/java/org/schema/BorrowAction.java index e394099b..e87e3287 100644 --- a/src/main/java/org/schema/BorrowAction.java +++ b/src/main/java/org/schema/BorrowAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link BorrowAction} instance. */ public BorrowAction build() { - return new BorrowAction(lender, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BorrowAction(lender, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The person that lends the object being borrowed. @@ -233,6 +233,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person lender; private Place fromLocation; private Place toLocation; @@ -250,10 +254,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BorrowAction(Person lender, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BorrowAction(Person lender, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myLender = lender; } private Person myLender; diff --git a/src/main/java/org/schema/BowlingAlley.java b/src/main/java/org/schema/BowlingAlley.java index ccbfd1a6..90bb68be 100644 --- a/src/main/java/org/schema/BowlingAlley.java +++ b/src/main/java/org/schema/BowlingAlley.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BowlingAlley} instance. */ public BowlingAlley build() { - return new BowlingAlley(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BowlingAlley(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BowlingAlley(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BowlingAlley(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BrainStructure.java b/src/main/java/org/schema/BrainStructure.java index f188a3b3..a657dd46 100644 --- a/src/main/java/org/schema/BrainStructure.java +++ b/src/main/java/org/schema/BrainStructure.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link BrainStructure} instance. */ public BrainStructure build() { - return new BrainStructure(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BrainStructure(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -257,6 +257,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private String bodyLocation; private AnatomicalStructure connectedTo; @@ -280,9 +284,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BrainStructure(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BrainStructure(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Brand.java b/src/main/java/org/schema/Brand.java index b3019d11..cb8c5437 100644 --- a/src/main/java/org/schema/Brand.java +++ b/src/main/java/org/schema/Brand.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link Brand} instance. */ public Brand build() { - return new Brand(aggregateRating, logo, review, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Brand(aggregateRating, logo, review, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -200,6 +200,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private ImageObjectOrString logo; private Review review; @@ -211,10 +215,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Brand(AggregateRating aggregateRating, ImageObjectOrString logo, Review review, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Brand(AggregateRating aggregateRating, ImageObjectOrString logo, Review review, 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); myAggregateRating = aggregateRating; myLogo = logo; myReview = review; diff --git a/src/main/java/org/schema/BreadcrumbList.java b/src/main/java/org/schema/BreadcrumbList.java index e7ae3db6..080cb5d2 100644 --- a/src/main/java/org/schema/BreadcrumbList.java +++ b/src/main/java/org/schema/BreadcrumbList.java @@ -39,7 +39,7 @@ public static final class Builder { * Creates new {@link BreadcrumbList} instance. */ public BreadcrumbList build() { - return new BreadcrumbList(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BreadcrumbList(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer numberOfItems; private ItemListOrderTypeOrString itemListOrder; private ListItemOrStringOrThing itemListElement; @@ -230,9 +234,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BreadcrumbList(Integer numberOfItems, ItemListOrderTypeOrString itemListOrder, ListItemOrStringOrThing itemListElement, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BreadcrumbList(Integer numberOfItems, ItemListOrderTypeOrString itemListOrder, ListItemOrStringOrThing itemListElement, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Brewery.java b/src/main/java/org/schema/Brewery.java index ea2581b5..53efa02a 100644 --- a/src/main/java/org/schema/Brewery.java +++ b/src/main/java/org/schema/Brewery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Brewery} instance. */ public Brewery build() { - return new Brewery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Brewery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Brewery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Brewery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BroadcastChannel.java b/src/main/java/org/schema/BroadcastChannel.java index a1716f23..5e25570b 100644 --- a/src/main/java/org/schema/BroadcastChannel.java +++ b/src/main/java/org/schema/BroadcastChannel.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link BroadcastChannel} instance. */ public BroadcastChannel build() { - return new BroadcastChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BroadcastChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number. @@ -203,6 +203,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String broadcastChannelId; private CableOrSatelliteService inBroadcastLineup; private String broadcastServiceTier; @@ -215,10 +219,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BroadcastChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BroadcastChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, 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); myBroadcastChannelId = broadcastChannelId; myInBroadcastLineup = inBroadcastLineup; myBroadcastServiceTier = broadcastServiceTier; diff --git a/src/main/java/org/schema/BroadcastEvent.java b/src/main/java/org/schema/BroadcastEvent.java index a2303bb7..5a4c5a9d 100644 --- a/src/main/java/org/schema/BroadcastEvent.java +++ b/src/main/java/org/schema/BroadcastEvent.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link BroadcastEvent} instance. */ public BroadcastEvent build() { - return new BroadcastEvent(isLiveBroadcast, isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BroadcastEvent(isLiveBroadcast, isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * True is the broadcast is of a live event. @@ -340,6 +340,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Boolean isLiveBroadcast; private Boolean isAccessibleForFree; private BroadcastService publishedOn; @@ -369,10 +373,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BroadcastEvent(Boolean isLiveBroadcast, Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BroadcastEvent(Boolean isLiveBroadcast, Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIsLiveBroadcast = isLiveBroadcast; } private Boolean myIsLiveBroadcast; diff --git a/src/main/java/org/schema/BroadcastService.java b/src/main/java/org/schema/BroadcastService.java index 6ced4932..36882555 100644 --- a/src/main/java/org/schema/BroadcastService.java +++ b/src/main/java/org/schema/BroadcastService.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link BroadcastService} instance. */ public BroadcastService build() { - return new BroadcastService(broadcaster, parentService, broadcastAffiliateOf, broadcastDisplayName, timezone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BroadcastService(broadcaster, parentService, broadcastAffiliateOf, broadcastDisplayName, timezone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The organization owning or operating the broadcast service. @@ -216,6 +216,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization broadcaster; private BroadcastService parentService; private Organization broadcastAffiliateOf; @@ -229,10 +233,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BroadcastService(Organization broadcaster, BroadcastService parentService, Organization broadcastAffiliateOf, String broadcastDisplayName, String timezone, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BroadcastService(Organization broadcaster, BroadcastService parentService, Organization broadcastAffiliateOf, String broadcastDisplayName, String timezone, 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); myBroadcaster = broadcaster; myParentService = parentService; myBroadcastAffiliateOf = broadcastAffiliateOf; diff --git a/src/main/java/org/schema/BuddhistTemple.java b/src/main/java/org/schema/BuddhistTemple.java index eacfe9ca..51479ddc 100644 --- a/src/main/java/org/schema/BuddhistTemple.java +++ b/src/main/java/org/schema/BuddhistTemple.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BuddhistTemple} instance. */ public BuddhistTemple build() { - return new BuddhistTemple(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BuddhistTemple(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BuddhistTemple(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BuddhistTemple(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusReservation.java b/src/main/java/org/schema/BusReservation.java index c4484d3d..208000cf 100644 --- a/src/main/java/org/schema/BusReservation.java +++ b/src/main/java/org/schema/BusReservation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BusReservation} instance. */ public BusReservation build() { - return new BusReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A unique identifier for the reservation. @@ -279,6 +279,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String reservationId; private ReservationStatusType reservationStatus; private Thing reservationFor; @@ -299,9 +303,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusStation.java b/src/main/java/org/schema/BusStation.java index 29b01f71..c270a326 100644 --- a/src/main/java/org/schema/BusStation.java +++ b/src/main/java/org/schema/BusStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BusStation} instance. */ public BusStation build() { - return new BusStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusStop.java b/src/main/java/org/schema/BusStop.java index e7ccbfb0..2994c7cb 100644 --- a/src/main/java/org/schema/BusStop.java +++ b/src/main/java/org/schema/BusStop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BusStop} instance. */ public BusStop build() { - return new BusStop(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusStop(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusStop(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusStop(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusTrip.java b/src/main/java/org/schema/BusTrip.java index c6adf7d0..2e2ea9ab 100644 --- a/src/main/java/org/schema/BusTrip.java +++ b/src/main/java/org/schema/BusTrip.java @@ -74,7 +74,7 @@ public static final class Builder { * Creates new {@link BusTrip} instance. */ public BusTrip build() { - return new BusTrip(provider, departureTime, arrivalTime, busNumber, busName, departureBusStop, arrivalBusStop, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusTrip(provider, departureTime, arrivalTime, busNumber, busName, departureBusStop, arrivalBusStop, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * 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. @@ -271,6 +271,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson provider; private java.util.Date departureTime; private java.util.Date arrivalTime; @@ -286,10 +290,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusTrip(OrganizationOrPerson provider, java.util.Date departureTime, java.util.Date arrivalTime, String busNumber, String busName, BusStationOrBusStop departureBusStop, BusStationOrBusStop arrivalBusStop, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusTrip(OrganizationOrPerson provider, java.util.Date departureTime, java.util.Date arrivalTime, String busNumber, String busName, BusStationOrBusStop departureBusStop, BusStationOrBusStop arrivalBusStop, 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); myProvider = provider; myDepartureTime = departureTime; myArrivalTime = arrivalTime; diff --git a/src/main/java/org/schema/BusinessAudience.java b/src/main/java/org/schema/BusinessAudience.java index 91eaa992..fdf023fa 100644 --- a/src/main/java/org/schema/BusinessAudience.java +++ b/src/main/java/org/schema/BusinessAudience.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link BusinessAudience} instance. */ public BusinessAudience build() { - return new BusinessAudience(numberOfEmployees, yearlyRevenue, yearsInOperation, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusinessAudience(numberOfEmployees, yearlyRevenue, yearsInOperation, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of employees in an organization e.g. business. @@ -204,6 +204,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QuantitativeValue numberOfEmployees; private QuantitativeValue yearlyRevenue; private QuantitativeValue yearsInOperation; @@ -217,10 +221,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusinessAudience(QuantitativeValue numberOfEmployees, QuantitativeValue yearlyRevenue, QuantitativeValue yearsInOperation, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusinessAudience(QuantitativeValue numberOfEmployees, QuantitativeValue yearlyRevenue, QuantitativeValue yearsInOperation, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myNumberOfEmployees = numberOfEmployees; myYearlyRevenue = yearlyRevenue; myYearsInOperation = yearsInOperation; diff --git a/src/main/java/org/schema/BusinessEntityType.java b/src/main/java/org/schema/BusinessEntityType.java index b355c0a6..01697799 100644 --- a/src/main/java/org/schema/BusinessEntityType.java +++ b/src/main/java/org/schema/BusinessEntityType.java @@ -40,7 +40,7 @@ public static final class Builder { * Creates new {@link BusinessEntityType} instance. */ public BusinessEntityType build() { - return new BusinessEntityType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusinessEntityType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -177,6 +177,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -186,9 +190,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusinessEntityType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusinessEntityType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusinessEvent.java b/src/main/java/org/schema/BusinessEvent.java index 1e44a101..0eee02c5 100644 --- a/src/main/java/org/schema/BusinessEvent.java +++ b/src/main/java/org/schema/BusinessEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link BusinessEvent} instance. */ public BusinessEvent build() { - return new BusinessEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusinessEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusinessEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusinessEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BusinessFunction.java b/src/main/java/org/schema/BusinessFunction.java index d4dc2e2a..d825b94e 100644 --- a/src/main/java/org/schema/BusinessFunction.java +++ b/src/main/java/org/schema/BusinessFunction.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link BusinessFunction} instance. */ public BusinessFunction build() { - return new BusinessFunction(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BusinessFunction(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -180,6 +180,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -189,9 +193,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BusinessFunction(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BusinessFunction(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/BuyAction.java b/src/main/java/org/schema/BuyAction.java index 0d7ca58e..7c1fd825 100644 --- a/src/main/java/org/schema/BuyAction.java +++ b/src/main/java/org/schema/BuyAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link BuyAction} instance. */ public BuyAction build() { - return new BuyAction(seller, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new BuyAction(seller, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. @@ -282,6 +282,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Participant seller; private NumberOrString price; private PriceSpecification priceSpecification; @@ -299,10 +303,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected BuyAction(Participant seller, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected BuyAction(Participant seller, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySeller = seller; } private Participant mySeller; diff --git a/src/main/java/org/schema/CableOrSatelliteService.java b/src/main/java/org/schema/CableOrSatelliteService.java index 52dec53f..ae9d50e1 100644 --- a/src/main/java/org/schema/CableOrSatelliteService.java +++ b/src/main/java/org/schema/CableOrSatelliteService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CableOrSatelliteService} instance. */ public CableOrSatelliteService build() { - return new CableOrSatelliteService(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CableOrSatelliteService(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -209,6 +209,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private ServiceChannel availableChannel; private Thing serviceOutput; @@ -224,9 +228,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CableOrSatelliteService(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CableOrSatelliteService(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CafeOrCoffeeShop.java b/src/main/java/org/schema/CafeOrCoffeeShop.java index a62cade2..064e0790 100644 --- a/src/main/java/org/schema/CafeOrCoffeeShop.java +++ b/src/main/java/org/schema/CafeOrCoffeeShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CafeOrCoffeeShop} instance. */ public CafeOrCoffeeShop build() { - return new CafeOrCoffeeShop(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CafeOrCoffeeShop(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CafeOrCoffeeShop(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CafeOrCoffeeShop(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Campground.java b/src/main/java/org/schema/Campground.java index 242d41ec..b58aa550 100644 --- a/src/main/java/org/schema/Campground.java +++ b/src/main/java/org/schema/Campground.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Campground} instance. */ public Campground build() { - return new Campground(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Campground(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Campground(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Campground(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Canal.java b/src/main/java/org/schema/Canal.java index a4c55400..d4200a6f 100644 --- a/src/main/java/org/schema/Canal.java +++ b/src/main/java/org/schema/Canal.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Canal} instance. */ public Canal build() { - return new Canal(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Canal(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Canal(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Canal(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CancelAction.java b/src/main/java/org/schema/CancelAction.java index 76d692f6..b7ba72ae 100644 --- a/src/main/java/org/schema/CancelAction.java +++ b/src/main/java/org/schema/CancelAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CancelAction} instance. */ public CancelAction build() { - return new CancelAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CancelAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The time the object is scheduled to. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date scheduledTime; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CancelAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CancelAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Car.java b/src/main/java/org/schema/Car.java index 3a5bec1f..7a9dfee2 100644 --- a/src/main/java/org/schema/Car.java +++ b/src/main/java/org/schema/Car.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Car} instance. */ public Car build() { - return new Car(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Car(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of doors.
@@ -700,6 +700,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrQuantitativeValue numberOfDoors; private NumberOrString numberOfAirbags; private NumberOrQuantitativeValue numberOfAxles; @@ -761,9 +765,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Car(NumberOrQuantitativeValue numberOfDoors, NumberOrString numberOfAirbags, NumberOrQuantitativeValue numberOfAxles, EngineSpecification vehicleEngine, QuantitativeValue fuelConsumption, QuantitativeValue fuelEfficiency, NumberOrQuantitativeValue numberOfForwardGears, String vin, QuantitativeValue cargoVolume, String vehicleConfiguration, String knownVehicleDamages, java.util.Date dateVehicleFirstRegistered, DriveWheelConfigurationValueOrString driveWheelConfiguration, QualitativeValueOrString fuelType, String vehicleInteriorColor, String vehicleInteriorType, QuantitativeValue mileageFromOdometer, java.util.Date vehicleModelDate, NumberOrQuantitativeValue numberOfPreviousOwners, java.util.Date productionDate, java.util.Date purchaseDate, NumberOrQuantitativeValue vehicleSeatingCapacity, QualitativeValueOrString vehicleTransmission, SteeringPositionValue steeringPosition, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Car(NumberOrQuantitativeValue numberOfDoors, NumberOrString numberOfAirbags, NumberOrQuantitativeValue numberOfAxles, EngineSpecification vehicleEngine, QuantitativeValue fuelConsumption, QuantitativeValue fuelEfficiency, NumberOrQuantitativeValue numberOfForwardGears, String vin, QuantitativeValue cargoVolume, String vehicleConfiguration, String knownVehicleDamages, java.util.Date dateVehicleFirstRegistered, DriveWheelConfigurationValueOrString driveWheelConfiguration, QualitativeValueOrString fuelType, String vehicleInteriorColor, String vehicleInteriorType, QuantitativeValue mileageFromOdometer, java.util.Date vehicleModelDate, NumberOrQuantitativeValue numberOfPreviousOwners, java.util.Date productionDate, java.util.Date purchaseDate, NumberOrQuantitativeValue vehicleSeatingCapacity, QualitativeValueOrString vehicleTransmission, SteeringPositionValue steeringPosition, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CarUsageType.java b/src/main/java/org/schema/CarUsageType.java index 2a07af0a..17c3c5bf 100644 --- a/src/main/java/org/schema/CarUsageType.java +++ b/src/main/java/org/schema/CarUsageType.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link CarUsageType} instance. */ public CarUsageType build() { - return new CarUsageType(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CarUsageType(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * This ordering relation for qualitative values indicates that the subject is equal to the object. @@ -260,6 +260,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QualitativeValue equal; private QualitativeValue greater; private QualitativeValue greaterOrEqual; @@ -277,9 +281,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CarUsageType(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CarUsageType(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Casino.java b/src/main/java/org/schema/Casino.java index 766d6e0f..d0f2a914 100644 --- a/src/main/java/org/schema/Casino.java +++ b/src/main/java/org/schema/Casino.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Casino} instance. */ public Casino build() { - return new Casino(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Casino(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Casino(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Casino(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CatholicChurch.java b/src/main/java/org/schema/CatholicChurch.java index 9c576f17..b8127a7c 100644 --- a/src/main/java/org/schema/CatholicChurch.java +++ b/src/main/java/org/schema/CatholicChurch.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CatholicChurch} instance. */ public CatholicChurch build() { - return new CatholicChurch(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CatholicChurch(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CatholicChurch(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CatholicChurch(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Cemetery.java b/src/main/java/org/schema/Cemetery.java index 63224ea1..a0f83fcc 100644 --- a/src/main/java/org/schema/Cemetery.java +++ b/src/main/java/org/schema/Cemetery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Cemetery} instance. */ public Cemetery build() { - return new Cemetery(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Cemetery(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Cemetery(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Cemetery(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CheckAction.java b/src/main/java/org/schema/CheckAction.java index 482328b5..b8d0d1ff 100644 --- a/src/main/java/org/schema/CheckAction.java +++ b/src/main/java/org/schema/CheckAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CheckAction} instance. */ public CheckAction build() { - return new CheckAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CheckAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CheckAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CheckAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CheckInAction.java b/src/main/java/org/schema/CheckInAction.java index 14e46a62..c019039b 100644 --- a/src/main/java/org/schema/CheckInAction.java +++ b/src/main/java/org/schema/CheckInAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CheckInAction} instance. */ public CheckInAction build() { - return new CheckInAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CheckInAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The subject matter of the content. @@ -253,6 +253,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing about; private LanguageOrString inLanguage; private AudienceOrOrganizationOrPerson recipient; @@ -270,9 +274,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CheckInAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CheckInAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CheckOutAction.java b/src/main/java/org/schema/CheckOutAction.java index 0f7a9ce3..17231446 100644 --- a/src/main/java/org/schema/CheckOutAction.java +++ b/src/main/java/org/schema/CheckOutAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CheckOutAction} instance. */ public CheckOutAction build() { - return new CheckOutAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CheckOutAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The subject matter of the content. @@ -253,6 +253,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing about; private LanguageOrString inLanguage; private AudienceOrOrganizationOrPerson recipient; @@ -270,9 +274,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CheckOutAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CheckOutAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CheckoutPage.java b/src/main/java/org/schema/CheckoutPage.java index 10fea87a..b0bdb6fb 100644 --- a/src/main/java/org/schema/CheckoutPage.java +++ b/src/main/java/org/schema/CheckoutPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CheckoutPage} instance. */ public CheckoutPage build() { - return new CheckoutPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new CheckoutPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CheckoutPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected CheckoutPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/ChildCare.java b/src/main/java/org/schema/ChildCare.java index 57a21c0c..fcc94c9a 100644 --- a/src/main/java/org/schema/ChildCare.java +++ b/src/main/java/org/schema/ChildCare.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ChildCare} instance. */ public ChildCare build() { - return new ChildCare(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ChildCare(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ChildCare(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ChildCare(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ChildrensEvent.java b/src/main/java/org/schema/ChildrensEvent.java index 09c226d9..047da555 100644 --- a/src/main/java/org/schema/ChildrensEvent.java +++ b/src/main/java/org/schema/ChildrensEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ChildrensEvent} instance. */ public ChildrensEvent build() { - return new ChildrensEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ChildrensEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ChildrensEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ChildrensEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ChooseAction.java b/src/main/java/org/schema/ChooseAction.java index fd1150e3..ebed3194 100644 --- a/src/main/java/org/schema/ChooseAction.java +++ b/src/main/java/org/schema/ChooseAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ChooseAction} instance. */ public ChooseAction build() { - return new ChooseAction(actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ChooseAction(actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The options subject to this action. @@ -228,6 +228,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private StringOrThing actionOption; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ChooseAction(StringOrThing actionOption, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ChooseAction(StringOrThing actionOption, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myActionOption = actionOption; } private StringOrThing myActionOption; diff --git a/src/main/java/org/schema/Church.java b/src/main/java/org/schema/Church.java index 017eff2e..737d42e8 100644 --- a/src/main/java/org/schema/Church.java +++ b/src/main/java/org/schema/Church.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Church} instance. */ public Church build() { - return new Church(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Church(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Church(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Church(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/City.java b/src/main/java/org/schema/City.java index 2a4de1b9..c26f310c 100644 --- a/src/main/java/org/schema/City.java +++ b/src/main/java/org/schema/City.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link City} instance. */ public City build() { - return new City(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new City(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected City(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected City(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CityHall.java b/src/main/java/org/schema/CityHall.java index d61f037e..900cdc5d 100644 --- a/src/main/java/org/schema/CityHall.java +++ b/src/main/java/org/schema/CityHall.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CityHall} instance. */ public CityHall build() { - return new CityHall(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CityHall(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CityHall(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CityHall(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CivicStructure.java b/src/main/java/org/schema/CivicStructure.java index a40dd004..845ba5d5 100644 --- a/src/main/java/org/schema/CivicStructure.java +++ b/src/main/java/org/schema/CivicStructure.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link CivicStructure} instance. */ public CivicStructure build() { - return new CivicStructure(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CivicStructure(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -308,6 +308,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -332,10 +336,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CivicStructure(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CivicStructure(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myOpeningHours = openingHours; } private String myOpeningHours; diff --git a/src/main/java/org/schema/Clip.java b/src/main/java/org/schema/Clip.java index 27e178ff..449e6e17 100644 --- a/src/main/java/org/schema/Clip.java +++ b/src/main/java/org/schema/Clip.java @@ -72,7 +72,7 @@ public static final class Builder { * Creates new {@link Clip} instance. */ public Clip build() { - return new Clip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + return new Clip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -782,6 +782,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Position clipNumber; private Person director; @@ -860,10 +864,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Clip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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) { - super(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); + protected Clip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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(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); myActor = actor; myClipNumber = clipNumber; myDirector = director; diff --git a/src/main/java/org/schema/ClothingStore.java b/src/main/java/org/schema/ClothingStore.java index 60bdf014..925a9711 100644 --- a/src/main/java/org/schema/ClothingStore.java +++ b/src/main/java/org/schema/ClothingStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ClothingStore} instance. */ public ClothingStore build() { - return new ClothingStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ClothingStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ClothingStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ClothingStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Code.java b/src/main/java/org/schema/Code.java index 3658b1a3..ae32dcbe 100644 --- a/src/main/java/org/schema/Code.java +++ b/src/main/java/org/schema/Code.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Code} instance. */ public Code build() { - return new Code(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); + return new Code(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Code(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) { - super(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); + protected Code(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(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); } } diff --git a/src/main/java/org/schema/CollectionPage.java b/src/main/java/org/schema/CollectionPage.java index d6faf5bb..77d142f1 100644 --- a/src/main/java/org/schema/CollectionPage.java +++ b/src/main/java/org/schema/CollectionPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CollectionPage} instance. */ public CollectionPage build() { - return new CollectionPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new CollectionPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CollectionPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected CollectionPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/CollegeOrUniversity.java b/src/main/java/org/schema/CollegeOrUniversity.java index 48aefb60..f27c08ab 100644 --- a/src/main/java/org/schema/CollegeOrUniversity.java +++ b/src/main/java/org/schema/CollegeOrUniversity.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CollegeOrUniversity} instance. */ public CollegeOrUniversity build() { - return new CollegeOrUniversity(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CollegeOrUniversity(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CollegeOrUniversity(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CollegeOrUniversity(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ComedyClub.java b/src/main/java/org/schema/ComedyClub.java index 0277b0c8..72b056c3 100644 --- a/src/main/java/org/schema/ComedyClub.java +++ b/src/main/java/org/schema/ComedyClub.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ComedyClub} instance. */ public ComedyClub build() { - return new ComedyClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ComedyClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ComedyClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ComedyClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ComedyEvent.java b/src/main/java/org/schema/ComedyEvent.java index 4a3d0d53..b42a55c4 100644 --- a/src/main/java/org/schema/ComedyEvent.java +++ b/src/main/java/org/schema/ComedyEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ComedyEvent} instance. */ public ComedyEvent build() { - return new ComedyEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ComedyEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ComedyEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ComedyEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Comment.java b/src/main/java/org/schema/Comment.java index bbe2f139..87dbe5fb 100644 --- a/src/main/java/org/schema/Comment.java +++ b/src/main/java/org/schema/Comment.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link Comment} instance. */ public Comment build() { - return new Comment(upvoteCount, downvoteCount, parentItem, 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); + return new Comment(upvoteCount, downvoteCount, parentItem, 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); } /** * The number of upvotes this question, answer or comment has received from the community. @@ -721,6 +721,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer upvoteCount; private Integer downvoteCount; private Question parentItem; @@ -795,10 +799,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Comment(Integer upvoteCount, Integer downvoteCount, Question parentItem, 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) { - super(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); + protected Comment(Integer upvoteCount, Integer downvoteCount, Question parentItem, 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(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); myUpvoteCount = upvoteCount; myDownvoteCount = downvoteCount; myParentItem = parentItem; diff --git a/src/main/java/org/schema/CommentAction.java b/src/main/java/org/schema/CommentAction.java index 41efd7df..5fcacf2a 100644 --- a/src/main/java/org/schema/CommentAction.java +++ b/src/main/java/org/schema/CommentAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link CommentAction} instance. */ public CommentAction build() { - return new CommentAction(resultComment, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CommentAction(resultComment, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of result. The Comment created or sent as a result of this action. @@ -266,6 +266,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Comment resultComment; private Thing about; private LanguageOrString inLanguage; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CommentAction(Comment resultComment, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CommentAction(Comment resultComment, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myResultComment = resultComment; } private Comment myResultComment; diff --git a/src/main/java/org/schema/CommunicateAction.java b/src/main/java/org/schema/CommunicateAction.java index 74597c67..971c3afd 100644 --- a/src/main/java/org/schema/CommunicateAction.java +++ b/src/main/java/org/schema/CommunicateAction.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link CommunicateAction} instance. */ public CommunicateAction build() { - return new CommunicateAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CommunicateAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The subject matter of the content. @@ -271,6 +271,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing about; private LanguageOrString inLanguage; private AudienceOrOrganizationOrPerson recipient; @@ -288,10 +292,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CommunicateAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CommunicateAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAbout = about; myInLanguage = inLanguage; myRecipient = recipient; diff --git a/src/main/java/org/schema/ComputerStore.java b/src/main/java/org/schema/ComputerStore.java index 5c1adc07..fc628826 100644 --- a/src/main/java/org/schema/ComputerStore.java +++ b/src/main/java/org/schema/ComputerStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ComputerStore} instance. */ public ComputerStore build() { - return new ComputerStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ComputerStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ComputerStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ComputerStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ConfirmAction.java b/src/main/java/org/schema/ConfirmAction.java index 09f334c3..af63fd5c 100644 --- a/src/main/java/org/schema/ConfirmAction.java +++ b/src/main/java/org/schema/ConfirmAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ConfirmAction} instance. */ public ConfirmAction build() { - return new ConfirmAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ConfirmAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Upcoming or past event associated with this place, organization, or action. @@ -260,6 +260,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Event event; private Thing about; private LanguageOrString inLanguage; @@ -278,9 +282,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ConfirmAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ConfirmAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ConsumeAction.java b/src/main/java/org/schema/ConsumeAction.java index 0929e7a3..8a6951bb 100644 --- a/src/main/java/org/schema/ConsumeAction.java +++ b/src/main/java/org/schema/ConsumeAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ConsumeAction} instance. */ public ConsumeAction build() { - return new ConsumeAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ConsumeAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ConsumeAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ConsumeAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myExpectsAcceptanceOf = expectsAcceptanceOf; } private Offer myExpectsAcceptanceOf; diff --git a/src/main/java/org/schema/ContactPage.java b/src/main/java/org/schema/ContactPage.java index 35f7c18d..6ec6ae74 100644 --- a/src/main/java/org/schema/ContactPage.java +++ b/src/main/java/org/schema/ContactPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ContactPage} instance. */ public ContactPage build() { - return new ContactPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new ContactPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ContactPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected ContactPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/ContactPoint.java b/src/main/java/org/schema/ContactPoint.java index 4ae95a0b..231ddc7d 100644 --- a/src/main/java/org/schema/ContactPoint.java +++ b/src/main/java/org/schema/ContactPoint.java @@ -84,7 +84,7 @@ public static final class Builder { * Creates new {@link ContactPoint} instance. */ public ContactPoint build() { - return new ContactPoint(areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ContactPoint(areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The location served by this contact point (e.g., a phone number intended for Europeans vs. North Americans or only within the United States). @@ -277,6 +277,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AdministrativeArea areaServed; private Language availableLanguage; private ContactPointOption contactOption; @@ -294,10 +298,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ContactPoint(AdministrativeArea areaServed, Language availableLanguage, ContactPointOption contactOption, String contactType, String email, String faxNumber, OpeningHoursSpecification hoursAvailable, ProductOrString productSupported, String telephone, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ContactPoint(AdministrativeArea areaServed, Language availableLanguage, ContactPointOption contactOption, String contactType, String email, String faxNumber, OpeningHoursSpecification hoursAvailable, ProductOrString productSupported, String telephone, 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); myAreaServed = areaServed; myAvailableLanguage = availableLanguage; myContactOption = contactOption; diff --git a/src/main/java/org/schema/ContactPointOption.java b/src/main/java/org/schema/ContactPointOption.java index e0ad14dd..d59499ca 100644 --- a/src/main/java/org/schema/ContactPointOption.java +++ b/src/main/java/org/schema/ContactPointOption.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ContactPointOption} instance. */ public ContactPointOption build() { - return new ContactPointOption(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ContactPointOption(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ContactPointOption(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ContactPointOption(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Continent.java b/src/main/java/org/schema/Continent.java index 8f0fcd71..0a9e1002 100644 --- a/src/main/java/org/schema/Continent.java +++ b/src/main/java/org/schema/Continent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Continent} instance. */ public Continent build() { - return new Continent(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Continent(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Continent(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Continent(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ControlAction.java b/src/main/java/org/schema/ControlAction.java index 1d3976c1..982a832c 100644 --- a/src/main/java/org/schema/ControlAction.java +++ b/src/main/java/org/schema/ControlAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ControlAction} instance. */ public ControlAction build() { - return new ControlAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ControlAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ControlAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ControlAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ConvenienceStore.java b/src/main/java/org/schema/ConvenienceStore.java index afad2fdc..27d2e4aa 100644 --- a/src/main/java/org/schema/ConvenienceStore.java +++ b/src/main/java/org/schema/ConvenienceStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ConvenienceStore} instance. */ public ConvenienceStore build() { - return new ConvenienceStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ConvenienceStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ConvenienceStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ConvenienceStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CookAction.java b/src/main/java/org/schema/CookAction.java index 664b6643..ea916ca6 100644 --- a/src/main/java/org/schema/CookAction.java +++ b/src/main/java/org/schema/CookAction.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link CookAction} instance. */ public CookAction build() { - return new CookAction(foodEstablishment, foodEvent, recipe, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CookAction(foodEstablishment, foodEvent, recipe, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The specific food establishment where the action occurred. @@ -254,6 +254,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private FoodEstablishmentOrPlace foodEstablishment; private FoodEvent foodEvent; private Recipe recipe; @@ -271,10 +275,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CookAction(FoodEstablishmentOrPlace foodEstablishment, FoodEvent foodEvent, Recipe recipe, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CookAction(FoodEstablishmentOrPlace foodEstablishment, FoodEvent foodEvent, Recipe recipe, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myFoodEstablishment = foodEstablishment; myFoodEvent = foodEvent; myRecipe = recipe; diff --git a/src/main/java/org/schema/Corporation.java b/src/main/java/org/schema/Corporation.java index 17cf5d17..93eb82af 100644 --- a/src/main/java/org/schema/Corporation.java +++ b/src/main/java/org/schema/Corporation.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link Corporation} instance. */ public Corporation build() { - return new Corporation(tickerSymbol, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Corporation(tickerSymbol, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022. @@ -434,6 +434,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String tickerSymbol; private PostalAddress address; private AggregateRating aggregateRating; @@ -475,10 +479,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Corporation(String tickerSymbol, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Corporation(String tickerSymbol, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myTickerSymbol = tickerSymbol; } private String myTickerSymbol; diff --git a/src/main/java/org/schema/Country.java b/src/main/java/org/schema/Country.java index 45433caf..23d97303 100644 --- a/src/main/java/org/schema/Country.java +++ b/src/main/java/org/schema/Country.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Country} instance. */ public Country build() { - return new Country(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Country(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Country(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Country(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Courthouse.java b/src/main/java/org/schema/Courthouse.java index 0186638f..f1c8a4ef 100644 --- a/src/main/java/org/schema/Courthouse.java +++ b/src/main/java/org/schema/Courthouse.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Courthouse} instance. */ public Courthouse build() { - return new Courthouse(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Courthouse(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Courthouse(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Courthouse(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CreateAction.java b/src/main/java/org/schema/CreateAction.java index 0d9977c7..afee9a36 100644 --- a/src/main/java/org/schema/CreateAction.java +++ b/src/main/java/org/schema/CreateAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link CreateAction} instance. */ public CreateAction build() { - return new CreateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CreateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CreateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CreateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/CreativeWork.java b/src/main/java/org/schema/CreativeWork.java index 11e5c797..c9f23449 100644 --- a/src/main/java/org/schema/CreativeWork.java +++ b/src/main/java/org/schema/CreativeWork.java @@ -412,7 +412,7 @@ public static final class Builder { * Creates new {@link CreativeWork} instance. */ public CreativeWork build() { - return new CreativeWork(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); + return new CreativeWork(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); } /** * 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. @@ -1064,6 +1064,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -1135,10 +1139,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CreativeWork(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) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CreativeWork(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(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySchemaVersion = schemaVersion; myAbout = about; myAccessibilityAPI = accessibilityAPI; diff --git a/src/main/java/org/schema/CreativeWorkSeason.java b/src/main/java/org/schema/CreativeWorkSeason.java index 2710d22e..b99dbdb5 100644 --- a/src/main/java/org/schema/CreativeWorkSeason.java +++ b/src/main/java/org/schema/CreativeWorkSeason.java @@ -92,7 +92,7 @@ public static final class Builder { * Creates new {@link CreativeWorkSeason} instance. */ public CreativeWorkSeason build() { - return new CreativeWorkSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); + return new CreativeWorkSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -823,6 +823,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private java.util.Date endDate; @@ -904,10 +908,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CreativeWorkSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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) { - super(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); + protected CreativeWorkSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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(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); myActor = actor; myDirector = director; myEndDate = endDate; diff --git a/src/main/java/org/schema/CreativeWorkSeries.java b/src/main/java/org/schema/CreativeWorkSeries.java index ccc6e9ee..0a640a95 100644 --- a/src/main/java/org/schema/CreativeWorkSeries.java +++ b/src/main/java/org/schema/CreativeWorkSeries.java @@ -66,7 +66,7 @@ public static final class Builder { * Creates new {@link CreativeWorkSeries} instance. */ public CreativeWorkSeries build() { - return new CreativeWorkSeries(endDate, startDate, 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); + return new CreativeWorkSeries(endDate, startDate, 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); } /** * The end date and time of the item (in ISO 8601 date format). @@ -732,6 +732,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date endDate; private java.util.Date startDate; private String schemaVersion; @@ -805,10 +809,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CreativeWorkSeries(java.util.Date endDate, java.util.Date startDate, 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) { - super(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); + protected CreativeWorkSeries(java.util.Date endDate, java.util.Date startDate, 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(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); myEndDate = endDate; myStartDate = startDate; } diff --git a/src/main/java/org/schema/CreditCard.java b/src/main/java/org/schema/CreditCard.java index 3c57bfdd..9cca6d5b 100644 --- a/src/main/java/org/schema/CreditCard.java +++ b/src/main/java/org/schema/CreditCard.java @@ -41,7 +41,7 @@ public static final class Builder { * Creates new {@link CreditCard} instance. */ public CreditCard build() { - return new CreditCard(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new CreditCard(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -178,6 +178,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -187,9 +191,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected CreditCard(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected CreditCard(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Crematorium.java b/src/main/java/org/schema/Crematorium.java index 5dc02860..1e93d667 100644 --- a/src/main/java/org/schema/Crematorium.java +++ b/src/main/java/org/schema/Crematorium.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Crematorium} instance. */ public Crematorium build() { - return new Crematorium(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Crematorium(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Crematorium(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Crematorium(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DDxElement.java b/src/main/java/org/schema/DDxElement.java index b4e7707c..75c15767 100644 --- a/src/main/java/org/schema/DDxElement.java +++ b/src/main/java/org/schema/DDxElement.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link DDxElement} instance. */ public DDxElement build() { - return new DDxElement(diagnosis, distinguishingSign, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DDxElement(diagnosis, distinguishingSign, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * One or more alternative conditions considered in the differential diagnosis process. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCondition diagnosis; private MedicalSignOrSymptom distinguishingSign; private MedicalCode code; @@ -236,10 +240,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DDxElement(MedicalCondition diagnosis, MedicalSignOrSymptom distinguishingSign, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DDxElement(MedicalCondition diagnosis, MedicalSignOrSymptom distinguishingSign, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDiagnosis = diagnosis; myDistinguishingSign = distinguishingSign; } diff --git a/src/main/java/org/schema/DanceEvent.java b/src/main/java/org/schema/DanceEvent.java index 7f51b351..55c5cf8b 100644 --- a/src/main/java/org/schema/DanceEvent.java +++ b/src/main/java/org/schema/DanceEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DanceEvent} instance. */ public DanceEvent build() { - return new DanceEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DanceEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DanceEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DanceEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DanceGroup.java b/src/main/java/org/schema/DanceGroup.java index 29506af3..9c6cbd4e 100644 --- a/src/main/java/org/schema/DanceGroup.java +++ b/src/main/java/org/schema/DanceGroup.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DanceGroup} instance. */ public DanceGroup build() { - return new DanceGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DanceGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -420,6 +420,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -460,9 +464,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DanceGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DanceGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DataCatalog.java b/src/main/java/org/schema/DataCatalog.java index 25c151d6..72e270b1 100644 --- a/src/main/java/org/schema/DataCatalog.java +++ b/src/main/java/org/schema/DataCatalog.java @@ -38,7 +38,7 @@ public static final class Builder { * Creates new {@link DataCatalog} instance. */ public DataCatalog build() { - return new DataCatalog(dataset, 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); + return new DataCatalog(dataset, 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); } /** * A dataset contained in a catalog. @@ -697,6 +697,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Dataset dataset; private String schemaVersion; private Thing about; @@ -769,10 +773,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DataCatalog(Dataset dataset, 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) { - super(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); + protected DataCatalog(Dataset dataset, 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(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); myDataset = dataset; } private Dataset myDataset; diff --git a/src/main/java/org/schema/DataDownload.java b/src/main/java/org/schema/DataDownload.java index 29632f6e..0356279f 100644 --- a/src/main/java/org/schema/DataDownload.java +++ b/src/main/java/org/schema/DataDownload.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link DataDownload} instance. */ public DataDownload build() { - return new DataDownload(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new DataDownload(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * A NewsArticle associated with the Media Object. @@ -814,6 +814,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NewsArticle associatedArticle; private String bitrate; private String contentSize; @@ -901,9 +905,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DataDownload(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + protected DataDownload(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } } diff --git a/src/main/java/org/schema/Dataset.java b/src/main/java/org/schema/Dataset.java index 53b2bf13..c9d281cd 100644 --- a/src/main/java/org/schema/Dataset.java +++ b/src/main/java/org/schema/Dataset.java @@ -57,7 +57,7 @@ public static final class Builder { * Creates new {@link Dataset} instance. */ public Dataset build() { - return new Dataset(includedDataCatalog, distribution, spatial, datasetTimeInterval, 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); + return new Dataset(includedDataCatalog, distribution, spatial, datasetTimeInterval, 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); } /** * A data catalog contained in the dataset. @@ -737,6 +737,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DataCatalog includedDataCatalog; private DataDownload distribution; private Place spatial; @@ -812,10 +816,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Dataset(DataCatalog includedDataCatalog, DataDownload distribution, Place spatial, java.util.Date datasetTimeInterval, 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) { - super(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); + protected Dataset(DataCatalog includedDataCatalog, DataDownload distribution, Place spatial, java.util.Date datasetTimeInterval, 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(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); myIncludedDataCatalog = includedDataCatalog; myDistribution = distribution; mySpatial = spatial; diff --git a/src/main/java/org/schema/DatedMoneySpecification.java b/src/main/java/org/schema/DatedMoneySpecification.java index 6e3df95a..765265ed 100644 --- a/src/main/java/org/schema/DatedMoneySpecification.java +++ b/src/main/java/org/schema/DatedMoneySpecification.java @@ -56,7 +56,7 @@ public static final class Builder { * Creates new {@link DatedMoneySpecification} instance. */ public DatedMoneySpecification build() { - return new DatedMoneySpecification(amount, currency, startDate, endDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DatedMoneySpecification(amount, currency, startDate, endDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The amount of money. @@ -205,6 +205,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number amount; private String currency; private java.util.Date startDate; @@ -217,10 +221,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DatedMoneySpecification(Number amount, String currency, java.util.Date startDate, java.util.Date endDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DatedMoneySpecification(Number amount, String currency, java.util.Date startDate, java.util.Date endDate, 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); myAmount = amount; myCurrency = currency; myStartDate = startDate; diff --git a/src/main/java/org/schema/DayOfWeek.java b/src/main/java/org/schema/DayOfWeek.java index f6bb3ec6..efd2be25 100644 --- a/src/main/java/org/schema/DayOfWeek.java +++ b/src/main/java/org/schema/DayOfWeek.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link DayOfWeek} instance. */ public DayOfWeek build() { - return new DayOfWeek(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DayOfWeek(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -180,6 +180,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -189,9 +193,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DayOfWeek(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DayOfWeek(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DaySpa.java b/src/main/java/org/schema/DaySpa.java index 4d9533df..2d54d1fc 100644 --- a/src/main/java/org/schema/DaySpa.java +++ b/src/main/java/org/schema/DaySpa.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DaySpa} instance. */ public DaySpa build() { - return new DaySpa(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DaySpa(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DaySpa(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DaySpa(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DeactivateAction.java b/src/main/java/org/schema/DeactivateAction.java index d35f1580..71241ec6 100644 --- a/src/main/java/org/schema/DeactivateAction.java +++ b/src/main/java/org/schema/DeactivateAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DeactivateAction} instance. */ public DeactivateAction build() { - return new DeactivateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DeactivateAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DeactivateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DeactivateAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DefenceEstablishment.java b/src/main/java/org/schema/DefenceEstablishment.java index 8576b91e..949f6ae2 100644 --- a/src/main/java/org/schema/DefenceEstablishment.java +++ b/src/main/java/org/schema/DefenceEstablishment.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DefenceEstablishment} instance. */ public DefenceEstablishment build() { - return new DefenceEstablishment(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DefenceEstablishment(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DefenceEstablishment(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DefenceEstablishment(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DeleteAction.java b/src/main/java/org/schema/DeleteAction.java index e161a9ac..693e87fd 100644 --- a/src/main/java/org/schema/DeleteAction.java +++ b/src/main/java/org/schema/DeleteAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DeleteAction} instance. */ public DeleteAction build() { - return new DeleteAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DeleteAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The collection target of the action. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing targetCollection; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DeleteAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DeleteAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DeliveryChargeSpecification.java b/src/main/java/org/schema/DeliveryChargeSpecification.java index 40891ffd..194916a2 100644 --- a/src/main/java/org/schema/DeliveryChargeSpecification.java +++ b/src/main/java/org/schema/DeliveryChargeSpecification.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link DeliveryChargeSpecification} instance. */ public DeliveryChargeSpecification build() { - return new DeliveryChargeSpecification(appliesToDeliveryMethod, eligibleRegion, ineligibleRegion, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DeliveryChargeSpecification(appliesToDeliveryMethod, eligibleRegion, ineligibleRegion, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The delivery method(s) to which the delivery charge or payment charge specification applies. @@ -337,6 +337,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod appliesToDeliveryMethod; private GeoShapeOrPlaceOrString eligibleRegion; private GeoShapeOrPlaceOrString ineligibleRegion; @@ -357,10 +361,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DeliveryChargeSpecification(DeliveryMethod appliesToDeliveryMethod, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DeliveryChargeSpecification(DeliveryMethod appliesToDeliveryMethod, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAppliesToDeliveryMethod = appliesToDeliveryMethod; myEligibleRegion = eligibleRegion; myIneligibleRegion = ineligibleRegion; diff --git a/src/main/java/org/schema/DeliveryEvent.java b/src/main/java/org/schema/DeliveryEvent.java index 0307328d..e4775843 100644 --- a/src/main/java/org/schema/DeliveryEvent.java +++ b/src/main/java/org/schema/DeliveryEvent.java @@ -56,7 +56,7 @@ public static final class Builder { * Creates new {@link DeliveryEvent} instance. */ public DeliveryEvent build() { - return new DeliveryEvent(accessCode, availableFrom, availableThrough, hasDeliveryMethod, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DeliveryEvent(accessCode, availableFrom, availableThrough, hasDeliveryMethod, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Password, PIN, or access code needed for delivery (e.g. from a locker). @@ -367,6 +367,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String accessCode; private java.util.Date availableFrom; private java.util.Date availableThrough; @@ -397,10 +401,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DeliveryEvent(String accessCode, java.util.Date availableFrom, java.util.Date availableThrough, DeliveryMethod hasDeliveryMethod, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DeliveryEvent(String accessCode, java.util.Date availableFrom, java.util.Date availableThrough, DeliveryMethod hasDeliveryMethod, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAccessCode = accessCode; myAvailableFrom = availableFrom; myAvailableThrough = availableThrough; diff --git a/src/main/java/org/schema/DeliveryMethod.java b/src/main/java/org/schema/DeliveryMethod.java index 617b47d6..ecb7d6c1 100644 --- a/src/main/java/org/schema/DeliveryMethod.java +++ b/src/main/java/org/schema/DeliveryMethod.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link DeliveryMethod} instance. */ public DeliveryMethod build() { - return new DeliveryMethod(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DeliveryMethod(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -180,6 +180,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -189,9 +193,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DeliveryMethod(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DeliveryMethod(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Demand.java b/src/main/java/org/schema/Demand.java index 84c30f58..9d104e56 100644 --- a/src/main/java/org/schema/Demand.java +++ b/src/main/java/org/schema/Demand.java @@ -215,7 +215,7 @@ public static final class Builder { * Creates new {@link Demand} instance. */ public Demand build() { - return new Demand(acceptedPaymentMethod, advanceBookingRequirement, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, priceSpecification, seller, sku, validFrom, validThrough, warranty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Demand(acceptedPaymentMethod, advanceBookingRequirement, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, priceSpecification, seller, sku, validFrom, validThrough, warranty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The payment method(s) accepted by seller for this offer. @@ -580,6 +580,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PaymentMethod acceptedPaymentMethod; private QuantitativeValue advanceBookingRequirement; private ItemAvailability availability; @@ -618,10 +622,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Demand(PaymentMethod acceptedPaymentMethod, QuantitativeValue advanceBookingRequirement, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, PriceSpecification priceSpecification, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Demand(PaymentMethod acceptedPaymentMethod, QuantitativeValue advanceBookingRequirement, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, PriceSpecification priceSpecification, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, 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); myAcceptedPaymentMethod = acceptedPaymentMethod; myAdvanceBookingRequirement = advanceBookingRequirement; myAvailability = availability; diff --git a/src/main/java/org/schema/Dentist.java b/src/main/java/org/schema/Dentist.java index f960e54c..8876319e 100644 --- a/src/main/java/org/schema/Dentist.java +++ b/src/main/java/org/schema/Dentist.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Dentist} instance. */ public Dentist build() { - return new Dentist(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Dentist(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Dentist(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Dentist(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DepartAction.java b/src/main/java/org/schema/DepartAction.java index 0c4f396f..35f84b81 100644 --- a/src/main/java/org/schema/DepartAction.java +++ b/src/main/java/org/schema/DepartAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DepartAction} instance. */ public DepartAction build() { - return new DepartAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DepartAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DepartAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DepartAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DepartmentStore.java b/src/main/java/org/schema/DepartmentStore.java index fe39f723..2846ab86 100644 --- a/src/main/java/org/schema/DepartmentStore.java +++ b/src/main/java/org/schema/DepartmentStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DepartmentStore} instance. */ public DepartmentStore build() { - return new DepartmentStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DepartmentStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DepartmentStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DepartmentStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DiagnosticLab.java b/src/main/java/org/schema/DiagnosticLab.java index ceba2b40..084034a8 100644 --- a/src/main/java/org/schema/DiagnosticLab.java +++ b/src/main/java/org/schema/DiagnosticLab.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link DiagnosticLab} instance. */ public DiagnosticLab build() { - return new DiagnosticLab(availableTest, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DiagnosticLab(availableTest, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A diagnostic test or procedure offered by this lab. @@ -343,6 +343,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalTest availableTest; private Organization parentOrganization; private String currenciesAccepted; @@ -372,10 +376,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DiagnosticLab(MedicalTest availableTest, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DiagnosticLab(MedicalTest availableTest, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAvailableTest = availableTest; } private MedicalTest myAvailableTest; diff --git a/src/main/java/org/schema/DiagnosticProcedure.java b/src/main/java/org/schema/DiagnosticProcedure.java index f816e531..7a5a2521 100644 --- a/src/main/java/org/schema/DiagnosticProcedure.java +++ b/src/main/java/org/schema/DiagnosticProcedure.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link DiagnosticProcedure} instance. */ public DiagnosticProcedure build() { - return new DiagnosticProcedure(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DiagnosticProcedure(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Drugs that affect the test's results. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Drug affectedBy; private String normalRange; private MedicalSign signDetected; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DiagnosticProcedure(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DiagnosticProcedure(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Diet.java b/src/main/java/org/schema/Diet.java index 14c1b51b..fab29173 100644 --- a/src/main/java/org/schema/Diet.java +++ b/src/main/java/org/schema/Diet.java @@ -73,7 +73,7 @@ public static final class Builder { * Creates new {@link Diet} instance. */ public Diet build() { - return new Diet(dietFeatures, endorsers, expertConsiderations, overview, physiologicalBenefits, proprietaryName, risks, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Diet(dietFeatures, endorsers, expertConsiderations, overview, physiologicalBenefits, proprietaryName, risks, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body's approved dietary guidelines. @@ -329,6 +329,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String dietFeatures; private OrganizationOrPerson endorsers; private String expertConsiderations; @@ -355,10 +359,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Diet(String dietFeatures, OrganizationOrPerson endorsers, String expertConsiderations, String overview, String physiologicalBenefits, String proprietaryName, String risks, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Diet(String dietFeatures, OrganizationOrPerson endorsers, String expertConsiderations, String overview, String physiologicalBenefits, String proprietaryName, String risks, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDietFeatures = dietFeatures; myEndorsers = endorsers; myExpertConsiderations = expertConsiderations; diff --git a/src/main/java/org/schema/DietarySupplement.java b/src/main/java/org/schema/DietarySupplement.java index e2838c80..02ac92cd 100644 --- a/src/main/java/org/schema/DietarySupplement.java +++ b/src/main/java/org/schema/DietarySupplement.java @@ -103,7 +103,7 @@ public static final class Builder { * Creates new {@link DietarySupplement} instance. */ public DietarySupplement build() { - return new DietarySupplement(activeIngredient, background, dosageForm, isProprietary, legalStatus, manufacturer, maximumIntake, mechanismOfAction, nonProprietaryName, recommendedIntake, safetyConsideration, targetPopulation, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DietarySupplement(activeIngredient, background, dosageForm, isProprietary, legalStatus, manufacturer, maximumIntake, mechanismOfAction, nonProprietaryName, recommendedIntake, safetyConsideration, targetPopulation, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An active ingredient, typically chemical compounds and/or biologic substances. @@ -385,6 +385,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String activeIngredient; private String background; private String dosageForm; @@ -416,10 +420,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DietarySupplement(String activeIngredient, String background, String dosageForm, Boolean isProprietary, DrugLegalStatus legalStatus, Organization manufacturer, MaximumDoseSchedule maximumIntake, String mechanismOfAction, String nonProprietaryName, RecommendedDoseSchedule recommendedIntake, String safetyConsideration, String targetPopulation, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DietarySupplement(String activeIngredient, String background, String dosageForm, Boolean isProprietary, DrugLegalStatus legalStatus, Organization manufacturer, MaximumDoseSchedule maximumIntake, String mechanismOfAction, String nonProprietaryName, RecommendedDoseSchedule recommendedIntake, String safetyConsideration, String targetPopulation, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myActiveIngredient = activeIngredient; myBackground = background; myDosageForm = dosageForm; diff --git a/src/main/java/org/schema/DisagreeAction.java b/src/main/java/org/schema/DisagreeAction.java index 0ba34114..49026126 100644 --- a/src/main/java/org/schema/DisagreeAction.java +++ b/src/main/java/org/schema/DisagreeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DisagreeAction} instance. */ public DisagreeAction build() { - return new DisagreeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DisagreeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DisagreeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DisagreeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DiscoverAction.java b/src/main/java/org/schema/DiscoverAction.java index 57e58763..c9b7dc7a 100644 --- a/src/main/java/org/schema/DiscoverAction.java +++ b/src/main/java/org/schema/DiscoverAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DiscoverAction} instance. */ public DiscoverAction build() { - return new DiscoverAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DiscoverAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DiscoverAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DiscoverAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DislikeAction.java b/src/main/java/org/schema/DislikeAction.java index 50806314..b1c812a5 100644 --- a/src/main/java/org/schema/DislikeAction.java +++ b/src/main/java/org/schema/DislikeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DislikeAction} instance. */ public DislikeAction build() { - return new DislikeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DislikeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DislikeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DislikeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Distance.java b/src/main/java/org/schema/Distance.java index 457aebdd..1edca57c 100644 --- a/src/main/java/org/schema/Distance.java +++ b/src/main/java/org/schema/Distance.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Distance} instance. */ public Distance build() { - return new Distance(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Distance(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Distance(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Distance(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/DonateAction.java b/src/main/java/org/schema/DonateAction.java index 520d2a44..2459c949 100644 --- a/src/main/java/org/schema/DonateAction.java +++ b/src/main/java/org/schema/DonateAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link DonateAction} instance. */ public DonateAction build() { - return new DonateAction(recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DonateAction(recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant who is at the receiving end of the action. @@ -299,6 +299,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AudienceOrOrganizationOrPerson recipient; private NumberOrString price; private PriceSpecification priceSpecification; @@ -316,10 +320,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DonateAction(AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DonateAction(AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecipient = recipient; } private AudienceOrOrganizationOrPerson myRecipient; diff --git a/src/main/java/org/schema/DoseSchedule.java b/src/main/java/org/schema/DoseSchedule.java index 0824d92d..04d2be6c 100644 --- a/src/main/java/org/schema/DoseSchedule.java +++ b/src/main/java/org/schema/DoseSchedule.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link DoseSchedule} instance. */ public DoseSchedule build() { - return new DoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unit of the dose, e.g. 'mg'. @@ -245,6 +245,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String doseUnit; private Number doseValue; private String frequency; @@ -263,10 +267,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDoseUnit = doseUnit; myDoseValue = doseValue; myFrequency = frequency; diff --git a/src/main/java/org/schema/DownloadAction.java b/src/main/java/org/schema/DownloadAction.java index 7104b6d9..15c9c052 100644 --- a/src/main/java/org/schema/DownloadAction.java +++ b/src/main/java/org/schema/DownloadAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DownloadAction} instance. */ public DownloadAction build() { - return new DownloadAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DownloadAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DownloadAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DownloadAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DrawAction.java b/src/main/java/org/schema/DrawAction.java index 9f20df79..48196f07 100644 --- a/src/main/java/org/schema/DrawAction.java +++ b/src/main/java/org/schema/DrawAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DrawAction} instance. */ public DrawAction build() { - return new DrawAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrawAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrawAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrawAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DrinkAction.java b/src/main/java/org/schema/DrinkAction.java index e45d785c..c900c652 100644 --- a/src/main/java/org/schema/DrinkAction.java +++ b/src/main/java/org/schema/DrinkAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DrinkAction} instance. */ public DrinkAction build() { - return new DrinkAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrinkAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrinkAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrinkAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DriveWheelConfigurationValue.java b/src/main/java/org/schema/DriveWheelConfigurationValue.java index 40fae559..c9688788 100644 --- a/src/main/java/org/schema/DriveWheelConfigurationValue.java +++ b/src/main/java/org/schema/DriveWheelConfigurationValue.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link DriveWheelConfigurationValue} instance. */ public DriveWheelConfigurationValue build() { - return new DriveWheelConfigurationValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DriveWheelConfigurationValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * This ordering relation for qualitative values indicates that the subject is equal to the object. @@ -260,6 +260,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QualitativeValue equal; private QualitativeValue greater; private QualitativeValue greaterOrEqual; @@ -277,9 +281,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DriveWheelConfigurationValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DriveWheelConfigurationValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Drug.java b/src/main/java/org/schema/Drug.java index 8cb14ba6..431a55fe 100644 --- a/src/main/java/org/schema/Drug.java +++ b/src/main/java/org/schema/Drug.java @@ -187,7 +187,7 @@ public static final class Builder { * Creates new {@link Drug} instance. */ public Drug build() { - return new Drug(activeIngredient, administrationRoute, alcoholWarning, availableStrength, breastfeedingWarning, clinicalPharmacology, cost, dosageForm, doseSchedule, drugClass, foodWarning, interactingDrug, isAvailableGenerically, isProprietary, labelDetails, legalStatus, manufacturer, mechanismOfAction, nonProprietaryName, overdosage, pregnancyCategory, pregnancyWarning, prescribingInfo, prescriptionStatus, relatedDrug, warning, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Drug(activeIngredient, administrationRoute, alcoholWarning, availableStrength, breastfeedingWarning, clinicalPharmacology, cost, dosageForm, doseSchedule, drugClass, foodWarning, interactingDrug, isAvailableGenerically, isProprietary, labelDetails, legalStatus, manufacturer, mechanismOfAction, nonProprietaryName, overdosage, pregnancyCategory, pregnancyWarning, prescribingInfo, prescriptionStatus, relatedDrug, warning, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An active ingredient, typically chemical compounds and/or biologic substances. @@ -567,6 +567,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String activeIngredient; private String administrationRoute; private String alcoholWarning; @@ -612,10 +616,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Drug(String activeIngredient, String administrationRoute, String alcoholWarning, DrugStrength availableStrength, String breastfeedingWarning, String clinicalPharmacology, DrugCost cost, String dosageForm, DoseSchedule doseSchedule, DrugClass drugClass, String foodWarning, Drug interactingDrug, Boolean isAvailableGenerically, Boolean isProprietary, String labelDetails, DrugLegalStatus legalStatus, Organization manufacturer, String mechanismOfAction, String nonProprietaryName, String overdosage, DrugPregnancyCategory pregnancyCategory, String pregnancyWarning, String prescribingInfo, DrugPrescriptionStatus prescriptionStatus, Drug relatedDrug, String warning, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Drug(String activeIngredient, String administrationRoute, String alcoholWarning, DrugStrength availableStrength, String breastfeedingWarning, String clinicalPharmacology, DrugCost cost, String dosageForm, DoseSchedule doseSchedule, DrugClass drugClass, String foodWarning, Drug interactingDrug, Boolean isAvailableGenerically, Boolean isProprietary, String labelDetails, DrugLegalStatus legalStatus, Organization manufacturer, String mechanismOfAction, String nonProprietaryName, String overdosage, DrugPregnancyCategory pregnancyCategory, String pregnancyWarning, String prescribingInfo, DrugPrescriptionStatus prescriptionStatus, Drug relatedDrug, String warning, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myActiveIngredient = activeIngredient; myAdministrationRoute = administrationRoute; myAlcoholWarning = alcoholWarning; diff --git a/src/main/java/org/schema/DrugClass.java b/src/main/java/org/schema/DrugClass.java index 84a773ca..9fa791e6 100644 --- a/src/main/java/org/schema/DrugClass.java +++ b/src/main/java/org/schema/DrugClass.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link DrugClass} instance. */ public DrugClass build() { - return new DrugClass(drug, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugClass(drug, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A drug in this drug class. @@ -242,6 +242,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Drug drug; private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; @@ -262,10 +266,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugClass(Drug drug, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugClass(Drug drug, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDrug = drug; } private Drug myDrug; diff --git a/src/main/java/org/schema/DrugCost.java b/src/main/java/org/schema/DrugCost.java index f70766b3..c9f4efba 100644 --- a/src/main/java/org/schema/DrugCost.java +++ b/src/main/java/org/schema/DrugCost.java @@ -66,7 +66,7 @@ public static final class Builder { * Creates new {@link DrugCost} instance. */ public DrugCost build() { - return new DrugCost(applicableLocation, costCategory, costCurrency, costOrigin, costPerUnit, drugUnit, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugCost(applicableLocation, costCategory, costCurrency, costOrigin, costPerUnit, drugUnit, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The location in which the status applies. @@ -280,6 +280,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AdministrativeArea applicableLocation; private DrugCostCategory costCategory; private String costCurrency; @@ -300,10 +304,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugCost(AdministrativeArea applicableLocation, DrugCostCategory costCategory, String costCurrency, String costOrigin, NumberOrString costPerUnit, String drugUnit, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugCost(AdministrativeArea applicableLocation, DrugCostCategory costCategory, String costCurrency, String costOrigin, NumberOrString costPerUnit, String drugUnit, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myApplicableLocation = applicableLocation; myCostCategory = costCategory; myCostCurrency = costCurrency; diff --git a/src/main/java/org/schema/DrugCostCategory.java b/src/main/java/org/schema/DrugCostCategory.java index 257040a7..3b38839c 100644 --- a/src/main/java/org/schema/DrugCostCategory.java +++ b/src/main/java/org/schema/DrugCostCategory.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DrugCostCategory} instance. */ public DrugCostCategory build() { - return new DrugCostCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugCostCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugCostCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugCostCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DrugLegalStatus.java b/src/main/java/org/schema/DrugLegalStatus.java index ed0425f3..bffc65fc 100644 --- a/src/main/java/org/schema/DrugLegalStatus.java +++ b/src/main/java/org/schema/DrugLegalStatus.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link DrugLegalStatus} instance. */ public DrugLegalStatus build() { - return new DrugLegalStatus(applicableLocation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugLegalStatus(applicableLocation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The location in which the status applies. @@ -207,6 +207,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AdministrativeArea applicableLocation; private MedicalCode code; private MedicalGuideline guideline; @@ -222,10 +226,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugLegalStatus(AdministrativeArea applicableLocation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugLegalStatus(AdministrativeArea applicableLocation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myApplicableLocation = applicableLocation; } private AdministrativeArea myApplicableLocation; diff --git a/src/main/java/org/schema/DrugPregnancyCategory.java b/src/main/java/org/schema/DrugPregnancyCategory.java index 042b6ee8..069b8dc8 100644 --- a/src/main/java/org/schema/DrugPregnancyCategory.java +++ b/src/main/java/org/schema/DrugPregnancyCategory.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DrugPregnancyCategory} instance. */ public DrugPregnancyCategory build() { - return new DrugPregnancyCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugPregnancyCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugPregnancyCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugPregnancyCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DrugPrescriptionStatus.java b/src/main/java/org/schema/DrugPrescriptionStatus.java index f9cb2e06..bb710371 100644 --- a/src/main/java/org/schema/DrugPrescriptionStatus.java +++ b/src/main/java/org/schema/DrugPrescriptionStatus.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DrugPrescriptionStatus} instance. */ public DrugPrescriptionStatus build() { - return new DrugPrescriptionStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugPrescriptionStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugPrescriptionStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugPrescriptionStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/DrugStrength.java b/src/main/java/org/schema/DrugStrength.java index f0b87bb1..9e38fe62 100644 --- a/src/main/java/org/schema/DrugStrength.java +++ b/src/main/java/org/schema/DrugStrength.java @@ -55,7 +55,7 @@ public static final class Builder { * Creates new {@link DrugStrength} instance. */ public DrugStrength build() { - return new DrugStrength(activeIngredient, availableIn, strengthUnit, strengthValue, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DrugStrength(activeIngredient, availableIn, strengthUnit, strengthValue, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An active ingredient, typically chemical compounds and/or biologic substances. @@ -246,6 +246,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String activeIngredient; private AdministrativeArea availableIn; private String strengthUnit; @@ -264,10 +268,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DrugStrength(String activeIngredient, AdministrativeArea availableIn, String strengthUnit, Number strengthValue, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DrugStrength(String activeIngredient, AdministrativeArea availableIn, String strengthUnit, Number strengthValue, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myActiveIngredient = activeIngredient; myAvailableIn = availableIn; myStrengthUnit = strengthUnit; diff --git a/src/main/java/org/schema/DryCleaningOrLaundry.java b/src/main/java/org/schema/DryCleaningOrLaundry.java index 64280786..21b32787 100644 --- a/src/main/java/org/schema/DryCleaningOrLaundry.java +++ b/src/main/java/org/schema/DryCleaningOrLaundry.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link DryCleaningOrLaundry} instance. */ public DryCleaningOrLaundry build() { - return new DryCleaningOrLaundry(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new DryCleaningOrLaundry(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected DryCleaningOrLaundry(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected DryCleaningOrLaundry(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Duration.java b/src/main/java/org/schema/Duration.java index c4160ef3..22e82588 100644 --- a/src/main/java/org/schema/Duration.java +++ b/src/main/java/org/schema/Duration.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Duration} instance. */ public Duration build() { - return new Duration(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Duration(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Duration(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Duration(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/EatAction.java b/src/main/java/org/schema/EatAction.java index 95de6d61..b7a7f7ca 100644 --- a/src/main/java/org/schema/EatAction.java +++ b/src/main/java/org/schema/EatAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EatAction} instance. */ public EatAction build() { - return new EatAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EatAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EatAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EatAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EducationEvent.java b/src/main/java/org/schema/EducationEvent.java index 2e34dec9..ea1b64aa 100644 --- a/src/main/java/org/schema/EducationEvent.java +++ b/src/main/java/org/schema/EducationEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EducationEvent} instance. */ public EducationEvent build() { - return new EducationEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EducationEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EducationEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EducationEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EducationalAudience.java b/src/main/java/org/schema/EducationalAudience.java index e63825b1..abf25f24 100644 --- a/src/main/java/org/schema/EducationalAudience.java +++ b/src/main/java/org/schema/EducationalAudience.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link EducationalAudience} instance. */ public EducationalAudience build() { - return new EducationalAudience(educationalRole, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EducationalAudience(educationalRole, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An educationalRole of an EducationalAudience. @@ -179,6 +179,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String educationalRole; private String audienceType; private AdministrativeArea geographicArea; @@ -190,10 +194,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EducationalAudience(String educationalRole, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EducationalAudience(String educationalRole, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEducationalRole = educationalRole; } private String myEducationalRole; diff --git a/src/main/java/org/schema/EducationalOrganization.java b/src/main/java/org/schema/EducationalOrganization.java index d2e3ad8e..f2f5a6a1 100644 --- a/src/main/java/org/schema/EducationalOrganization.java +++ b/src/main/java/org/schema/EducationalOrganization.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link EducationalOrganization} instance. */ public EducationalOrganization build() { - return new EducationalOrganization(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EducationalOrganization(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -433,6 +433,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -474,10 +478,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EducationalOrganization(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EducationalOrganization(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAlumni = alumni; } private Person myAlumni; diff --git a/src/main/java/org/schema/Electrician.java b/src/main/java/org/schema/Electrician.java index 79d7c02f..b985fb19 100644 --- a/src/main/java/org/schema/Electrician.java +++ b/src/main/java/org/schema/Electrician.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Electrician} instance. */ public Electrician build() { - return new Electrician(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Electrician(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Electrician(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Electrician(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ElectronicsStore.java b/src/main/java/org/schema/ElectronicsStore.java index 460e1520..12c3089e 100644 --- a/src/main/java/org/schema/ElectronicsStore.java +++ b/src/main/java/org/schema/ElectronicsStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ElectronicsStore} instance. */ public ElectronicsStore build() { - return new ElectronicsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ElectronicsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ElectronicsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ElectronicsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ElementarySchool.java b/src/main/java/org/schema/ElementarySchool.java index 82e69be2..b20073ef 100644 --- a/src/main/java/org/schema/ElementarySchool.java +++ b/src/main/java/org/schema/ElementarySchool.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ElementarySchool} instance. */ public ElementarySchool build() { - return new ElementarySchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ElementarySchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ElementarySchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ElementarySchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EmailMessage.java b/src/main/java/org/schema/EmailMessage.java index f2ea5011..1273cb61 100644 --- a/src/main/java/org/schema/EmailMessage.java +++ b/src/main/java/org/schema/EmailMessage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EmailMessage} instance. */ public EmailMessage build() { - return new EmailMessage(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); + return new EmailMessage(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EmailMessage(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) { - super(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); + protected EmailMessage(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(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); } } diff --git a/src/main/java/org/schema/Embassy.java b/src/main/java/org/schema/Embassy.java index 9b5738f5..b1882db0 100644 --- a/src/main/java/org/schema/Embassy.java +++ b/src/main/java/org/schema/Embassy.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Embassy} instance. */ public Embassy build() { - return new Embassy(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Embassy(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Embassy(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Embassy(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EmergencyService.java b/src/main/java/org/schema/EmergencyService.java index b81b7299..81a6e796 100644 --- a/src/main/java/org/schema/EmergencyService.java +++ b/src/main/java/org/schema/EmergencyService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EmergencyService} instance. */ public EmergencyService build() { - return new EmergencyService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EmergencyService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EmergencyService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EmergencyService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EmployeeRole.java b/src/main/java/org/schema/EmployeeRole.java index e0390c79..9d29e957 100644 --- a/src/main/java/org/schema/EmployeeRole.java +++ b/src/main/java/org/schema/EmployeeRole.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link EmployeeRole} instance. */ public EmployeeRole build() { - return new EmployeeRole(salaryCurrency, numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EmployeeRole(salaryCurrency, numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The currency (coded using ISO 4217, http://en.wikipedia.org/wiki/ISO_4217 ) used for the main salary information in this job posting or for this employee. @@ -185,6 +185,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String salaryCurrency; private Number numberedPosition; private java.util.Date startDate; @@ -197,10 +201,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EmployeeRole(String salaryCurrency, Number numberedPosition, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EmployeeRole(String salaryCurrency, Number numberedPosition, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySalaryCurrency = salaryCurrency; } private String mySalaryCurrency; diff --git a/src/main/java/org/schema/EmploymentAgency.java b/src/main/java/org/schema/EmploymentAgency.java index d0d46c13..7cf38692 100644 --- a/src/main/java/org/schema/EmploymentAgency.java +++ b/src/main/java/org/schema/EmploymentAgency.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EmploymentAgency} instance. */ public EmploymentAgency build() { - return new EmploymentAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EmploymentAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EmploymentAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EmploymentAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EndorseAction.java b/src/main/java/org/schema/EndorseAction.java index cba64247..08c9d52b 100644 --- a/src/main/java/org/schema/EndorseAction.java +++ b/src/main/java/org/schema/EndorseAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link EndorseAction} instance. */ public EndorseAction build() { - return new EndorseAction(endorsee, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EndorseAction(endorsee, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The person/organization being supported. @@ -228,6 +228,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson endorsee; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EndorseAction(OrganizationOrPerson endorsee, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EndorseAction(OrganizationOrPerson endorsee, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEndorsee = endorsee; } private OrganizationOrPerson myEndorsee; diff --git a/src/main/java/org/schema/Energy.java b/src/main/java/org/schema/Energy.java index 8e8769ed..d37c584e 100644 --- a/src/main/java/org/schema/Energy.java +++ b/src/main/java/org/schema/Energy.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Energy} instance. */ public Energy build() { - return new Energy(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Energy(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Energy(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Energy(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/EngineSpecification.java b/src/main/java/org/schema/EngineSpecification.java index 1ad8181e..debdf9b7 100644 --- a/src/main/java/org/schema/EngineSpecification.java +++ b/src/main/java/org/schema/EngineSpecification.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link EngineSpecification} instance. */ public EngineSpecification build() { - return new EngineSpecification(fuelType, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EngineSpecification(fuelType, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle. @@ -174,6 +174,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QualitativeValueOrString fuelType; private String additionalType; private String alternateName; @@ -183,10 +187,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EngineSpecification(QualitativeValueOrString fuelType, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EngineSpecification(QualitativeValueOrString fuelType, 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); myFuelType = fuelType; } private QualitativeValueOrString myFuelType; diff --git a/src/main/java/org/schema/EntertainmentBusiness.java b/src/main/java/org/schema/EntertainmentBusiness.java index 732c2002..7d830cba 100644 --- a/src/main/java/org/schema/EntertainmentBusiness.java +++ b/src/main/java/org/schema/EntertainmentBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EntertainmentBusiness} instance. */ public EntertainmentBusiness build() { - return new EntertainmentBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EntertainmentBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EntertainmentBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EntertainmentBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EntryPoint.java b/src/main/java/org/schema/EntryPoint.java index 59d0f329..673c2d42 100644 --- a/src/main/java/org/schema/EntryPoint.java +++ b/src/main/java/org/schema/EntryPoint.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link EntryPoint} instance. */ public EntryPoint build() { - return new EntryPoint(httpMethod, encodingType, contentType, actionApplication, urlTemplate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EntryPoint(httpMethod, encodingType, contentType, actionApplication, urlTemplate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP. @@ -217,6 +217,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String httpMethod; private String encodingType; private String contentType; @@ -230,10 +234,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EntryPoint(String httpMethod, String encodingType, String contentType, SoftwareApplication actionApplication, String urlTemplate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EntryPoint(String httpMethod, String encodingType, String contentType, SoftwareApplication actionApplication, String urlTemplate, 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); myHttpMethod = httpMethod; myEncodingType = encodingType; myContentType = contentType; diff --git a/src/main/java/org/schema/Enumeration.java b/src/main/java/org/schema/Enumeration.java index edda63ef..e6f83361 100644 --- a/src/main/java/org/schema/Enumeration.java +++ b/src/main/java/org/schema/Enumeration.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link Enumeration} instance. */ public Enumeration build() { - return new Enumeration(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Enumeration(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -173,6 +173,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -182,10 +186,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Enumeration(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Enumeration(EnumerationOrProperty supersededBy, 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); mySupersededBy = supersededBy; } private EnumerationOrProperty mySupersededBy; diff --git a/src/main/java/org/schema/Episode.java b/src/main/java/org/schema/Episode.java index 66c22124..ebf8cc2f 100644 --- a/src/main/java/org/schema/Episode.java +++ b/src/main/java/org/schema/Episode.java @@ -78,7 +78,7 @@ public static final class Builder { * Creates new {@link Episode} instance. */ public Episode build() { - return new Episode(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); + return new Episode(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -804,6 +804,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private IntegerOrString episodeNumber; @@ -883,10 +887,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Episode(Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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) { - super(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); + protected Episode(Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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(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); myActor = actor; myDirector = director; myEpisodeNumber = episodeNumber; diff --git a/src/main/java/org/schema/Event.java b/src/main/java/org/schema/Event.java index e252d1a2..463c5dba 100644 --- a/src/main/java/org/schema/Event.java +++ b/src/main/java/org/schema/Event.java @@ -143,7 +143,7 @@ public static final class Builder { * Creates new {@link Event} instance. */ public Event build() { - return new Event(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Event(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -426,6 +426,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -452,10 +456,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Event(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Event(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, 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); myAggregateRating = aggregateRating; myOrganizer = organizer; myAttendee = attendee; diff --git a/src/main/java/org/schema/EventReservation.java b/src/main/java/org/schema/EventReservation.java index 679e1b26..d86409ae 100644 --- a/src/main/java/org/schema/EventReservation.java +++ b/src/main/java/org/schema/EventReservation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EventReservation} instance. */ public EventReservation build() { - return new EventReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EventReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A unique identifier for the reservation. @@ -279,6 +279,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String reservationId; private ReservationStatusType reservationStatus; private Thing reservationFor; @@ -299,9 +303,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EventReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EventReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EventStatusType.java b/src/main/java/org/schema/EventStatusType.java index 7680f959..0bc072a1 100644 --- a/src/main/java/org/schema/EventStatusType.java +++ b/src/main/java/org/schema/EventStatusType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EventStatusType} instance. */ public EventStatusType build() { - return new EventStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EventStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EventStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EventStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/EventVenue.java b/src/main/java/org/schema/EventVenue.java index a2c88e6b..5b700e1d 100644 --- a/src/main/java/org/schema/EventVenue.java +++ b/src/main/java/org/schema/EventVenue.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link EventVenue} instance. */ public EventVenue build() { - return new EventVenue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new EventVenue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected EventVenue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected EventVenue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ExerciseAction.java b/src/main/java/org/schema/ExerciseAction.java index 74e19aff..66a81a55 100644 --- a/src/main/java/org/schema/ExerciseAction.java +++ b/src/main/java/org/schema/ExerciseAction.java @@ -96,7 +96,7 @@ public static final class Builder { * Creates new {@link ExerciseAction} instance. */ public ExerciseAction build() { - return new ExerciseAction(exerciseCourse, exerciseRelatedDiet, distance, exercisePlan, exerciseType, fromLocation, opponent, sportsActivityLocation, sportsEvent, sportsTeam, toLocation, audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ExerciseAction(exerciseCourse, exerciseRelatedDiet, distance, exercisePlan, exerciseType, fromLocation, opponent, sportsActivityLocation, sportsEvent, sportsTeam, toLocation, audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The course where this action was taken. @@ -363,6 +363,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place exerciseCourse; private Diet exerciseRelatedDiet; private Distance distance; @@ -390,10 +394,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ExerciseAction(Place exerciseCourse, Diet exerciseRelatedDiet, Distance distance, ExercisePlan exercisePlan, String exerciseType, Place fromLocation, Person opponent, SportsActivityLocation sportsActivityLocation, SportsEvent sportsEvent, SportsTeam sportsTeam, Place toLocation, Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ExerciseAction(Place exerciseCourse, Diet exerciseRelatedDiet, Distance distance, ExercisePlan exercisePlan, String exerciseType, Place fromLocation, Person opponent, SportsActivityLocation sportsActivityLocation, SportsEvent sportsEvent, SportsTeam sportsTeam, Place toLocation, Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myExerciseCourse = exerciseCourse; myExerciseRelatedDiet = exerciseRelatedDiet; myDistance = distance; diff --git a/src/main/java/org/schema/ExerciseGym.java b/src/main/java/org/schema/ExerciseGym.java index 545336df..eab8cc28 100644 --- a/src/main/java/org/schema/ExerciseGym.java +++ b/src/main/java/org/schema/ExerciseGym.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ExerciseGym} instance. */ public ExerciseGym build() { - return new ExerciseGym(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ExerciseGym(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ExerciseGym(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ExerciseGym(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ExercisePlan.java b/src/main/java/org/schema/ExercisePlan.java index 5419b744..ab262776 100644 --- a/src/main/java/org/schema/ExercisePlan.java +++ b/src/main/java/org/schema/ExercisePlan.java @@ -79,7 +79,7 @@ public static final class Builder { * Creates new {@link ExercisePlan} instance. */ public ExercisePlan build() { - return new ExercisePlan(activityDuration, activityFrequency, additionalVariable, exerciseType, intensity, repetitions, restPeriods, workload, associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ExercisePlan(activityDuration, activityFrequency, additionalVariable, exerciseType, intensity, repetitions, restPeriods, workload, associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Length of time to engage in the activity. @@ -395,6 +395,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Duration activityDuration; private String activityFrequency; private String additionalVariable; @@ -426,10 +430,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ExercisePlan(Duration activityDuration, String activityFrequency, String additionalVariable, String exerciseType, String intensity, Number repetitions, String restPeriods, Energy workload, AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, PhysicalActivityCategoryOrStringOrThing category, String epidemiology, String pathophysiology, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ExercisePlan(Duration activityDuration, String activityFrequency, String additionalVariable, String exerciseType, String intensity, Number repetitions, String restPeriods, Energy workload, AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, PhysicalActivityCategoryOrStringOrThing category, String epidemiology, String pathophysiology, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myActivityDuration = activityDuration; myActivityFrequency = activityFrequency; myAdditionalVariable = additionalVariable; diff --git a/src/main/java/org/schema/FastFoodRestaurant.java b/src/main/java/org/schema/FastFoodRestaurant.java index a2047ab2..706d6715 100644 --- a/src/main/java/org/schema/FastFoodRestaurant.java +++ b/src/main/java/org/schema/FastFoodRestaurant.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FastFoodRestaurant} instance. */ public FastFoodRestaurant build() { - return new FastFoodRestaurant(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FastFoodRestaurant(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FastFoodRestaurant(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FastFoodRestaurant(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Festival.java b/src/main/java/org/schema/Festival.java index 8eeba197..d6ca8f20 100644 --- a/src/main/java/org/schema/Festival.java +++ b/src/main/java/org/schema/Festival.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Festival} instance. */ public Festival build() { - return new Festival(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Festival(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Festival(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Festival(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FilmAction.java b/src/main/java/org/schema/FilmAction.java index fb45a0e4..a358dedf 100644 --- a/src/main/java/org/schema/FilmAction.java +++ b/src/main/java/org/schema/FilmAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FilmAction} instance. */ public FilmAction build() { - return new FilmAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FilmAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FilmAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FilmAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FinancialService.java b/src/main/java/org/schema/FinancialService.java index c536f505..a10f7013 100644 --- a/src/main/java/org/schema/FinancialService.java +++ b/src/main/java/org/schema/FinancialService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FinancialService} instance. */ public FinancialService build() { - return new FinancialService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FinancialService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FinancialService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FinancialService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FindAction.java b/src/main/java/org/schema/FindAction.java index efd8420f..de1e0097 100644 --- a/src/main/java/org/schema/FindAction.java +++ b/src/main/java/org/schema/FindAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FindAction} instance. */ public FindAction build() { - return new FindAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FindAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FindAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FindAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FireStation.java b/src/main/java/org/schema/FireStation.java index 7e329642..97a32f7e 100644 --- a/src/main/java/org/schema/FireStation.java +++ b/src/main/java/org/schema/FireStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FireStation} instance. */ public FireStation build() { - return new FireStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FireStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FireStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FireStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Flight.java b/src/main/java/org/schema/Flight.java index 3553418b..ec12200b 100644 --- a/src/main/java/org/schema/Flight.java +++ b/src/main/java/org/schema/Flight.java @@ -135,7 +135,7 @@ public static final class Builder { * Creates new {@link Flight} instance. */ public Flight build() { - return new Flight(seller, provider, flightNumber, departureTime, arrivalTime, departureAirport, arrivalAirport, departureGate, arrivalGate, boardingPolicy, departureTerminal, arrivalTerminal, aircraft, mealService, estimatedFlightDuration, flightDistance, webCheckinTime, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Flight(seller, provider, flightNumber, departureTime, arrivalTime, departureAirport, arrivalAirport, departureGate, arrivalGate, boardingPolicy, departureTerminal, arrivalTerminal, aircraft, mealService, estimatedFlightDuration, flightDistance, webCheckinTime, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. @@ -411,6 +411,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Participant seller; private OrganizationOrPerson provider; private String flightNumber; @@ -436,10 +440,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Flight(Participant seller, OrganizationOrPerson provider, String flightNumber, java.util.Date departureTime, java.util.Date arrivalTime, Airport departureAirport, Airport arrivalAirport, String departureGate, String arrivalGate, BoardingPolicyType boardingPolicy, String departureTerminal, String arrivalTerminal, StringOrVehicle aircraft, String mealService, DurationOrString estimatedFlightDuration, DistanceOrString flightDistance, java.util.Date webCheckinTime, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Flight(Participant seller, OrganizationOrPerson provider, String flightNumber, java.util.Date departureTime, java.util.Date arrivalTime, Airport departureAirport, Airport arrivalAirport, String departureGate, String arrivalGate, BoardingPolicyType boardingPolicy, String departureTerminal, String arrivalTerminal, StringOrVehicle aircraft, String mealService, DurationOrString estimatedFlightDuration, DistanceOrString flightDistance, java.util.Date webCheckinTime, 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); mySeller = seller; myProvider = provider; myFlightNumber = flightNumber; diff --git a/src/main/java/org/schema/FlightReservation.java b/src/main/java/org/schema/FlightReservation.java index e2036c38..746a0aec 100644 --- a/src/main/java/org/schema/FlightReservation.java +++ b/src/main/java/org/schema/FlightReservation.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link FlightReservation} instance. */ public FlightReservation build() { - return new FlightReservation(boardingGroup, passengerSequenceNumber, securityScreening, passengerPriorityStatus, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FlightReservation(boardingGroup, passengerSequenceNumber, securityScreening, passengerPriorityStatus, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The airline-specific indicator of boarding order / preference. @@ -340,6 +340,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String boardingGroup; private String passengerSequenceNumber; private String securityScreening; @@ -364,10 +368,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FlightReservation(String boardingGroup, String passengerSequenceNumber, String securityScreening, QualitativeValueOrString passengerPriorityStatus, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FlightReservation(String boardingGroup, String passengerSequenceNumber, String securityScreening, QualitativeValueOrString passengerPriorityStatus, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBoardingGroup = boardingGroup; myPassengerSequenceNumber = passengerSequenceNumber; mySecurityScreening = securityScreening; diff --git a/src/main/java/org/schema/Florist.java b/src/main/java/org/schema/Florist.java index a3884d89..c626d4d7 100644 --- a/src/main/java/org/schema/Florist.java +++ b/src/main/java/org/schema/Florist.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Florist} instance. */ public Florist build() { - return new Florist(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Florist(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Florist(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Florist(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FollowAction.java b/src/main/java/org/schema/FollowAction.java index 9c7e4dbb..19a54700 100644 --- a/src/main/java/org/schema/FollowAction.java +++ b/src/main/java/org/schema/FollowAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link FollowAction} instance. */ public FollowAction build() { - return new FollowAction(followee, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FollowAction(followee, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The person or organization being followed. @@ -228,6 +228,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson followee; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FollowAction(OrganizationOrPerson followee, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FollowAction(OrganizationOrPerson followee, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myFollowee = followee; } private OrganizationOrPerson myFollowee; diff --git a/src/main/java/org/schema/FoodEstablishment.java b/src/main/java/org/schema/FoodEstablishment.java index 729bf34a..2169586d 100644 --- a/src/main/java/org/schema/FoodEstablishment.java +++ b/src/main/java/org/schema/FoodEstablishment.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link FoodEstablishment} instance. */ public FoodEstablishment build() { - return new FoodEstablishment(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FoodEstablishment(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -378,6 +378,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -409,10 +413,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FoodEstablishment(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FoodEstablishment(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAcceptsReservations = acceptsReservations; myMenu = menu; myServesCuisine = servesCuisine; diff --git a/src/main/java/org/schema/FoodEstablishmentReservation.java b/src/main/java/org/schema/FoodEstablishmentReservation.java index d2bd0ec7..d080cb00 100644 --- a/src/main/java/org/schema/FoodEstablishmentReservation.java +++ b/src/main/java/org/schema/FoodEstablishmentReservation.java @@ -45,7 +45,7 @@ public static final class Builder { * Creates new {@link FoodEstablishmentReservation} instance. */ public FoodEstablishmentReservation build() { - return new FoodEstablishmentReservation(startTime, partySize, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FoodEstablishmentReservation(startTime, partySize, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. @@ -319,6 +319,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date startTime; private IntegerOrQuantitativeValue partySize; private String reservationId; @@ -341,10 +345,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FoodEstablishmentReservation(java.util.Date startTime, IntegerOrQuantitativeValue partySize, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FoodEstablishmentReservation(java.util.Date startTime, IntegerOrQuantitativeValue partySize, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myStartTime = startTime; myPartySize = partySize; } diff --git a/src/main/java/org/schema/FoodEvent.java b/src/main/java/org/schema/FoodEvent.java index 49ed3260..53fdd282 100644 --- a/src/main/java/org/schema/FoodEvent.java +++ b/src/main/java/org/schema/FoodEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FoodEvent} instance. */ public FoodEvent build() { - return new FoodEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FoodEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FoodEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FoodEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/FurnitureStore.java b/src/main/java/org/schema/FurnitureStore.java index e27d7d8b..7739b978 100644 --- a/src/main/java/org/schema/FurnitureStore.java +++ b/src/main/java/org/schema/FurnitureStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link FurnitureStore} instance. */ public FurnitureStore build() { - return new FurnitureStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new FurnitureStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected FurnitureStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected FurnitureStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Game.java b/src/main/java/org/schema/Game.java index 6b4e351a..b9fe0c71 100644 --- a/src/main/java/org/schema/Game.java +++ b/src/main/java/org/schema/Game.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link Game} instance. */ public Game build() { - return new Game(numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); + return new Game(numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); } /** * Indicate how many people can play this game (minimum, maximum, or range). @@ -764,6 +764,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QuantitativeValue numberOfPlayers; private Thing quest; private Thing gameItem; @@ -840,10 +844,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Game(QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, PlaceOrPostalAddressOrString gameLocation, 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) { - super(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); + protected Game(QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, PlaceOrPostalAddressOrString gameLocation, 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(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); myNumberOfPlayers = numberOfPlayers; myQuest = quest; myGameItem = gameItem; diff --git a/src/main/java/org/schema/GamePlayMode.java b/src/main/java/org/schema/GamePlayMode.java index 0c734dd8..e160c4a4 100644 --- a/src/main/java/org/schema/GamePlayMode.java +++ b/src/main/java/org/schema/GamePlayMode.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GamePlayMode} instance. */ public GamePlayMode build() { - return new GamePlayMode(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GamePlayMode(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GamePlayMode(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GamePlayMode(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GameServer.java b/src/main/java/org/schema/GameServer.java index fa0bbd03..85ecbbe0 100644 --- a/src/main/java/org/schema/GameServer.java +++ b/src/main/java/org/schema/GameServer.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link GameServer} instance. */ public GameServer build() { - return new GameServer(serverStatus, playersOnline, game, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GameServer(serverStatus, playersOnline, game, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Status of a game server. @@ -190,6 +190,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private GameServerStatus serverStatus; private Integer playersOnline; private VideoGame game; @@ -201,10 +205,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GameServer(GameServerStatus serverStatus, Integer playersOnline, VideoGame game, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GameServer(GameServerStatus serverStatus, Integer playersOnline, VideoGame game, 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); myServerStatus = serverStatus; myPlayersOnline = playersOnline; myGame = game; diff --git a/src/main/java/org/schema/GameServerStatus.java b/src/main/java/org/schema/GameServerStatus.java index bc0d1b83..c1b0314e 100644 --- a/src/main/java/org/schema/GameServerStatus.java +++ b/src/main/java/org/schema/GameServerStatus.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GameServerStatus} instance. */ public GameServerStatus build() { - return new GameServerStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GameServerStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GameServerStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GameServerStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GardenStore.java b/src/main/java/org/schema/GardenStore.java index 3d04958b..d5324ecc 100644 --- a/src/main/java/org/schema/GardenStore.java +++ b/src/main/java/org/schema/GardenStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GardenStore} instance. */ public GardenStore build() { - return new GardenStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GardenStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GardenStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GardenStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GasStation.java b/src/main/java/org/schema/GasStation.java index 4b9209cc..4631217d 100644 --- a/src/main/java/org/schema/GasStation.java +++ b/src/main/java/org/schema/GasStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GasStation} instance. */ public GasStation build() { - return new GasStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GasStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GasStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GasStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GatedResidenceCommunity.java b/src/main/java/org/schema/GatedResidenceCommunity.java index f93ac732..3cf10fc8 100644 --- a/src/main/java/org/schema/GatedResidenceCommunity.java +++ b/src/main/java/org/schema/GatedResidenceCommunity.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GatedResidenceCommunity} instance. */ public GatedResidenceCommunity build() { - return new GatedResidenceCommunity(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GatedResidenceCommunity(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GatedResidenceCommunity(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GatedResidenceCommunity(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GeneralContractor.java b/src/main/java/org/schema/GeneralContractor.java index 1a2044fd..cd9b6c60 100644 --- a/src/main/java/org/schema/GeneralContractor.java +++ b/src/main/java/org/schema/GeneralContractor.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GeneralContractor} instance. */ public GeneralContractor build() { - return new GeneralContractor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GeneralContractor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GeneralContractor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GeneralContractor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GeoCoordinates.java b/src/main/java/org/schema/GeoCoordinates.java index d40ddef0..78874c9c 100644 --- a/src/main/java/org/schema/GeoCoordinates.java +++ b/src/main/java/org/schema/GeoCoordinates.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link GeoCoordinates} instance. */ public GeoCoordinates build() { - return new GeoCoordinates(elevation, latitude, longitude, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GeoCoordinates(elevation, latitude, longitude, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The elevation of a location. @@ -217,6 +217,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrString elevation; private NumberOrString latitude; private NumberOrString longitude; @@ -228,10 +232,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GeoCoordinates(NumberOrString elevation, NumberOrString latitude, NumberOrString longitude, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GeoCoordinates(NumberOrString elevation, NumberOrString latitude, NumberOrString longitude, 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); myElevation = elevation; myLatitude = latitude; myLongitude = longitude; diff --git a/src/main/java/org/schema/GeoShape.java b/src/main/java/org/schema/GeoShape.java index 487e0c27..88f8e728 100644 --- a/src/main/java/org/schema/GeoShape.java +++ b/src/main/java/org/schema/GeoShape.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link GeoShape} instance. */ public GeoShape build() { - return new GeoShape(box, circle, elevation, line, polygon, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GeoShape(box, circle, elevation, line, polygon, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character. @@ -226,6 +226,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String box; private String circle; private NumberOrString elevation; @@ -239,10 +243,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GeoShape(String box, String circle, NumberOrString elevation, String line, String polygon, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GeoShape(String box, String circle, NumberOrString elevation, String line, String polygon, 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); myBox = box; myCircle = circle; myElevation = elevation; diff --git a/src/main/java/org/schema/GiveAction.java b/src/main/java/org/schema/GiveAction.java index cd032c8f..9bdc34f7 100644 --- a/src/main/java/org/schema/GiveAction.java +++ b/src/main/java/org/schema/GiveAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link GiveAction} instance. */ public GiveAction build() { - return new GiveAction(recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GiveAction(recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant who is at the receiving end of the action. @@ -250,6 +250,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AudienceOrOrganizationOrPerson recipient; private Place fromLocation; private Place toLocation; @@ -267,10 +271,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GiveAction(AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GiveAction(AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecipient = recipient; } private AudienceOrOrganizationOrPerson myRecipient; diff --git a/src/main/java/org/schema/GolfCourse.java b/src/main/java/org/schema/GolfCourse.java index 8370afad..f2b904fb 100644 --- a/src/main/java/org/schema/GolfCourse.java +++ b/src/main/java/org/schema/GolfCourse.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GolfCourse} instance. */ public GolfCourse build() { - return new GolfCourse(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GolfCourse(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GolfCourse(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GolfCourse(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GovernmentBuilding.java b/src/main/java/org/schema/GovernmentBuilding.java index 174b8b2a..d002f3ec 100644 --- a/src/main/java/org/schema/GovernmentBuilding.java +++ b/src/main/java/org/schema/GovernmentBuilding.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GovernmentBuilding} instance. */ public GovernmentBuilding build() { - return new GovernmentBuilding(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GovernmentBuilding(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GovernmentBuilding(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GovernmentBuilding(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GovernmentOffice.java b/src/main/java/org/schema/GovernmentOffice.java index 425cfee1..b1162a33 100644 --- a/src/main/java/org/schema/GovernmentOffice.java +++ b/src/main/java/org/schema/GovernmentOffice.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GovernmentOffice} instance. */ public GovernmentOffice build() { - return new GovernmentOffice(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GovernmentOffice(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GovernmentOffice(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GovernmentOffice(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GovernmentOrganization.java b/src/main/java/org/schema/GovernmentOrganization.java index ccb5f804..eecbee0e 100644 --- a/src/main/java/org/schema/GovernmentOrganization.java +++ b/src/main/java/org/schema/GovernmentOrganization.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GovernmentOrganization} instance. */ public GovernmentOrganization build() { - return new GovernmentOrganization(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GovernmentOrganization(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -420,6 +420,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -460,9 +464,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GovernmentOrganization(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GovernmentOrganization(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GovernmentPermit.java b/src/main/java/org/schema/GovernmentPermit.java index f608b402..159fb22a 100644 --- a/src/main/java/org/schema/GovernmentPermit.java +++ b/src/main/java/org/schema/GovernmentPermit.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GovernmentPermit} instance. */ public GovernmentPermit build() { - return new GovernmentPermit(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GovernmentPermit(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The service through with the permit was granted. @@ -200,6 +200,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Service issuedThrough; private Audience permitAudience; private Duration validFor; @@ -215,9 +219,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GovernmentPermit(Service issuedThrough, Audience permitAudience, Duration validFor, java.util.Date validFrom, AdministrativeArea validIn, java.util.Date validUntil, Organization issuedBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GovernmentPermit(Service issuedThrough, Audience permitAudience, Duration validFor, java.util.Date validFrom, AdministrativeArea validIn, java.util.Date validUntil, Organization issuedBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/GovernmentService.java b/src/main/java/org/schema/GovernmentService.java index 99cc2f39..72c9b55f 100644 --- a/src/main/java/org/schema/GovernmentService.java +++ b/src/main/java/org/schema/GovernmentService.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link GovernmentService} instance. */ public GovernmentService build() { - return new GovernmentService(serviceOperator, aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GovernmentService(serviceOperator, aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The operating organization, if different from the provider. This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor. @@ -222,6 +222,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization serviceOperator; private AggregateRating aggregateRating; private ServiceChannel availableChannel; @@ -238,10 +242,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GovernmentService(Organization serviceOperator, AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GovernmentService(Organization serviceOperator, AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myServiceOperator = serviceOperator; } private Organization myServiceOperator; diff --git a/src/main/java/org/schema/GroceryStore.java b/src/main/java/org/schema/GroceryStore.java index a29c277b..d2a4542b 100644 --- a/src/main/java/org/schema/GroceryStore.java +++ b/src/main/java/org/schema/GroceryStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link GroceryStore} instance. */ public GroceryStore build() { - return new GroceryStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new GroceryStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected GroceryStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected GroceryStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HVACBusiness.java b/src/main/java/org/schema/HVACBusiness.java index 4a00de50..f5578053 100644 --- a/src/main/java/org/schema/HVACBusiness.java +++ b/src/main/java/org/schema/HVACBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HVACBusiness} instance. */ public HVACBusiness build() { - return new HVACBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HVACBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HVACBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HVACBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HairSalon.java b/src/main/java/org/schema/HairSalon.java index 7b4a004a..f6dc6b6b 100644 --- a/src/main/java/org/schema/HairSalon.java +++ b/src/main/java/org/schema/HairSalon.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HairSalon} instance. */ public HairSalon build() { - return new HairSalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HairSalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HairSalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HairSalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HardwareStore.java b/src/main/java/org/schema/HardwareStore.java index f6a63d84..ec20db58 100644 --- a/src/main/java/org/schema/HardwareStore.java +++ b/src/main/java/org/schema/HardwareStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HardwareStore} instance. */ public HardwareStore build() { - return new HardwareStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HardwareStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HardwareStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HardwareStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HealthAndBeautyBusiness.java b/src/main/java/org/schema/HealthAndBeautyBusiness.java index 2785b0a4..4fef9640 100644 --- a/src/main/java/org/schema/HealthAndBeautyBusiness.java +++ b/src/main/java/org/schema/HealthAndBeautyBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HealthAndBeautyBusiness} instance. */ public HealthAndBeautyBusiness build() { - return new HealthAndBeautyBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HealthAndBeautyBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HealthAndBeautyBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HealthAndBeautyBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HealthClub.java b/src/main/java/org/schema/HealthClub.java index 377794a4..c676b91e 100644 --- a/src/main/java/org/schema/HealthClub.java +++ b/src/main/java/org/schema/HealthClub.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HealthClub} instance. */ public HealthClub build() { - return new HealthClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HealthClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HealthClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HealthClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HighSchool.java b/src/main/java/org/schema/HighSchool.java index bbdb8198..1f8c6192 100644 --- a/src/main/java/org/schema/HighSchool.java +++ b/src/main/java/org/schema/HighSchool.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HighSchool} instance. */ public HighSchool build() { - return new HighSchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HighSchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HighSchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HighSchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HinduTemple.java b/src/main/java/org/schema/HinduTemple.java index ce6c9c38..ffcbca5f 100644 --- a/src/main/java/org/schema/HinduTemple.java +++ b/src/main/java/org/schema/HinduTemple.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HinduTemple} instance. */ public HinduTemple build() { - return new HinduTemple(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HinduTemple(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HinduTemple(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HinduTemple(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HobbyShop.java b/src/main/java/org/schema/HobbyShop.java index 914f602c..92752fe7 100644 --- a/src/main/java/org/schema/HobbyShop.java +++ b/src/main/java/org/schema/HobbyShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HobbyShop} instance. */ public HobbyShop build() { - return new HobbyShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HobbyShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HobbyShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HobbyShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HomeAndConstructionBusiness.java b/src/main/java/org/schema/HomeAndConstructionBusiness.java index 859c204f..e29534a5 100644 --- a/src/main/java/org/schema/HomeAndConstructionBusiness.java +++ b/src/main/java/org/schema/HomeAndConstructionBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HomeAndConstructionBusiness} instance. */ public HomeAndConstructionBusiness build() { - return new HomeAndConstructionBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HomeAndConstructionBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HomeAndConstructionBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HomeAndConstructionBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HomeGoodsStore.java b/src/main/java/org/schema/HomeGoodsStore.java index 245c4bb3..a3274795 100644 --- a/src/main/java/org/schema/HomeGoodsStore.java +++ b/src/main/java/org/schema/HomeGoodsStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HomeGoodsStore} instance. */ public HomeGoodsStore build() { - return new HomeGoodsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HomeGoodsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HomeGoodsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HomeGoodsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Hospital.java b/src/main/java/org/schema/Hospital.java index b8f9897d..93eb5ec8 100644 --- a/src/main/java/org/schema/Hospital.java +++ b/src/main/java/org/schema/Hospital.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link Hospital} instance. */ public Hospital build() { - return new Hospital(availableService, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Hospital(availableService, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical service available from this provider. @@ -373,6 +373,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalProcedureOrMedicalTestOrMedicalTherapy availableService; private MedicalSpecialty medicalSpecialty; private Organization parentOrganization; @@ -403,10 +407,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Hospital(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Hospital(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAvailableService = availableService; myMedicalSpecialty = medicalSpecialty; } diff --git a/src/main/java/org/schema/Hostel.java b/src/main/java/org/schema/Hostel.java index 8bbf245a..6414a16d 100644 --- a/src/main/java/org/schema/Hostel.java +++ b/src/main/java/org/schema/Hostel.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Hostel} instance. */ public Hostel build() { - return new Hostel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Hostel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Hostel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Hostel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Hotel.java b/src/main/java/org/schema/Hotel.java index d2532f65..e8fd8589 100644 --- a/src/main/java/org/schema/Hotel.java +++ b/src/main/java/org/schema/Hotel.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Hotel} instance. */ public Hotel build() { - return new Hotel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Hotel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Hotel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Hotel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/HousePainter.java b/src/main/java/org/schema/HousePainter.java index 913be19d..e3fedf6c 100644 --- a/src/main/java/org/schema/HousePainter.java +++ b/src/main/java/org/schema/HousePainter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link HousePainter} instance. */ public HousePainter build() { - return new HousePainter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new HousePainter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected HousePainter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected HousePainter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/IceCreamShop.java b/src/main/java/org/schema/IceCreamShop.java index 55cd78f2..5bf16edf 100644 --- a/src/main/java/org/schema/IceCreamShop.java +++ b/src/main/java/org/schema/IceCreamShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link IceCreamShop} instance. */ public IceCreamShop build() { - return new IceCreamShop(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new IceCreamShop(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected IceCreamShop(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected IceCreamShop(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/IgnoreAction.java b/src/main/java/org/schema/IgnoreAction.java index 150d30cb..c0ca0331 100644 --- a/src/main/java/org/schema/IgnoreAction.java +++ b/src/main/java/org/schema/IgnoreAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link IgnoreAction} instance. */ public IgnoreAction build() { - return new IgnoreAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new IgnoreAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected IgnoreAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected IgnoreAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ImageGallery.java b/src/main/java/org/schema/ImageGallery.java index 6074107b..d8dfe159 100644 --- a/src/main/java/org/schema/ImageGallery.java +++ b/src/main/java/org/schema/ImageGallery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ImageGallery} instance. */ public ImageGallery build() { - return new ImageGallery(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new ImageGallery(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ImageGallery(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected ImageGallery(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/ImageObject.java b/src/main/java/org/schema/ImageObject.java index 73a97661..9d6dc393 100644 --- a/src/main/java/org/schema/ImageObject.java +++ b/src/main/java/org/schema/ImageObject.java @@ -55,7 +55,7 @@ public static final class Builder { * Creates new {@link ImageObject} instance. */ public ImageObject build() { - return new ImageObject(caption, exifData, representativeOfPage, thumbnail, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new ImageObject(caption, exifData, representativeOfPage, thumbnail, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * The caption for this object. @@ -874,6 +874,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String caption; private PropertyValueOrString exifData; private Boolean representativeOfPage; @@ -965,10 +969,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ImageObject(String caption, PropertyValueOrString exifData, Boolean representativeOfPage, ImageObject thumbnail, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + protected ImageObject(String caption, PropertyValueOrString exifData, Boolean representativeOfPage, ImageObject thumbnail, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); myCaption = caption; myExifData = exifData; myRepresentativeOfPage = representativeOfPage; diff --git a/src/main/java/org/schema/ImagingTest.java b/src/main/java/org/schema/ImagingTest.java index 59c2617e..d1290dcc 100644 --- a/src/main/java/org/schema/ImagingTest.java +++ b/src/main/java/org/schema/ImagingTest.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link ImagingTest} instance. */ public ImagingTest build() { - return new ImagingTest(imagingTechnique, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ImagingTest(imagingTechnique, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Imaging technique used. @@ -242,6 +242,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalImagingTechnique imagingTechnique; private Drug affectedBy; private String normalRange; @@ -262,10 +266,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ImagingTest(MedicalImagingTechnique imagingTechnique, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ImagingTest(MedicalImagingTechnique imagingTechnique, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myImagingTechnique = imagingTechnique; } private MedicalImagingTechnique myImagingTechnique; diff --git a/src/main/java/org/schema/IndividualProduct.java b/src/main/java/org/schema/IndividualProduct.java index 06e7f253..c99f48fc 100644 --- a/src/main/java/org/schema/IndividualProduct.java +++ b/src/main/java/org/schema/IndividualProduct.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link IndividualProduct} instance. */ public IndividualProduct build() { - return new IndividualProduct(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new IndividualProduct(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -443,6 +443,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private Audience audience; private String award; @@ -482,9 +486,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected IndividualProduct(AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected IndividualProduct(AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/InfectiousAgentClass.java b/src/main/java/org/schema/InfectiousAgentClass.java index 6bef6875..52fe938f 100644 --- a/src/main/java/org/schema/InfectiousAgentClass.java +++ b/src/main/java/org/schema/InfectiousAgentClass.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link InfectiousAgentClass} instance. */ public InfectiousAgentClass build() { - return new InfectiousAgentClass(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InfectiousAgentClass(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InfectiousAgentClass(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InfectiousAgentClass(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/InfectiousDisease.java b/src/main/java/org/schema/InfectiousDisease.java index 36da50e6..8cc65749 100644 --- a/src/main/java/org/schema/InfectiousDisease.java +++ b/src/main/java/org/schema/InfectiousDisease.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link InfectiousDisease} instance. */ public InfectiousDisease build() { - return new InfectiousDisease(infectiousAgent, infectiousAgentClass, transmissionMethod, associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InfectiousDisease(infectiousAgent, infectiousAgentClass, transmissionMethod, associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The actual infectious agent, such as a specific bacterium. @@ -362,6 +362,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String infectiousAgent; private InfectiousAgentClass infectiousAgentClass; private String transmissionMethod; @@ -395,10 +399,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InfectiousDisease(String infectiousAgent, InfectiousAgentClass infectiousAgentClass, String transmissionMethod, AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, MedicalCause cause, DDxElement differentialDiagnosis, String epidemiology, String expectedPrognosis, String naturalProgression, String pathophysiology, String possibleComplication, MedicalTherapy possibleTreatment, MedicalTherapy primaryPrevention, MedicalRiskFactor riskFactor, MedicalTherapy secondaryPrevention, MedicalSignOrSymptom signOrSymptom, MedicalConditionStage stage, String subtype, MedicalTest typicalTest, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InfectiousDisease(String infectiousAgent, InfectiousAgentClass infectiousAgentClass, String transmissionMethod, AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, MedicalCause cause, DDxElement differentialDiagnosis, String epidemiology, String expectedPrognosis, String naturalProgression, String pathophysiology, String possibleComplication, MedicalTherapy possibleTreatment, MedicalTherapy primaryPrevention, MedicalRiskFactor riskFactor, MedicalTherapy secondaryPrevention, MedicalSignOrSymptom signOrSymptom, MedicalConditionStage stage, String subtype, MedicalTest typicalTest, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myInfectiousAgent = infectiousAgent; myInfectiousAgentClass = infectiousAgentClass; myTransmissionMethod = transmissionMethod; diff --git a/src/main/java/org/schema/InformAction.java b/src/main/java/org/schema/InformAction.java index d09bc0db..5aa808f0 100644 --- a/src/main/java/org/schema/InformAction.java +++ b/src/main/java/org/schema/InformAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link InformAction} instance. */ public InformAction build() { - return new InformAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InformAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Upcoming or past event associated with this place, organization, or action. @@ -266,6 +266,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Event event; private Thing about; private LanguageOrString inLanguage; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InformAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InformAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEvent = event; } private Event myEvent; diff --git a/src/main/java/org/schema/InsertAction.java b/src/main/java/org/schema/InsertAction.java index 0ea883a6..7cc72125 100644 --- a/src/main/java/org/schema/InsertAction.java +++ b/src/main/java/org/schema/InsertAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link InsertAction} instance. */ public InsertAction build() { - return new InsertAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InsertAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The final location of the object or the agent after the action. @@ -226,6 +226,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place toLocation; private Thing targetCollection; private OrganizationOrPerson agent; @@ -242,10 +246,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InsertAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InsertAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myToLocation = toLocation; } private Place myToLocation; diff --git a/src/main/java/org/schema/InstallAction.java b/src/main/java/org/schema/InstallAction.java index 04cbd319..a9f3dc8f 100644 --- a/src/main/java/org/schema/InstallAction.java +++ b/src/main/java/org/schema/InstallAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link InstallAction} instance. */ public InstallAction build() { - return new InstallAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InstallAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InstallAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InstallAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/InsuranceAgency.java b/src/main/java/org/schema/InsuranceAgency.java index 8209bbe3..7407e4d5 100644 --- a/src/main/java/org/schema/InsuranceAgency.java +++ b/src/main/java/org/schema/InsuranceAgency.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link InsuranceAgency} instance. */ public InsuranceAgency build() { - return new InsuranceAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InsuranceAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InsuranceAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InsuranceAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Intangible.java b/src/main/java/org/schema/Intangible.java index 388b3269..0fa90848 100644 --- a/src/main/java/org/schema/Intangible.java +++ b/src/main/java/org/schema/Intangible.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Intangible} instance. */ public Intangible build() { - return new Intangible(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Intangible(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Intangible(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Intangible(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/InteractAction.java b/src/main/java/org/schema/InteractAction.java index 49c45fde..5726d95d 100644 --- a/src/main/java/org/schema/InteractAction.java +++ b/src/main/java/org/schema/InteractAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link InteractAction} instance. */ public InteractAction build() { - return new InteractAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InteractAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InteractAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InteractAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/InternetCafe.java b/src/main/java/org/schema/InternetCafe.java index f59f51c7..b9fc69ae 100644 --- a/src/main/java/org/schema/InternetCafe.java +++ b/src/main/java/org/schema/InternetCafe.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link InternetCafe} instance. */ public InternetCafe build() { - return new InternetCafe(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InternetCafe(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InternetCafe(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InternetCafe(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/InviteAction.java b/src/main/java/org/schema/InviteAction.java index 38eeb210..78ebbf63 100644 --- a/src/main/java/org/schema/InviteAction.java +++ b/src/main/java/org/schema/InviteAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link InviteAction} instance. */ public InviteAction build() { - return new InviteAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new InviteAction(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Upcoming or past event associated with this place, organization, or action. @@ -266,6 +266,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Event event; private Thing about; private LanguageOrString inLanguage; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected InviteAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected InviteAction(Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEvent = event; } private Event myEvent; diff --git a/src/main/java/org/schema/Invoice.java b/src/main/java/org/schema/Invoice.java index de90c3d1..1917ebd8 100644 --- a/src/main/java/org/schema/Invoice.java +++ b/src/main/java/org/schema/Invoice.java @@ -116,7 +116,7 @@ public static final class Builder { * Creates new {@link Invoice} instance. */ public Invoice build() { - return new Invoice(confirmationNumber, customer, paymentDue, paymentMethod, paymentMethodId, provider, broker, totalPaymentDue, minimumPaymentDue, accountId, scheduledPaymentDate, billingPeriod, paymentStatus, referencesOrder, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Invoice(confirmationNumber, customer, paymentDue, paymentMethod, paymentMethodId, provider, broker, totalPaymentDue, minimumPaymentDue, accountId, scheduledPaymentDate, billingPeriod, paymentStatus, referencesOrder, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A number that confirms the given order or payment has been received. @@ -362,6 +362,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String confirmationNumber; private OrganizationOrPerson customer; private java.util.Date paymentDue; @@ -384,10 +388,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Invoice(String confirmationNumber, OrganizationOrPerson customer, java.util.Date paymentDue, PaymentMethod paymentMethod, String paymentMethodId, OrganizationOrPerson provider, OrganizationOrPerson broker, PriceSpecification totalPaymentDue, PriceSpecification minimumPaymentDue, String accountId, java.util.Date scheduledPaymentDate, Duration billingPeriod, String paymentStatus, Order referencesOrder, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Invoice(String confirmationNumber, OrganizationOrPerson customer, java.util.Date paymentDue, PaymentMethod paymentMethod, String paymentMethodId, OrganizationOrPerson provider, OrganizationOrPerson broker, PriceSpecification totalPaymentDue, PriceSpecification minimumPaymentDue, String accountId, java.util.Date scheduledPaymentDate, Duration billingPeriod, String paymentStatus, Order referencesOrder, 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); myConfirmationNumber = confirmationNumber; myCustomer = customer; myPaymentDue = paymentDue; diff --git a/src/main/java/org/schema/ItemAvailability.java b/src/main/java/org/schema/ItemAvailability.java index 18df815a..7bc4933c 100644 --- a/src/main/java/org/schema/ItemAvailability.java +++ b/src/main/java/org/schema/ItemAvailability.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ItemAvailability} instance. */ public ItemAvailability build() { - return new ItemAvailability(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ItemAvailability(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ItemAvailability(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ItemAvailability(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ItemList.java b/src/main/java/org/schema/ItemList.java index 8c8cc9ae..fce330cb 100644 --- a/src/main/java/org/schema/ItemList.java +++ b/src/main/java/org/schema/ItemList.java @@ -52,7 +52,7 @@ public static final class Builder { * Creates new {@link ItemList} instance. */ public ItemList build() { - return new ItemList(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ItemList(numberOfItems, itemListOrder, itemListElement, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list. @@ -232,6 +232,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer numberOfItems; private ItemListOrderTypeOrString itemListOrder; private ListItemOrStringOrThing itemListElement; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ItemList(Integer numberOfItems, ItemListOrderTypeOrString itemListOrder, ListItemOrStringOrThing itemListElement, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ItemList(Integer numberOfItems, ItemListOrderTypeOrString itemListOrder, ListItemOrStringOrThing itemListElement, 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); myNumberOfItems = numberOfItems; myItemListOrder = itemListOrder; myItemListElement = itemListElement; diff --git a/src/main/java/org/schema/ItemListOrderType.java b/src/main/java/org/schema/ItemListOrderType.java index 164ca827..8c17ff3f 100644 --- a/src/main/java/org/schema/ItemListOrderType.java +++ b/src/main/java/org/schema/ItemListOrderType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ItemListOrderType} instance. */ public ItemListOrderType build() { - return new ItemListOrderType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ItemListOrderType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ItemListOrderType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ItemListOrderType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ItemPage.java b/src/main/java/org/schema/ItemPage.java index dc3aec0d..06035557 100644 --- a/src/main/java/org/schema/ItemPage.java +++ b/src/main/java/org/schema/ItemPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ItemPage} instance. */ public ItemPage build() { - return new ItemPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new ItemPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ItemPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected ItemPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/JewelryStore.java b/src/main/java/org/schema/JewelryStore.java index 058b0fd5..7400fa2c 100644 --- a/src/main/java/org/schema/JewelryStore.java +++ b/src/main/java/org/schema/JewelryStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link JewelryStore} instance. */ public JewelryStore build() { - return new JewelryStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new JewelryStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected JewelryStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected JewelryStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/JobPosting.java b/src/main/java/org/schema/JobPosting.java index 9f846c88..9070b8fd 100644 --- a/src/main/java/org/schema/JobPosting.java +++ b/src/main/java/org/schema/JobPosting.java @@ -139,7 +139,7 @@ public static final class Builder { * Creates new {@link JobPosting} instance. */ public JobPosting build() { - return new JobPosting(baseSalary, jobBenefits, datePosted, educationRequirements, employmentType, experienceRequirements, hiringOrganization, incentiveCompensation, industry, jobLocation, occupationalCategory, qualifications, responsibilities, salaryCurrency, skills, specialCommitments, title, workHours, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new JobPosting(baseSalary, jobBenefits, datePosted, educationRequirements, employmentType, experienceRequirements, hiringOrganization, incentiveCompensation, industry, jobLocation, occupationalCategory, qualifications, responsibilities, salaryCurrency, skills, specialCommitments, title, workHours, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The base salary of the job or of an employee in an EmployeeRole. @@ -395,6 +395,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrPriceSpecification baseSalary; private String jobBenefits; private java.util.Date datePosted; @@ -421,10 +425,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected JobPosting(NumberOrPriceSpecification baseSalary, String jobBenefits, java.util.Date datePosted, String educationRequirements, String employmentType, String experienceRequirements, Organization hiringOrganization, String incentiveCompensation, String industry, Place jobLocation, String occupationalCategory, String qualifications, String responsibilities, String salaryCurrency, String skills, String specialCommitments, String title, String workHours, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected JobPosting(NumberOrPriceSpecification baseSalary, String jobBenefits, java.util.Date datePosted, String educationRequirements, String employmentType, String experienceRequirements, Organization hiringOrganization, String incentiveCompensation, String industry, Place jobLocation, String occupationalCategory, String qualifications, String responsibilities, String salaryCurrency, String skills, String specialCommitments, String title, String workHours, 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); myBaseSalary = baseSalary; myJobBenefits = jobBenefits; myDatePosted = datePosted; diff --git a/src/main/java/org/schema/JoinAction.java b/src/main/java/org/schema/JoinAction.java index 609cc4c4..a81db90a 100644 --- a/src/main/java/org/schema/JoinAction.java +++ b/src/main/java/org/schema/JoinAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link JoinAction} instance. */ public JoinAction build() { - return new JoinAction(event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new JoinAction(event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Upcoming or past event associated with this place, organization, or action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Event event; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected JoinAction(Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected JoinAction(Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEvent = event; } private Event myEvent; diff --git a/src/main/java/org/schema/Joint.java b/src/main/java/org/schema/Joint.java index 3aee7233..21780488 100644 --- a/src/main/java/org/schema/Joint.java +++ b/src/main/java/org/schema/Joint.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link Joint} instance. */ public Joint build() { - return new Joint(biomechnicalClass, functionalClass, structuralClass, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Joint(biomechnicalClass, functionalClass, structuralClass, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The biomechanical properties of the bone. @@ -296,6 +296,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String biomechnicalClass; private String functionalClass; private String structuralClass; @@ -322,10 +326,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Joint(String biomechnicalClass, String functionalClass, String structuralClass, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Joint(String biomechnicalClass, String functionalClass, String structuralClass, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBiomechnicalClass = biomechnicalClass; myFunctionalClass = functionalClass; myStructuralClass = structuralClass; diff --git a/src/main/java/org/schema/LakeBodyOfWater.java b/src/main/java/org/schema/LakeBodyOfWater.java index 48c800f9..580d068c 100644 --- a/src/main/java/org/schema/LakeBodyOfWater.java +++ b/src/main/java/org/schema/LakeBodyOfWater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LakeBodyOfWater} instance. */ public LakeBodyOfWater build() { - return new LakeBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LakeBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LakeBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LakeBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Landform.java b/src/main/java/org/schema/Landform.java index 54ee1fa2..b369889b 100644 --- a/src/main/java/org/schema/Landform.java +++ b/src/main/java/org/schema/Landform.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Landform} instance. */ public Landform build() { - return new Landform(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Landform(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Landform(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Landform(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LandmarksOrHistoricalBuildings.java b/src/main/java/org/schema/LandmarksOrHistoricalBuildings.java index 59b8be3b..19fdd220 100644 --- a/src/main/java/org/schema/LandmarksOrHistoricalBuildings.java +++ b/src/main/java/org/schema/LandmarksOrHistoricalBuildings.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LandmarksOrHistoricalBuildings} instance. */ public LandmarksOrHistoricalBuildings build() { - return new LandmarksOrHistoricalBuildings(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LandmarksOrHistoricalBuildings(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LandmarksOrHistoricalBuildings(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LandmarksOrHistoricalBuildings(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Language.java b/src/main/java/org/schema/Language.java index 25514d56..266a2f2c 100644 --- a/src/main/java/org/schema/Language.java +++ b/src/main/java/org/schema/Language.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Language} instance. */ public Language build() { - return new Language(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Language(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Language(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Language(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/LeaveAction.java b/src/main/java/org/schema/LeaveAction.java index 5630ce7c..a1fb0a53 100644 --- a/src/main/java/org/schema/LeaveAction.java +++ b/src/main/java/org/schema/LeaveAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link LeaveAction} instance. */ public LeaveAction build() { - return new LeaveAction(event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LeaveAction(event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Upcoming or past event associated with this place, organization, or action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Event event; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LeaveAction(Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LeaveAction(Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEvent = event; } private Event myEvent; diff --git a/src/main/java/org/schema/LegislativeBuilding.java b/src/main/java/org/schema/LegislativeBuilding.java index 966441eb..e9fa428b 100644 --- a/src/main/java/org/schema/LegislativeBuilding.java +++ b/src/main/java/org/schema/LegislativeBuilding.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LegislativeBuilding} instance. */ public LegislativeBuilding build() { - return new LegislativeBuilding(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LegislativeBuilding(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LegislativeBuilding(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LegislativeBuilding(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LendAction.java b/src/main/java/org/schema/LendAction.java index 3b99c987..535afa40 100644 --- a/src/main/java/org/schema/LendAction.java +++ b/src/main/java/org/schema/LendAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link LendAction} instance. */ public LendAction build() { - return new LendAction(borrower, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LendAction(borrower, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The person that borrows the object being lent. @@ -233,6 +233,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person borrower; private Place fromLocation; private Place toLocation; @@ -250,10 +254,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LendAction(Person borrower, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LendAction(Person borrower, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBorrower = borrower; } private Person myBorrower; diff --git a/src/main/java/org/schema/Library.java b/src/main/java/org/schema/Library.java index a456b5e5..58f90720 100644 --- a/src/main/java/org/schema/Library.java +++ b/src/main/java/org/schema/Library.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Library} instance. */ public Library build() { - return new Library(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Library(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Library(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Library(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LifestyleModification.java b/src/main/java/org/schema/LifestyleModification.java index 0d858202..be59be9d 100644 --- a/src/main/java/org/schema/LifestyleModification.java +++ b/src/main/java/org/schema/LifestyleModification.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link LifestyleModification} instance. */ public LifestyleModification build() { - return new LifestyleModification(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LifestyleModification(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LifestyleModification(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LifestyleModification(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Ligament.java b/src/main/java/org/schema/Ligament.java index d388b631..9e193a05 100644 --- a/src/main/java/org/schema/Ligament.java +++ b/src/main/java/org/schema/Ligament.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Ligament} instance. */ public Ligament build() { - return new Ligament(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Ligament(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -257,6 +257,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private String bodyLocation; private AnatomicalStructure connectedTo; @@ -280,9 +284,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Ligament(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Ligament(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LikeAction.java b/src/main/java/org/schema/LikeAction.java index 0ed8d4d4..aec32ed0 100644 --- a/src/main/java/org/schema/LikeAction.java +++ b/src/main/java/org/schema/LikeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LikeAction} instance. */ public LikeAction build() { - return new LikeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LikeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LikeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LikeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LiquorStore.java b/src/main/java/org/schema/LiquorStore.java index 1c0b2278..d9b98e29 100644 --- a/src/main/java/org/schema/LiquorStore.java +++ b/src/main/java/org/schema/LiquorStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LiquorStore} instance. */ public LiquorStore build() { - return new LiquorStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LiquorStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LiquorStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LiquorStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ListItem.java b/src/main/java/org/schema/ListItem.java index 950ca948..9e1b2d9e 100644 --- a/src/main/java/org/schema/ListItem.java +++ b/src/main/java/org/schema/ListItem.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link ListItem} instance. */ public ListItem build() { - return new ListItem(item, previousItem, nextItem, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ListItem(item, previousItem, nextItem, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An entity represented by an entry in a list (e.g. an 'artist' in a list of 'artists')’. @@ -190,6 +190,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing item; private ListItem previousItem; private ListItem nextItem; @@ -201,10 +205,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ListItem(Thing item, ListItem previousItem, ListItem nextItem, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ListItem(Thing item, ListItem previousItem, ListItem nextItem, 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); myItem = item; myPreviousItem = previousItem; myNextItem = nextItem; diff --git a/src/main/java/org/schema/ListenAction.java b/src/main/java/org/schema/ListenAction.java index b57d7be2..1d7fd2da 100644 --- a/src/main/java/org/schema/ListenAction.java +++ b/src/main/java/org/schema/ListenAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ListenAction} instance. */ public ListenAction build() { - return new ListenAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ListenAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ListenAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ListenAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LiteraryEvent.java b/src/main/java/org/schema/LiteraryEvent.java index 54e54a11..698032b7 100644 --- a/src/main/java/org/schema/LiteraryEvent.java +++ b/src/main/java/org/schema/LiteraryEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LiteraryEvent} instance. */ public LiteraryEvent build() { - return new LiteraryEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LiteraryEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LiteraryEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LiteraryEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LocalBusiness.java b/src/main/java/org/schema/LocalBusiness.java index 5ad3a702..2986f941 100644 --- a/src/main/java/org/schema/LocalBusiness.java +++ b/src/main/java/org/schema/LocalBusiness.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link LocalBusiness} instance. */ public LocalBusiness build() { - return new LocalBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LocalBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -388,10 +392,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LocalBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LocalBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myParentOrganization = parentOrganization; myCurrenciesAccepted = currenciesAccepted; myOpeningHours = openingHours; diff --git a/src/main/java/org/schema/LockerDelivery.java b/src/main/java/org/schema/LockerDelivery.java index f083ca01..daf7ee39 100644 --- a/src/main/java/org/schema/LockerDelivery.java +++ b/src/main/java/org/schema/LockerDelivery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LockerDelivery} instance. */ public LockerDelivery build() { - return new LockerDelivery(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LockerDelivery(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LockerDelivery(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LockerDelivery(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Locksmith.java b/src/main/java/org/schema/Locksmith.java index c4d48d4b..d2ad9127 100644 --- a/src/main/java/org/schema/Locksmith.java +++ b/src/main/java/org/schema/Locksmith.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Locksmith} instance. */ public Locksmith build() { - return new Locksmith(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Locksmith(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Locksmith(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Locksmith(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LodgingBusiness.java b/src/main/java/org/schema/LodgingBusiness.java index f6496707..1cb06fee 100644 --- a/src/main/java/org/schema/LodgingBusiness.java +++ b/src/main/java/org/schema/LodgingBusiness.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link LodgingBusiness} instance. */ public LodgingBusiness build() { - return new LodgingBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LodgingBusiness(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LodgingBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LodgingBusiness(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/LodgingReservation.java b/src/main/java/org/schema/LodgingReservation.java index 059f4511..1519fd6f 100644 --- a/src/main/java/org/schema/LodgingReservation.java +++ b/src/main/java/org/schema/LodgingReservation.java @@ -68,7 +68,7 @@ public static final class Builder { * Creates new {@link LodgingReservation} instance. */ public LodgingReservation build() { - return new LodgingReservation(checkinTime, checkoutTime, lodgingUnitType, lodgingUnitDescription, numAdults, numChildren, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LodgingReservation(checkinTime, checkoutTime, lodgingUnitType, lodgingUnitDescription, numAdults, numChildren, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The earliest someone may check into a lodging establishment. @@ -386,6 +386,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date checkinTime; private java.util.Date checkoutTime; private QualitativeValueOrString lodgingUnitType; @@ -412,10 +416,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LodgingReservation(java.util.Date checkinTime, java.util.Date checkoutTime, QualitativeValueOrString lodgingUnitType, String lodgingUnitDescription, IntegerOrQuantitativeValue numAdults, IntegerOrQuantitativeValue numChildren, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LodgingReservation(java.util.Date checkinTime, java.util.Date checkoutTime, QualitativeValueOrString lodgingUnitType, String lodgingUnitDescription, IntegerOrQuantitativeValue numAdults, IntegerOrQuantitativeValue numChildren, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCheckinTime = checkinTime; myCheckoutTime = checkoutTime; myLodgingUnitType = lodgingUnitType; diff --git a/src/main/java/org/schema/LoseAction.java b/src/main/java/org/schema/LoseAction.java index f940f4e0..aad74838 100644 --- a/src/main/java/org/schema/LoseAction.java +++ b/src/main/java/org/schema/LoseAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link LoseAction} instance. */ public LoseAction build() { - return new LoseAction(winner, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LoseAction(winner, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The winner of the action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person winner; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LoseAction(Person winner, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LoseAction(Person winner, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myWinner = winner; } private Person myWinner; diff --git a/src/main/java/org/schema/LymphaticVessel.java b/src/main/java/org/schema/LymphaticVessel.java index 3da74df8..5b569e89 100644 --- a/src/main/java/org/schema/LymphaticVessel.java +++ b/src/main/java/org/schema/LymphaticVessel.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link LymphaticVessel} instance. */ public LymphaticVessel build() { - return new LymphaticVessel(originatesFrom, regionDrained, runsTo, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new LymphaticVessel(originatesFrom, regionDrained, runsTo, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The vasculature the lymphatic structure originates, or afferents, from. @@ -305,6 +305,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Vessel originatesFrom; private AnatomicalStructureOrAnatomicalSystem regionDrained; private Vessel runsTo; @@ -331,10 +335,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected LymphaticVessel(Vessel originatesFrom, AnatomicalStructureOrAnatomicalSystem regionDrained, Vessel runsTo, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected LymphaticVessel(Vessel originatesFrom, AnatomicalStructureOrAnatomicalSystem regionDrained, Vessel runsTo, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myOriginatesFrom = originatesFrom; myRegionDrained = regionDrained; myRunsTo = runsTo; diff --git a/src/main/java/org/schema/Map.java b/src/main/java/org/schema/Map.java index 68a5c88d..88e78a37 100644 --- a/src/main/java/org/schema/Map.java +++ b/src/main/java/org/schema/Map.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link Map} instance. */ public Map build() { - return new Map(mapType, 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); + return new Map(mapType, 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); } /** * Indicates the kind of Map, from the MapCategoryType Enumeration. @@ -695,6 +695,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MapCategoryType mapType; private String schemaVersion; private Thing about; @@ -767,10 +771,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Map(MapCategoryType mapType, 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) { - super(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); + protected Map(MapCategoryType mapType, 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(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); myMapType = mapType; } private MapCategoryType myMapType; diff --git a/src/main/java/org/schema/MapCategoryType.java b/src/main/java/org/schema/MapCategoryType.java index 814c1d9e..28132782 100644 --- a/src/main/java/org/schema/MapCategoryType.java +++ b/src/main/java/org/schema/MapCategoryType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MapCategoryType} instance. */ public MapCategoryType build() { - return new MapCategoryType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MapCategoryType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MapCategoryType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MapCategoryType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MarryAction.java b/src/main/java/org/schema/MarryAction.java index a83ca2f7..3b5394f4 100644 --- a/src/main/java/org/schema/MarryAction.java +++ b/src/main/java/org/schema/MarryAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MarryAction} instance. */ public MarryAction build() { - return new MarryAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MarryAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MarryAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MarryAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Mass.java b/src/main/java/org/schema/Mass.java index e875a0e2..f9ae233f 100644 --- a/src/main/java/org/schema/Mass.java +++ b/src/main/java/org/schema/Mass.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Mass} instance. */ public Mass build() { - return new Mass(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Mass(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Mass(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Mass(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/MaximumDoseSchedule.java b/src/main/java/org/schema/MaximumDoseSchedule.java index 4084f569..3fe204f0 100644 --- a/src/main/java/org/schema/MaximumDoseSchedule.java +++ b/src/main/java/org/schema/MaximumDoseSchedule.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MaximumDoseSchedule} instance. */ public MaximumDoseSchedule build() { - return new MaximumDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MaximumDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unit of the dose, e.g. 'mg'. @@ -221,6 +221,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String doseUnit; private Number doseValue; private String frequency; @@ -239,9 +243,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MaximumDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MaximumDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MediaObject.java b/src/main/java/org/schema/MediaObject.java index c790bc53..98f81029 100644 --- a/src/main/java/org/schema/MediaObject.java +++ b/src/main/java/org/schema/MediaObject.java @@ -128,7 +128,7 @@ public static final class Builder { * Creates new {@link MediaObject} instance. */ public MediaObject build() { - return new MediaObject(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new MediaObject(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * A NewsArticle associated with the Media Object. @@ -910,6 +910,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NewsArticle associatedArticle; private String bitrate; private String contentSize; @@ -997,10 +1001,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MediaObject(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(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); + protected MediaObject(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(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); myAssociatedArticle = associatedArticle; myBitrate = bitrate; myContentSize = contentSize; diff --git a/src/main/java/org/schema/MedicalAudience.java b/src/main/java/org/schema/MedicalAudience.java index 6fd3aa25..bcd21c29 100644 --- a/src/main/java/org/schema/MedicalAudience.java +++ b/src/main/java/org/schema/MedicalAudience.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalAudience} instance. */ public MedicalAudience build() { - return new MedicalAudience(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalAudience(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Expectations for health conditions of target audience. @@ -215,6 +215,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCondition healthCondition; private String requiredGender; private Integer requiredMaxAge; @@ -232,9 +236,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalAudience(MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalAudience(MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalCause.java b/src/main/java/org/schema/MedicalCause.java index 2c0b0d31..12061e72 100644 --- a/src/main/java/org/schema/MedicalCause.java +++ b/src/main/java/org/schema/MedicalCause.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalCause} instance. */ public MedicalCause build() { - return new MedicalCause(causeOf, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalCause(causeOf, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The condition, complication, symptom, sign, etc. caused. @@ -207,6 +207,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity causeOf; private MedicalCode code; private MedicalGuideline guideline; @@ -222,10 +226,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalCause(MedicalEntity causeOf, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalCause(MedicalEntity causeOf, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCauseOf = causeOf; } private MedicalEntity myCauseOf; diff --git a/src/main/java/org/schema/MedicalClinic.java b/src/main/java/org/schema/MedicalClinic.java index 72120f64..2f35a720 100644 --- a/src/main/java/org/schema/MedicalClinic.java +++ b/src/main/java/org/schema/MedicalClinic.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link MedicalClinic} instance. */ public MedicalClinic build() { - return new MedicalClinic(availableService, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalClinic(availableService, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical service available from this provider. @@ -373,6 +373,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalProcedureOrMedicalTestOrMedicalTherapy availableService; private MedicalSpecialty medicalSpecialty; private Organization parentOrganization; @@ -403,10 +407,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalClinic(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalClinic(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAvailableService = availableService; myMedicalSpecialty = medicalSpecialty; } diff --git a/src/main/java/org/schema/MedicalCode.java b/src/main/java/org/schema/MedicalCode.java index 8b72f827..239b473b 100644 --- a/src/main/java/org/schema/MedicalCode.java +++ b/src/main/java/org/schema/MedicalCode.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalCode} instance. */ public MedicalCode build() { - return new MedicalCode(codeValue, codingSystem, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalCode(codeValue, codingSystem, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The actual code. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String codeValue; private String codingSystem; private MedicalCode code; @@ -236,10 +240,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalCode(String codeValue, String codingSystem, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalCode(String codeValue, String codingSystem, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCodeValue = codeValue; myCodingSystem = codingSystem; } diff --git a/src/main/java/org/schema/MedicalCondition.java b/src/main/java/org/schema/MedicalCondition.java index 76ad88ae..e972546e 100644 --- a/src/main/java/org/schema/MedicalCondition.java +++ b/src/main/java/org/schema/MedicalCondition.java @@ -127,7 +127,7 @@ public static final class Builder { * Creates new {@link MedicalCondition} instance. */ public MedicalCondition build() { - return new MedicalCondition(associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalCondition(associatedAnatomy, cause, differentialDiagnosis, epidemiology, expectedPrognosis, naturalProgression, pathophysiology, possibleComplication, possibleTreatment, primaryPrevention, riskFactor, secondaryPrevention, signOrSymptom, stage, subtype, typicalTest, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The anatomy of the underlying organ system or structures associated with this entity. @@ -419,6 +419,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy; private MedicalCause cause; private DDxElement differentialDiagnosis; @@ -449,10 +453,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalCondition(AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, MedicalCause cause, DDxElement differentialDiagnosis, String epidemiology, String expectedPrognosis, String naturalProgression, String pathophysiology, String possibleComplication, MedicalTherapy possibleTreatment, MedicalTherapy primaryPrevention, MedicalRiskFactor riskFactor, MedicalTherapy secondaryPrevention, MedicalSignOrSymptom signOrSymptom, MedicalConditionStage stage, String subtype, MedicalTest typicalTest, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalCondition(AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, MedicalCause cause, DDxElement differentialDiagnosis, String epidemiology, String expectedPrognosis, String naturalProgression, String pathophysiology, String possibleComplication, MedicalTherapy possibleTreatment, MedicalTherapy primaryPrevention, MedicalRiskFactor riskFactor, MedicalTherapy secondaryPrevention, MedicalSignOrSymptom signOrSymptom, MedicalConditionStage stage, String subtype, MedicalTest typicalTest, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAssociatedAnatomy = associatedAnatomy; myCause = cause; myDifferentialDiagnosis = differentialDiagnosis; diff --git a/src/main/java/org/schema/MedicalConditionStage.java b/src/main/java/org/schema/MedicalConditionStage.java index 87912e3c..f4b08c5c 100644 --- a/src/main/java/org/schema/MedicalConditionStage.java +++ b/src/main/java/org/schema/MedicalConditionStage.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalConditionStage} instance. */ public MedicalConditionStage build() { - return new MedicalConditionStage(stageAsNumber, subStageSuffix, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalConditionStage(stageAsNumber, subStageSuffix, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The stage represented as a number, e.g. 3. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number stageAsNumber; private String subStageSuffix; private MedicalCode code; @@ -236,10 +240,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalConditionStage(Number stageAsNumber, String subStageSuffix, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalConditionStage(Number stageAsNumber, String subStageSuffix, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myStageAsNumber = stageAsNumber; mySubStageSuffix = subStageSuffix; } diff --git a/src/main/java/org/schema/MedicalContraindication.java b/src/main/java/org/schema/MedicalContraindication.java index 907fdea4..ea58372a 100644 --- a/src/main/java/org/schema/MedicalContraindication.java +++ b/src/main/java/org/schema/MedicalContraindication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalContraindication} instance. */ public MedicalContraindication build() { - return new MedicalContraindication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalContraindication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -194,6 +194,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -208,9 +212,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalContraindication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalContraindication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalDevice.java b/src/main/java/org/schema/MedicalDevice.java index 743c33f6..7016e737 100644 --- a/src/main/java/org/schema/MedicalDevice.java +++ b/src/main/java/org/schema/MedicalDevice.java @@ -79,7 +79,7 @@ public static final class Builder { * Creates new {@link MedicalDevice} instance. */ public MedicalDevice build() { - return new MedicalDevice(adverseOutcome, contraindication, indication, postOp, preOp, procedure, purpose, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalDevice(adverseOutcome, contraindication, indication, postOp, preOp, procedure, purpose, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -307,6 +307,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalIndication indication; @@ -329,10 +333,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalDevice(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalIndication indication, String postOp, String preOp, String procedure, MedicalDevicePurposeOrThing purpose, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalDevice(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalIndication indication, String postOp, String preOp, String procedure, MedicalDevicePurposeOrThing purpose, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAdverseOutcome = adverseOutcome; myContraindication = contraindication; myIndication = indication; diff --git a/src/main/java/org/schema/MedicalDevicePurpose.java b/src/main/java/org/schema/MedicalDevicePurpose.java index a8861c40..a68e927d 100644 --- a/src/main/java/org/schema/MedicalDevicePurpose.java +++ b/src/main/java/org/schema/MedicalDevicePurpose.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalDevicePurpose} instance. */ public MedicalDevicePurpose build() { - return new MedicalDevicePurpose(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalDevicePurpose(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalDevicePurpose(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalDevicePurpose(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalEntity.java b/src/main/java/org/schema/MedicalEntity.java index 8da75b01..552c51e5 100644 --- a/src/main/java/org/schema/MedicalEntity.java +++ b/src/main/java/org/schema/MedicalEntity.java @@ -67,7 +67,7 @@ public static final class Builder { * Creates new {@link MedicalEntity} instance. */ public MedicalEntity build() { - return new MedicalEntity(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalEntity(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -230,6 +230,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -244,10 +248,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalEntity(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalEntity(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, 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); myCode = code; myGuideline = guideline; myMedicineSystem = medicineSystem; diff --git a/src/main/java/org/schema/MedicalEnumeration.java b/src/main/java/org/schema/MedicalEnumeration.java index 40d9e664..a4a790c1 100644 --- a/src/main/java/org/schema/MedicalEnumeration.java +++ b/src/main/java/org/schema/MedicalEnumeration.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MedicalEnumeration} instance. */ public MedicalEnumeration build() { - return new MedicalEnumeration(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalEnumeration(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalEnumeration(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalEnumeration(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalEvidenceLevel.java b/src/main/java/org/schema/MedicalEvidenceLevel.java index bdbf107d..e46ae9a3 100644 --- a/src/main/java/org/schema/MedicalEvidenceLevel.java +++ b/src/main/java/org/schema/MedicalEvidenceLevel.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalEvidenceLevel} instance. */ public MedicalEvidenceLevel build() { - return new MedicalEvidenceLevel(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalEvidenceLevel(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalEvidenceLevel(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalEvidenceLevel(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalGuideline.java b/src/main/java/org/schema/MedicalGuideline.java index 9c844c16..05f783d6 100644 --- a/src/main/java/org/schema/MedicalGuideline.java +++ b/src/main/java/org/schema/MedicalGuideline.java @@ -56,7 +56,7 @@ public static final class Builder { * Creates new {@link MedicalGuideline} instance. */ public MedicalGuideline build() { - return new MedicalGuideline(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalGuideline(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Strength of evidence of the data used to formulate the guideline (enumerated). @@ -247,6 +247,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEvidenceLevel evidenceLevel; private String evidenceOrigin; private java.util.Date guidelineDate; @@ -265,10 +269,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalGuideline(MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalGuideline(MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEvidenceLevel = evidenceLevel; myEvidenceOrigin = evidenceOrigin; myGuidelineDate = guidelineDate; diff --git a/src/main/java/org/schema/MedicalGuidelineContraindication.java b/src/main/java/org/schema/MedicalGuidelineContraindication.java index 9c307746..062aea4d 100644 --- a/src/main/java/org/schema/MedicalGuidelineContraindication.java +++ b/src/main/java/org/schema/MedicalGuidelineContraindication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalGuidelineContraindication} instance. */ public MedicalGuidelineContraindication build() { - return new MedicalGuidelineContraindication(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalGuidelineContraindication(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Strength of evidence of the data used to formulate the guideline (enumerated). @@ -222,6 +222,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEvidenceLevel evidenceLevel; private String evidenceOrigin; private java.util.Date guidelineDate; @@ -240,9 +244,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalGuidelineContraindication(MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalGuidelineContraindication(MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalGuidelineRecommendation.java b/src/main/java/org/schema/MedicalGuidelineRecommendation.java index 72c8d170..c5923a4e 100644 --- a/src/main/java/org/schema/MedicalGuidelineRecommendation.java +++ b/src/main/java/org/schema/MedicalGuidelineRecommendation.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalGuidelineRecommendation} instance. */ public MedicalGuidelineRecommendation build() { - return new MedicalGuidelineRecommendation(recommendationStrength, evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalGuidelineRecommendation(recommendationStrength, evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Strength of the guideline's recommendation (e.g. 'class I'). @@ -235,6 +235,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String recommendationStrength; private MedicalEvidenceLevel evidenceLevel; private String evidenceOrigin; @@ -254,10 +258,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalGuidelineRecommendation(String recommendationStrength, MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalGuidelineRecommendation(String recommendationStrength, MedicalEvidenceLevel evidenceLevel, String evidenceOrigin, java.util.Date guidelineDate, MedicalEntity guidelineSubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(evidenceLevel, evidenceOrigin, guidelineDate, guidelineSubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecommendationStrength = recommendationStrength; } private String myRecommendationStrength; diff --git a/src/main/java/org/schema/MedicalImagingTechnique.java b/src/main/java/org/schema/MedicalImagingTechnique.java index b15efcad..00e90959 100644 --- a/src/main/java/org/schema/MedicalImagingTechnique.java +++ b/src/main/java/org/schema/MedicalImagingTechnique.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalImagingTechnique} instance. */ public MedicalImagingTechnique build() { - return new MedicalImagingTechnique(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalImagingTechnique(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalImagingTechnique(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalImagingTechnique(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalIndication.java b/src/main/java/org/schema/MedicalIndication.java index 4a13b743..cfcae376 100644 --- a/src/main/java/org/schema/MedicalIndication.java +++ b/src/main/java/org/schema/MedicalIndication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalIndication} instance. */ public MedicalIndication build() { - return new MedicalIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -194,6 +194,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -208,9 +212,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalIntangible.java b/src/main/java/org/schema/MedicalIntangible.java index 992c6545..cf327726 100644 --- a/src/main/java/org/schema/MedicalIntangible.java +++ b/src/main/java/org/schema/MedicalIntangible.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MedicalIntangible} instance. */ public MedicalIntangible build() { - return new MedicalIntangible(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalIntangible(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -193,6 +193,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -207,9 +211,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalIntangible(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalIntangible(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalObservationalStudy.java b/src/main/java/org/schema/MedicalObservationalStudy.java index 049a4bef..59816373 100644 --- a/src/main/java/org/schema/MedicalObservationalStudy.java +++ b/src/main/java/org/schema/MedicalObservationalStudy.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalObservationalStudy} instance. */ public MedicalObservationalStudy build() { - return new MedicalObservationalStudy(studyDesign, outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalObservationalStudy(studyDesign, outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Specifics about the observational study design (enumerated). @@ -249,6 +249,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalObservationalStudyDesign studyDesign; private String outcome; private String population; @@ -270,10 +274,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalObservationalStudy(MedicalObservationalStudyDesign studyDesign, String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalObservationalStudy(MedicalObservationalStudyDesign studyDesign, String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myStudyDesign = studyDesign; } private MedicalObservationalStudyDesign myStudyDesign; diff --git a/src/main/java/org/schema/MedicalObservationalStudyDesign.java b/src/main/java/org/schema/MedicalObservationalStudyDesign.java index b930058b..f93191e5 100644 --- a/src/main/java/org/schema/MedicalObservationalStudyDesign.java +++ b/src/main/java/org/schema/MedicalObservationalStudyDesign.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalObservationalStudyDesign} instance. */ public MedicalObservationalStudyDesign build() { - return new MedicalObservationalStudyDesign(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalObservationalStudyDesign(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalObservationalStudyDesign(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalObservationalStudyDesign(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalOrganization.java b/src/main/java/org/schema/MedicalOrganization.java index 9032b2b7..20634eff 100644 --- a/src/main/java/org/schema/MedicalOrganization.java +++ b/src/main/java/org/schema/MedicalOrganization.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MedicalOrganization} instance. */ public MedicalOrganization build() { - return new MedicalOrganization(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalOrganization(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalOrganization(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalOrganization(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalProcedure.java b/src/main/java/org/schema/MedicalProcedure.java index bb2c0ebc..2a7f4e89 100644 --- a/src/main/java/org/schema/MedicalProcedure.java +++ b/src/main/java/org/schema/MedicalProcedure.java @@ -55,7 +55,7 @@ public static final class Builder { * Creates new {@link MedicalProcedure} instance. */ public MedicalProcedure build() { - return new MedicalProcedure(followup, howPerformed, preparation, procedureType, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalProcedure(followup, howPerformed, preparation, procedureType, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Typical or recommended followup care after the procedure is performed. @@ -246,6 +246,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String followup; private String howPerformed; private String preparation; @@ -264,10 +268,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalProcedure(String followup, String howPerformed, String preparation, MedicalProcedureType procedureType, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalProcedure(String followup, String howPerformed, String preparation, MedicalProcedureType procedureType, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myFollowup = followup; myHowPerformed = howPerformed; myPreparation = preparation; diff --git a/src/main/java/org/schema/MedicalProcedureType.java b/src/main/java/org/schema/MedicalProcedureType.java index 8030cbaf..9cc2279c 100644 --- a/src/main/java/org/schema/MedicalProcedureType.java +++ b/src/main/java/org/schema/MedicalProcedureType.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalProcedureType} instance. */ public MedicalProcedureType build() { - return new MedicalProcedureType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalProcedureType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalProcedureType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalProcedureType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalRiskCalculator.java b/src/main/java/org/schema/MedicalRiskCalculator.java index f172416e..1f5cc443 100644 --- a/src/main/java/org/schema/MedicalRiskCalculator.java +++ b/src/main/java/org/schema/MedicalRiskCalculator.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalRiskCalculator} instance. */ public MedicalRiskCalculator build() { - return new MedicalRiskCalculator(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalRiskCalculator(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The condition, complication, or symptom whose risk is being estimated. @@ -208,6 +208,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity estimatesRiskOf; private MedicalRiskFactor includedRiskFactor; private MedicalCode code; @@ -224,9 +228,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalRiskCalculator(MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalRiskCalculator(MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalRiskEstimator.java b/src/main/java/org/schema/MedicalRiskEstimator.java index 12fa592b..b39ed38f 100644 --- a/src/main/java/org/schema/MedicalRiskEstimator.java +++ b/src/main/java/org/schema/MedicalRiskEstimator.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalRiskEstimator} instance. */ public MedicalRiskEstimator build() { - return new MedicalRiskEstimator(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalRiskEstimator(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The condition, complication, or symptom whose risk is being estimated. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity estimatesRiskOf; private MedicalRiskFactor includedRiskFactor; private MedicalCode code; @@ -236,10 +240,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalRiskEstimator(MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalRiskEstimator(MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEstimatesRiskOf = estimatesRiskOf; myIncludedRiskFactor = includedRiskFactor; } diff --git a/src/main/java/org/schema/MedicalRiskFactor.java b/src/main/java/org/schema/MedicalRiskFactor.java index 9c70104c..b1613ac1 100644 --- a/src/main/java/org/schema/MedicalRiskFactor.java +++ b/src/main/java/org/schema/MedicalRiskFactor.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalRiskFactor} instance. */ public MedicalRiskFactor build() { - return new MedicalRiskFactor(increasesRiskOf, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalRiskFactor(increasesRiskOf, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The condition, complication, etc. influenced by this factor. @@ -207,6 +207,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity increasesRiskOf; private MedicalCode code; private MedicalGuideline guideline; @@ -222,10 +226,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalRiskFactor(MedicalEntity increasesRiskOf, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalRiskFactor(MedicalEntity increasesRiskOf, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIncreasesRiskOf = increasesRiskOf; } private MedicalEntity myIncreasesRiskOf; diff --git a/src/main/java/org/schema/MedicalRiskScore.java b/src/main/java/org/schema/MedicalRiskScore.java index 6db8253d..dafcf218 100644 --- a/src/main/java/org/schema/MedicalRiskScore.java +++ b/src/main/java/org/schema/MedicalRiskScore.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalRiskScore} instance. */ public MedicalRiskScore build() { - return new MedicalRiskScore(algorithm, estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalRiskScore(algorithm, estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The algorithm or rules to follow to compute the score. @@ -221,6 +221,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String algorithm; private MedicalEntity estimatesRiskOf; private MedicalRiskFactor includedRiskFactor; @@ -238,10 +242,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalRiskScore(String algorithm, MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalRiskScore(String algorithm, MedicalEntity estimatesRiskOf, MedicalRiskFactor includedRiskFactor, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(estimatesRiskOf, includedRiskFactor, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAlgorithm = algorithm; } private String myAlgorithm; diff --git a/src/main/java/org/schema/MedicalScholarlyArticle.java b/src/main/java/org/schema/MedicalScholarlyArticle.java index debd87b8..52bda4ae 100644 --- a/src/main/java/org/schema/MedicalScholarlyArticle.java +++ b/src/main/java/org/schema/MedicalScholarlyArticle.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link MedicalScholarlyArticle} instance. */ public MedicalScholarlyArticle build() { - return new MedicalScholarlyArticle(publicationType, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new MedicalScholarlyArticle(publicationType, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * The type of the medical article, taken from the US NLM MeSH publication type catalog. @@ -755,6 +755,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String publicationType; private String articleBody; private String articleSection; @@ -833,10 +837,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalScholarlyArticle(String publicationType, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected MedicalScholarlyArticle(String publicationType, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); myPublicationType = publicationType; } private String myPublicationType; diff --git a/src/main/java/org/schema/MedicalSign.java b/src/main/java/org/schema/MedicalSign.java index 05a4e7fb..bf3cb176 100644 --- a/src/main/java/org/schema/MedicalSign.java +++ b/src/main/java/org/schema/MedicalSign.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalSign} instance. */ public MedicalSign build() { - return new MedicalSign(identifyingExam, identifyingTest, cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalSign(identifyingExam, identifyingTest, cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A physical examination that can identify this sign. @@ -234,6 +234,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PhysicalExam identifyingExam; private MedicalTest identifyingTest; private MedicalCause cause; @@ -252,10 +256,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalSign(PhysicalExam identifyingExam, MedicalTest identifyingTest, MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalSign(PhysicalExam identifyingExam, MedicalTest identifyingTest, MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIdentifyingExam = identifyingExam; myIdentifyingTest = identifyingTest; } diff --git a/src/main/java/org/schema/MedicalSignOrSymptom.java b/src/main/java/org/schema/MedicalSignOrSymptom.java index e6a9ebcf..70d6e2a2 100644 --- a/src/main/java/org/schema/MedicalSignOrSymptom.java +++ b/src/main/java/org/schema/MedicalSignOrSymptom.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalSignOrSymptom} instance. */ public MedicalSignOrSymptom build() { - return new MedicalSignOrSymptom(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalSignOrSymptom(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An underlying cause. More specifically, one of the causative agent(s) that are most directly responsible for the pathophysiologic process that eventually results in the occurrence. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCause cause; private MedicalTherapy possibleTreatment; private MedicalCode code; @@ -236,10 +240,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalSignOrSymptom(MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalSignOrSymptom(MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCause = cause; myPossibleTreatment = possibleTreatment; } diff --git a/src/main/java/org/schema/MedicalSpecialty.java b/src/main/java/org/schema/MedicalSpecialty.java index 72ec8def..06bcf30b 100644 --- a/src/main/java/org/schema/MedicalSpecialty.java +++ b/src/main/java/org/schema/MedicalSpecialty.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalSpecialty} instance. */ public MedicalSpecialty build() { - return new MedicalSpecialty(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalSpecialty(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalSpecialty(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalSpecialty(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalStudy.java b/src/main/java/org/schema/MedicalStudy.java index 80378e0e..96eb9436 100644 --- a/src/main/java/org/schema/MedicalStudy.java +++ b/src/main/java/org/schema/MedicalStudy.java @@ -67,7 +67,7 @@ public static final class Builder { * Creates new {@link MedicalStudy} instance. */ public MedicalStudy build() { - return new MedicalStudy(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalStudy(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Expected or actual outcomes of the study. @@ -272,6 +272,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String outcome; private String population; private Organization sponsor; @@ -292,10 +296,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalStudy(String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalStudy(String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myOutcome = outcome; myPopulation = population; mySponsor = sponsor; diff --git a/src/main/java/org/schema/MedicalStudyStatus.java b/src/main/java/org/schema/MedicalStudyStatus.java index 165676af..1a70a7d5 100644 --- a/src/main/java/org/schema/MedicalStudyStatus.java +++ b/src/main/java/org/schema/MedicalStudyStatus.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalStudyStatus} instance. */ public MedicalStudyStatus build() { - return new MedicalStudyStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalStudyStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalStudyStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalStudyStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalSymptom.java b/src/main/java/org/schema/MedicalSymptom.java index 310dd1be..a91bb872 100644 --- a/src/main/java/org/schema/MedicalSymptom.java +++ b/src/main/java/org/schema/MedicalSymptom.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalSymptom} instance. */ public MedicalSymptom build() { - return new MedicalSymptom(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalSymptom(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An underlying cause. More specifically, one of the causative agent(s) that are most directly responsible for the pathophysiologic process that eventually results in the occurrence. @@ -208,6 +208,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCause cause; private MedicalTherapy possibleTreatment; private MedicalCode code; @@ -224,9 +228,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalSymptom(MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalSymptom(MedicalCause cause, MedicalTherapy possibleTreatment, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(cause, possibleTreatment, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalTest.java b/src/main/java/org/schema/MedicalTest.java index 76f02d51..d49fdaaa 100644 --- a/src/main/java/org/schema/MedicalTest.java +++ b/src/main/java/org/schema/MedicalTest.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link MedicalTest} instance. */ public MedicalTest build() { - return new MedicalTest(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalTest(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Drugs that affect the test's results. @@ -259,6 +259,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Drug affectedBy; private String normalRange; private MedicalSign signDetected; @@ -278,10 +282,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalTest(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalTest(Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAffectedBy = affectedBy; myNormalRange = normalRange; mySignDetected = signDetected; diff --git a/src/main/java/org/schema/MedicalTestPanel.java b/src/main/java/org/schema/MedicalTestPanel.java index 01bfaa9b..7dea6033 100644 --- a/src/main/java/org/schema/MedicalTestPanel.java +++ b/src/main/java/org/schema/MedicalTestPanel.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link MedicalTestPanel} instance. */ public MedicalTestPanel build() { - return new MedicalTestPanel(subTest, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalTestPanel(subTest, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A component test of the panel. @@ -242,6 +242,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalTest subTest; private Drug affectedBy; private String normalRange; @@ -262,10 +266,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalTestPanel(MedicalTest subTest, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalTestPanel(MedicalTest subTest, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySubTest = subTest; } private MedicalTest mySubTest; diff --git a/src/main/java/org/schema/MedicalTherapy.java b/src/main/java/org/schema/MedicalTherapy.java index 3862f0af..89a7b6a8 100644 --- a/src/main/java/org/schema/MedicalTherapy.java +++ b/src/main/java/org/schema/MedicalTherapy.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link MedicalTherapy} instance. */ public MedicalTherapy build() { - return new MedicalTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -259,6 +259,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -278,10 +282,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAdverseOutcome = adverseOutcome; myContraindication = contraindication; myDuplicateTherapy = duplicateTherapy; diff --git a/src/main/java/org/schema/MedicalTrial.java b/src/main/java/org/schema/MedicalTrial.java index 43b976a5..f4bf3408 100644 --- a/src/main/java/org/schema/MedicalTrial.java +++ b/src/main/java/org/schema/MedicalTrial.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link MedicalTrial} instance. */ public MedicalTrial build() { - return new MedicalTrial(phase, trialDesign, outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalTrial(phase, trialDesign, outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The phase of the trial. @@ -262,6 +262,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String phase; private MedicalTrialDesign trialDesign; private String outcome; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalTrial(String phase, MedicalTrialDesign trialDesign, String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalTrial(String phase, MedicalTrialDesign trialDesign, String outcome, String population, Organization sponsor, MedicalStudyStatus status, AdministrativeArea studyLocation, MedicalEntity studySubject, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(outcome, population, sponsor, status, studyLocation, studySubject, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPhase = phase; myTrialDesign = trialDesign; } diff --git a/src/main/java/org/schema/MedicalTrialDesign.java b/src/main/java/org/schema/MedicalTrialDesign.java index 058fdd3f..f91979ef 100644 --- a/src/main/java/org/schema/MedicalTrialDesign.java +++ b/src/main/java/org/schema/MedicalTrialDesign.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MedicalTrialDesign} instance. */ public MedicalTrialDesign build() { - return new MedicalTrialDesign(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicalTrialDesign(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalTrialDesign(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicalTrialDesign(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MedicalWebPage.java b/src/main/java/org/schema/MedicalWebPage.java index 0fafb1bc..88dd11ed 100644 --- a/src/main/java/org/schema/MedicalWebPage.java +++ b/src/main/java/org/schema/MedicalWebPage.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link MedicalWebPage} instance. */ public MedicalWebPage build() { - return new MedicalWebPage(aspect, breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new MedicalWebPage(aspect, breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * An aspect of medical practice that is considered on the page, such as 'diagnosis', 'treatment', 'causes', 'prognosis', 'etiology', 'epidemiology', etc. @@ -769,6 +769,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String aspect; private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; @@ -849,10 +853,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicalWebPage(String aspect, BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected MedicalWebPage(String aspect, BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); myAspect = aspect; } private String myAspect; diff --git a/src/main/java/org/schema/MedicineSystem.java b/src/main/java/org/schema/MedicineSystem.java index 579403dd..6f046cdc 100644 --- a/src/main/java/org/schema/MedicineSystem.java +++ b/src/main/java/org/schema/MedicineSystem.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MedicineSystem} instance. */ public MedicineSystem build() { - return new MedicineSystem(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MedicineSystem(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MedicineSystem(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MedicineSystem(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MensClothingStore.java b/src/main/java/org/schema/MensClothingStore.java index ca65545b..246da10d 100644 --- a/src/main/java/org/schema/MensClothingStore.java +++ b/src/main/java/org/schema/MensClothingStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MensClothingStore} instance. */ public MensClothingStore build() { - return new MensClothingStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MensClothingStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MensClothingStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MensClothingStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MiddleSchool.java b/src/main/java/org/schema/MiddleSchool.java index 844ca18a..9732479c 100644 --- a/src/main/java/org/schema/MiddleSchool.java +++ b/src/main/java/org/schema/MiddleSchool.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MiddleSchool} instance. */ public MiddleSchool build() { - return new MiddleSchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MiddleSchool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MiddleSchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MiddleSchool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MobileApplication.java b/src/main/java/org/schema/MobileApplication.java index bec5c575..276585af 100644 --- a/src/main/java/org/schema/MobileApplication.java +++ b/src/main/java/org/schema/MobileApplication.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link MobileApplication} instance. */ public MobileApplication build() { - return new MobileApplication(carrierRequirements, 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); + return new MobileApplication(carrierRequirements, 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); } /** * Specifies specific carrier(s) requirements for the application (e.g. an application may only work on a specific carrier network). @@ -858,6 +858,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String carrierRequirements; private String applicationCategory; private String applicationSubCategory; @@ -952,10 +956,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MobileApplication(String carrierRequirements, 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) { - 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); + protected MobileApplication(String carrierRequirements, 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); myCarrierRequirements = carrierRequirements; } private String myCarrierRequirements; diff --git a/src/main/java/org/schema/MobilePhoneStore.java b/src/main/java/org/schema/MobilePhoneStore.java index c49651f0..9ccf53fe 100644 --- a/src/main/java/org/schema/MobilePhoneStore.java +++ b/src/main/java/org/schema/MobilePhoneStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MobilePhoneStore} instance. */ public MobilePhoneStore build() { - return new MobilePhoneStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MobilePhoneStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MobilePhoneStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MobilePhoneStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Mosque.java b/src/main/java/org/schema/Mosque.java index 2f8e08c0..8b66d1a5 100644 --- a/src/main/java/org/schema/Mosque.java +++ b/src/main/java/org/schema/Mosque.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Mosque} instance. */ public Mosque build() { - return new Mosque(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Mosque(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Mosque(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Mosque(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Motel.java b/src/main/java/org/schema/Motel.java index a0dcb7da..44e6d6c0 100644 --- a/src/main/java/org/schema/Motel.java +++ b/src/main/java/org/schema/Motel.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Motel} instance. */ public Motel build() { - return new Motel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Motel(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Motel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Motel(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MotorcycleDealer.java b/src/main/java/org/schema/MotorcycleDealer.java index 5d7d62f4..11984ac1 100644 --- a/src/main/java/org/schema/MotorcycleDealer.java +++ b/src/main/java/org/schema/MotorcycleDealer.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MotorcycleDealer} instance. */ public MotorcycleDealer build() { - return new MotorcycleDealer(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MotorcycleDealer(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MotorcycleDealer(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MotorcycleDealer(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MotorcycleRepair.java b/src/main/java/org/schema/MotorcycleRepair.java index d9edb58c..0bf9eb8c 100644 --- a/src/main/java/org/schema/MotorcycleRepair.java +++ b/src/main/java/org/schema/MotorcycleRepair.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MotorcycleRepair} instance. */ public MotorcycleRepair build() { - return new MotorcycleRepair(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MotorcycleRepair(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MotorcycleRepair(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MotorcycleRepair(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Mountain.java b/src/main/java/org/schema/Mountain.java index a68efa7f..960cdf6b 100644 --- a/src/main/java/org/schema/Mountain.java +++ b/src/main/java/org/schema/Mountain.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Mountain} instance. */ public Mountain build() { - return new Mountain(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Mountain(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Mountain(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Mountain(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MoveAction.java b/src/main/java/org/schema/MoveAction.java index 640002a7..e66ab283 100644 --- a/src/main/java/org/schema/MoveAction.java +++ b/src/main/java/org/schema/MoveAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link MoveAction} instance. */ public MoveAction build() { - return new MoveAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MoveAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -232,6 +232,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -248,10 +252,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MoveAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MoveAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myFromLocation = fromLocation; myToLocation = toLocation; } diff --git a/src/main/java/org/schema/Movie.java b/src/main/java/org/schema/Movie.java index badc5350..339e5974 100644 --- a/src/main/java/org/schema/Movie.java +++ b/src/main/java/org/schema/Movie.java @@ -72,7 +72,7 @@ public static final class Builder { * Creates new {@link Movie} instance. */ public Movie build() { - return new Movie(actor, director, duration, musicBy, productionCompany, subtitleLanguage, trailer, 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); + return new Movie(actor, director, duration, musicBy, productionCompany, subtitleLanguage, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -791,6 +791,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private Duration duration; @@ -869,10 +873,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Movie(Person actor, Person director, Duration duration, MusicGroupOrPerson musicBy, Organization productionCompany, LanguageOrString subtitleLanguage, VideoObject trailer, 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) { - super(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); + protected Movie(Person actor, Person director, Duration duration, MusicGroupOrPerson musicBy, Organization productionCompany, LanguageOrString subtitleLanguage, VideoObject trailer, 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(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); myActor = actor; myDirector = director; myDuration = duration; diff --git a/src/main/java/org/schema/MovieClip.java b/src/main/java/org/schema/MovieClip.java index 82277fe6..e7e1717c 100644 --- a/src/main/java/org/schema/MovieClip.java +++ b/src/main/java/org/schema/MovieClip.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MovieClip} instance. */ public MovieClip build() { - return new MovieClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + return new MovieClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -740,6 +740,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Position clipNumber; private Person director; @@ -818,9 +822,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MovieClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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) { - super(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + protected MovieClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } } diff --git a/src/main/java/org/schema/MovieRentalStore.java b/src/main/java/org/schema/MovieRentalStore.java index 7c13c31a..02a84382 100644 --- a/src/main/java/org/schema/MovieRentalStore.java +++ b/src/main/java/org/schema/MovieRentalStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MovieRentalStore} instance. */ public MovieRentalStore build() { - return new MovieRentalStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MovieRentalStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MovieRentalStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MovieRentalStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MovieSeries.java b/src/main/java/org/schema/MovieSeries.java index 31416648..e3e1dc07 100644 --- a/src/main/java/org/schema/MovieSeries.java +++ b/src/main/java/org/schema/MovieSeries.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link MovieSeries} instance. */ public MovieSeries build() { - return new MovieSeries(director, musicBy, productionCompany, trailer, endDate, startDate, 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); + return new MovieSeries(director, musicBy, productionCompany, trailer, endDate, startDate, 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); } /** * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. @@ -757,6 +757,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person director; private MusicGroupOrPerson musicBy; private Organization productionCompany; @@ -834,10 +838,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MovieSeries(Person director, MusicGroupOrPerson musicBy, Organization productionCompany, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected MovieSeries(Person director, MusicGroupOrPerson musicBy, Organization productionCompany, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); myDirector = director; myMusicBy = musicBy; myProductionCompany = productionCompany; diff --git a/src/main/java/org/schema/MovieTheater.java b/src/main/java/org/schema/MovieTheater.java index afa0562f..a1f9221b 100644 --- a/src/main/java/org/schema/MovieTheater.java +++ b/src/main/java/org/schema/MovieTheater.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link MovieTheater} instance. */ public MovieTheater build() { - return new MovieTheater(screenCount, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MovieTheater(screenCount, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of screens in the movie theater. @@ -343,6 +343,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number screenCount; private Organization parentOrganization; private String currenciesAccepted; @@ -372,10 +376,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MovieTheater(Number screenCount, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MovieTheater(Number screenCount, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myScreenCount = screenCount; } private Number myScreenCount; diff --git a/src/main/java/org/schema/MovingCompany.java b/src/main/java/org/schema/MovingCompany.java index a5eb76b4..e1bf9a0e 100644 --- a/src/main/java/org/schema/MovingCompany.java +++ b/src/main/java/org/schema/MovingCompany.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MovingCompany} instance. */ public MovingCompany build() { - return new MovingCompany(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MovingCompany(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MovingCompany(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MovingCompany(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Muscle.java b/src/main/java/org/schema/Muscle.java index db558140..7a715cd8 100644 --- a/src/main/java/org/schema/Muscle.java +++ b/src/main/java/org/schema/Muscle.java @@ -67,7 +67,7 @@ public static final class Builder { * Creates new {@link Muscle} instance. */ public Muscle build() { - return new Muscle(muscleAction, antagonist, bloodSupply, insertion, nerve, origin, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Muscle(muscleAction, antagonist, bloodSupply, insertion, nerve, origin, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The movement the muscle generates. @@ -335,6 +335,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String muscleAction; private Muscle antagonist; private Vessel bloodSupply; @@ -364,10 +368,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Muscle(String muscleAction, Muscle antagonist, Vessel bloodSupply, AnatomicalStructure insertion, Nerve nerve, AnatomicalStructure origin, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Muscle(String muscleAction, Muscle antagonist, Vessel bloodSupply, AnatomicalStructure insertion, Nerve nerve, AnatomicalStructure origin, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myMuscleAction = muscleAction; myAntagonist = antagonist; myBloodSupply = bloodSupply; diff --git a/src/main/java/org/schema/Museum.java b/src/main/java/org/schema/Museum.java index 9b087dbc..0148562e 100644 --- a/src/main/java/org/schema/Museum.java +++ b/src/main/java/org/schema/Museum.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Museum} instance. */ public Museum build() { - return new Museum(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Museum(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Museum(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Museum(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicAlbum.java b/src/main/java/org/schema/MusicAlbum.java index 239ec489..e0343665 100644 --- a/src/main/java/org/schema/MusicAlbum.java +++ b/src/main/java/org/schema/MusicAlbum.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link MusicAlbum} instance. */ public MusicAlbum build() { - return new MusicAlbum(byArtist, albumProductionType, albumReleaseType, albumRelease, numTracks, track, 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); + return new MusicAlbum(byArtist, albumProductionType, albumReleaseType, albumRelease, numTracks, track, 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); } /** * The artist that performed this album or recording. @@ -757,6 +757,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MusicGroup byArtist; private MusicAlbumProductionType albumProductionType; private MusicAlbumReleaseType albumReleaseType; @@ -834,10 +838,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicAlbum(MusicGroup byArtist, MusicAlbumProductionType albumProductionType, MusicAlbumReleaseType albumReleaseType, MusicRelease albumRelease, Integer numTracks, ItemListOrMusicRecording track, 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) { - super(numTracks, track, 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); + protected MusicAlbum(MusicGroup byArtist, MusicAlbumProductionType albumProductionType, MusicAlbumReleaseType albumReleaseType, MusicRelease albumRelease, Integer numTracks, ItemListOrMusicRecording track, 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(numTracks, track, 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); myByArtist = byArtist; myAlbumProductionType = albumProductionType; myAlbumReleaseType = albumReleaseType; diff --git a/src/main/java/org/schema/MusicAlbumProductionType.java b/src/main/java/org/schema/MusicAlbumProductionType.java index 1d73e0ba..0e3912a6 100644 --- a/src/main/java/org/schema/MusicAlbumProductionType.java +++ b/src/main/java/org/schema/MusicAlbumProductionType.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MusicAlbumProductionType} instance. */ public MusicAlbumProductionType build() { - return new MusicAlbumProductionType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicAlbumProductionType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicAlbumProductionType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicAlbumProductionType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicAlbumReleaseType.java b/src/main/java/org/schema/MusicAlbumReleaseType.java index 00c36d96..5d5dda57 100644 --- a/src/main/java/org/schema/MusicAlbumReleaseType.java +++ b/src/main/java/org/schema/MusicAlbumReleaseType.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MusicAlbumReleaseType} instance. */ public MusicAlbumReleaseType build() { - return new MusicAlbumReleaseType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicAlbumReleaseType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicAlbumReleaseType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicAlbumReleaseType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicComposition.java b/src/main/java/org/schema/MusicComposition.java index 4f609ff4..8438d7b2 100644 --- a/src/main/java/org/schema/MusicComposition.java +++ b/src/main/java/org/schema/MusicComposition.java @@ -85,7 +85,7 @@ public static final class Builder { * Creates new {@link MusicComposition} instance. */ public MusicComposition build() { - return new MusicComposition(musicArrangement, composer, firstPerformance, includedComposition, iswcCode, lyricist, musicCompositionForm, musicalKey, recordedAs, 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); + return new MusicComposition(musicArrangement, composer, firstPerformance, includedComposition, iswcCode, lyricist, musicCompositionForm, musicalKey, recordedAs, 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); } /** * An arrangement derived from the composition. @@ -809,6 +809,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MusicComposition musicArrangement; private OrganizationOrPerson composer; private Event firstPerformance; @@ -889,10 +893,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicComposition(MusicComposition musicArrangement, OrganizationOrPerson composer, Event firstPerformance, MusicComposition includedComposition, String iswcCode, Person lyricist, String musicCompositionForm, String musicalKey, MusicRecording recordedAs, 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) { - super(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); + protected MusicComposition(MusicComposition musicArrangement, OrganizationOrPerson composer, Event firstPerformance, MusicComposition includedComposition, String iswcCode, Person lyricist, String musicCompositionForm, String musicalKey, MusicRecording recordedAs, 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(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); myMusicArrangement = musicArrangement; myComposer = composer; myFirstPerformance = firstPerformance; diff --git a/src/main/java/org/schema/MusicEvent.java b/src/main/java/org/schema/MusicEvent.java index 901f3e7d..b85b3fde 100644 --- a/src/main/java/org/schema/MusicEvent.java +++ b/src/main/java/org/schema/MusicEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MusicEvent} instance. */ public MusicEvent build() { - return new MusicEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicGroup.java b/src/main/java/org/schema/MusicGroup.java index 24962357..169bd373 100644 --- a/src/main/java/org/schema/MusicGroup.java +++ b/src/main/java/org/schema/MusicGroup.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link MusicGroup} instance. */ public MusicGroup build() { - return new MusicGroup(album, track, genre, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicGroup(album, track, genre, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A music album. @@ -468,6 +468,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MusicAlbum album; private ItemListOrMusicRecording track; private String genre; @@ -511,10 +515,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicGroup(MusicAlbum album, ItemListOrMusicRecording track, String genre, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicGroup(MusicAlbum album, ItemListOrMusicRecording track, String genre, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAlbum = album; myTrack = track; myGenre = genre; diff --git a/src/main/java/org/schema/MusicPlaylist.java b/src/main/java/org/schema/MusicPlaylist.java index 1a814140..9bf87ab1 100644 --- a/src/main/java/org/schema/MusicPlaylist.java +++ b/src/main/java/org/schema/MusicPlaylist.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link MusicPlaylist} instance. */ public MusicPlaylist build() { - return new MusicPlaylist(numTracks, track, 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); + return new MusicPlaylist(numTracks, track, 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); } /** * The number of tracks in this album or playlist. @@ -717,6 +717,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer numTracks; private ItemListOrMusicRecording track; private String schemaVersion; @@ -790,10 +794,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicPlaylist(Integer numTracks, ItemListOrMusicRecording track, 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) { - super(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); + protected MusicPlaylist(Integer numTracks, ItemListOrMusicRecording track, 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(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); myNumTracks = numTracks; myTrack = track; } diff --git a/src/main/java/org/schema/MusicRecording.java b/src/main/java/org/schema/MusicRecording.java index 785e8334..656712c4 100644 --- a/src/main/java/org/schema/MusicRecording.java +++ b/src/main/java/org/schema/MusicRecording.java @@ -66,7 +66,7 @@ public static final class Builder { * Creates new {@link MusicRecording} instance. */ public MusicRecording build() { - return new MusicRecording(byArtist, duration, inAlbum, inPlaylist, isrcCode, recordingOf, 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); + return new MusicRecording(byArtist, duration, inAlbum, inPlaylist, isrcCode, recordingOf, 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); } /** * The artist that performed this album or recording. @@ -760,6 +760,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MusicGroup byArtist; private Duration duration; private MusicAlbum inAlbum; @@ -837,10 +841,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicRecording(MusicGroup byArtist, Duration duration, MusicAlbum inAlbum, MusicPlaylist inPlaylist, String isrcCode, MusicComposition recordingOf, 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) { - super(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); + protected MusicRecording(MusicGroup byArtist, Duration duration, MusicAlbum inAlbum, MusicPlaylist inPlaylist, String isrcCode, MusicComposition recordingOf, 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(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); myByArtist = byArtist; myDuration = duration; myInAlbum = inAlbum; diff --git a/src/main/java/org/schema/MusicRelease.java b/src/main/java/org/schema/MusicRelease.java index f45d0e7c..3c74bdc6 100644 --- a/src/main/java/org/schema/MusicRelease.java +++ b/src/main/java/org/schema/MusicRelease.java @@ -67,7 +67,7 @@ public static final class Builder { * Creates new {@link MusicRelease} instance. */ public MusicRelease build() { - return new MusicRelease(catalogNumber, creditedTo, duration, musicReleaseFormat, recordLabel, releaseOf, numTracks, track, 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); + return new MusicRelease(catalogNumber, creditedTo, duration, musicReleaseFormat, recordLabel, releaseOf, numTracks, track, 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); } /** * The catalog number for the release. @@ -793,6 +793,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String catalogNumber; private OrganizationOrPerson creditedTo; private Duration duration; @@ -872,10 +876,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicRelease(String catalogNumber, OrganizationOrPerson creditedTo, Duration duration, MusicReleaseFormatType musicReleaseFormat, Organization recordLabel, MusicAlbum releaseOf, Integer numTracks, ItemListOrMusicRecording track, 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) { - super(numTracks, track, 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); + protected MusicRelease(String catalogNumber, OrganizationOrPerson creditedTo, Duration duration, MusicReleaseFormatType musicReleaseFormat, Organization recordLabel, MusicAlbum releaseOf, Integer numTracks, ItemListOrMusicRecording track, 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(numTracks, track, 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); myCatalogNumber = catalogNumber; myCreditedTo = creditedTo; myDuration = duration; diff --git a/src/main/java/org/schema/MusicReleaseFormatType.java b/src/main/java/org/schema/MusicReleaseFormatType.java index d92b9be5..653661b3 100644 --- a/src/main/java/org/schema/MusicReleaseFormatType.java +++ b/src/main/java/org/schema/MusicReleaseFormatType.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link MusicReleaseFormatType} instance. */ public MusicReleaseFormatType build() { - return new MusicReleaseFormatType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicReleaseFormatType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicReleaseFormatType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicReleaseFormatType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicStore.java b/src/main/java/org/schema/MusicStore.java index e21b1a1d..d9b9bd0d 100644 --- a/src/main/java/org/schema/MusicStore.java +++ b/src/main/java/org/schema/MusicStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MusicStore} instance. */ public MusicStore build() { - return new MusicStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicVenue.java b/src/main/java/org/schema/MusicVenue.java index defff836..23a371cd 100644 --- a/src/main/java/org/schema/MusicVenue.java +++ b/src/main/java/org/schema/MusicVenue.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MusicVenue} instance. */ public MusicVenue build() { - return new MusicVenue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new MusicVenue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicVenue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected MusicVenue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/MusicVideoObject.java b/src/main/java/org/schema/MusicVideoObject.java index d9134d7a..4d554ffc 100644 --- a/src/main/java/org/schema/MusicVideoObject.java +++ b/src/main/java/org/schema/MusicVideoObject.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link MusicVideoObject} instance. */ public MusicVideoObject build() { - return new MusicVideoObject(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new MusicVideoObject(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * A NewsArticle associated with the Media Object. @@ -812,6 +812,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NewsArticle associatedArticle; private String bitrate; private String contentSize; @@ -899,9 +903,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected MusicVideoObject(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + protected MusicVideoObject(NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } } diff --git a/src/main/java/org/schema/NGO.java b/src/main/java/org/schema/NGO.java index 03d6de39..5e89a4d8 100644 --- a/src/main/java/org/schema/NGO.java +++ b/src/main/java/org/schema/NGO.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link NGO} instance. */ public NGO build() { - return new NGO(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new NGO(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -420,6 +420,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -460,9 +464,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected NGO(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected NGO(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/NailSalon.java b/src/main/java/org/schema/NailSalon.java index 7643830b..0e736416 100644 --- a/src/main/java/org/schema/NailSalon.java +++ b/src/main/java/org/schema/NailSalon.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link NailSalon} instance. */ public NailSalon build() { - return new NailSalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new NailSalon(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected NailSalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected NailSalon(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Nerve.java b/src/main/java/org/schema/Nerve.java index e5fde92b..6cc18ed8 100644 --- a/src/main/java/org/schema/Nerve.java +++ b/src/main/java/org/schema/Nerve.java @@ -55,7 +55,7 @@ public static final class Builder { * Creates new {@link Nerve} instance. */ public Nerve build() { - return new Nerve(branch, nerveMotor, sensoryUnit, sourcedFrom, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Nerve(branch, nerveMotor, sensoryUnit, sourcedFrom, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The branches that delineate from the nerve bundle. @@ -318,6 +318,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AnatomicalStructure branch; private Muscle nerveMotor; private AnatomicalStructureOrSuperficialAnatomy sensoryUnit; @@ -345,10 +349,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Nerve(AnatomicalStructure branch, Muscle nerveMotor, AnatomicalStructureOrSuperficialAnatomy sensoryUnit, BrainStructure sourcedFrom, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Nerve(AnatomicalStructure branch, Muscle nerveMotor, AnatomicalStructureOrSuperficialAnatomy sensoryUnit, BrainStructure sourcedFrom, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBranch = branch; myNerveMotor = nerveMotor; mySensoryUnit = sensoryUnit; diff --git a/src/main/java/org/schema/NewsArticle.java b/src/main/java/org/schema/NewsArticle.java index 84d2b1bc..21019fec 100644 --- a/src/main/java/org/schema/NewsArticle.java +++ b/src/main/java/org/schema/NewsArticle.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link NewsArticle} instance. */ public NewsArticle build() { - return new NewsArticle(dateline, printColumn, printEdition, printPage, printSection, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new NewsArticle(dateline, printColumn, printEdition, printPage, printSection, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * The location where the NewsArticle was produced. @@ -808,6 +808,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String dateline; private String printColumn; private String printEdition; @@ -890,10 +894,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected NewsArticle(String dateline, String printColumn, String printEdition, String printPage, String printSection, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected NewsArticle(String dateline, String printColumn, String printEdition, String printPage, String printSection, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); myDateline = dateline; myPrintColumn = printColumn; myPrintEdition = printEdition; diff --git a/src/main/java/org/schema/NightClub.java b/src/main/java/org/schema/NightClub.java index a509b4cc..f3a38747 100644 --- a/src/main/java/org/schema/NightClub.java +++ b/src/main/java/org/schema/NightClub.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link NightClub} instance. */ public NightClub build() { - return new NightClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new NightClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected NightClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected NightClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Notary.java b/src/main/java/org/schema/Notary.java index 642d3d67..c86b2d7c 100644 --- a/src/main/java/org/schema/Notary.java +++ b/src/main/java/org/schema/Notary.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Notary} instance. */ public Notary build() { - return new Notary(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Notary(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Notary(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Notary(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/NutritionInformation.java b/src/main/java/org/schema/NutritionInformation.java index 9649a93e..3d4a8ba1 100644 --- a/src/main/java/org/schema/NutritionInformation.java +++ b/src/main/java/org/schema/NutritionInformation.java @@ -102,7 +102,7 @@ public static final class Builder { * Creates new {@link NutritionInformation} instance. */ public NutritionInformation build() { - return new NutritionInformation(calories, carbohydrateContent, cholesterolContent, fatContent, fiberContent, proteinContent, saturatedFatContent, servingSize, sodiumContent, sugarContent, transFatContent, unsaturatedFatContent, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new NutritionInformation(calories, carbohydrateContent, cholesterolContent, fatContent, fiberContent, proteinContent, saturatedFatContent, servingSize, sodiumContent, sugarContent, transFatContent, unsaturatedFatContent, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of calories. @@ -307,6 +307,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Energy calories; private Mass carbohydrateContent; private Mass cholesterolContent; @@ -327,10 +331,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected NutritionInformation(Energy calories, Mass carbohydrateContent, Mass cholesterolContent, Mass fatContent, Mass fiberContent, Mass proteinContent, Mass saturatedFatContent, String servingSize, Mass sodiumContent, Mass sugarContent, Mass transFatContent, Mass unsaturatedFatContent, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected NutritionInformation(Energy calories, Mass carbohydrateContent, Mass cholesterolContent, Mass fatContent, Mass fiberContent, Mass proteinContent, Mass saturatedFatContent, String servingSize, Mass sodiumContent, Mass sugarContent, Mass transFatContent, Mass unsaturatedFatContent, 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); myCalories = calories; myCarbohydrateContent = carbohydrateContent; myCholesterolContent = cholesterolContent; diff --git a/src/main/java/org/schema/OceanBodyOfWater.java b/src/main/java/org/schema/OceanBodyOfWater.java index 55b00882..97dea7e9 100644 --- a/src/main/java/org/schema/OceanBodyOfWater.java +++ b/src/main/java/org/schema/OceanBodyOfWater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OceanBodyOfWater} instance. */ public OceanBodyOfWater build() { - return new OceanBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OceanBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OceanBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OceanBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Offer.java b/src/main/java/org/schema/Offer.java index 15cfc9af..819424ec 100644 --- a/src/main/java/org/schema/Offer.java +++ b/src/main/java/org/schema/Offer.java @@ -283,7 +283,7 @@ public static final class Builder { * Creates new {@link Offer} instance. */ public Offer build() { - return new Offer(acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Offer(acceptedPaymentMethod, addOn, advanceBookingRequirement, aggregateRating, availability, availabilityEnds, availabilityStarts, availableAtOrFrom, availableDeliveryMethod, businessFunction, category, deliveryLeadTime, eligibleCustomerType, eligibleDuration, eligibleQuantity, eligibleRegion, ineligibleRegion, eligibleTransactionVolume, gtin12, gtin13, gtin14, gtin8, includesObject, inventoryLevel, itemCondition, itemOffered, mpn, price, priceSpecification, priceValidUntil, review, seller, sku, validFrom, validThrough, warranty, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The payment method(s) accepted by seller for this offer. @@ -763,6 +763,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PaymentMethod acceptedPaymentMethod; private Offer addOn; private QuantitativeValue advanceBookingRequirement; @@ -808,10 +812,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Offer(PaymentMethod acceptedPaymentMethod, Offer addOn, QuantitativeValue advanceBookingRequirement, AggregateRating aggregateRating, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, PhysicalActivityCategoryOrStringOrThing category, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, NumberOrString price, PriceSpecification priceSpecification, java.util.Date priceValidUntil, Review review, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Offer(PaymentMethod acceptedPaymentMethod, Offer addOn, QuantitativeValue advanceBookingRequirement, AggregateRating aggregateRating, ItemAvailability availability, java.util.Date availabilityEnds, java.util.Date availabilityStarts, Place availableAtOrFrom, DeliveryMethod availableDeliveryMethod, BusinessFunction businessFunction, PhysicalActivityCategoryOrStringOrThing category, QuantitativeValue deliveryLeadTime, BusinessEntityType eligibleCustomerType, QuantitativeValue eligibleDuration, QuantitativeValue eligibleQuantity, GeoShapeOrPlaceOrString eligibleRegion, GeoShapeOrPlaceOrString ineligibleRegion, PriceSpecification eligibleTransactionVolume, String gtin12, String gtin13, String gtin14, String gtin8, TypeAndQuantityNode includesObject, QuantitativeValue inventoryLevel, OfferItemCondition itemCondition, Product itemOffered, String mpn, NumberOrString price, PriceSpecification priceSpecification, java.util.Date priceValidUntil, Review review, Participant seller, String sku, java.util.Date validFrom, java.util.Date validThrough, WarrantyPromise warranty, String priceCurrency, 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); myAcceptedPaymentMethod = acceptedPaymentMethod; myAddOn = addOn; myAdvanceBookingRequirement = advanceBookingRequirement; diff --git a/src/main/java/org/schema/OfferItemCondition.java b/src/main/java/org/schema/OfferItemCondition.java index 58704c1b..4b593848 100644 --- a/src/main/java/org/schema/OfferItemCondition.java +++ b/src/main/java/org/schema/OfferItemCondition.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OfferItemCondition} instance. */ public OfferItemCondition build() { - return new OfferItemCondition(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OfferItemCondition(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OfferItemCondition(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OfferItemCondition(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/OfficeEquipmentStore.java b/src/main/java/org/schema/OfficeEquipmentStore.java index fc912194..3bcaf29e 100644 --- a/src/main/java/org/schema/OfficeEquipmentStore.java +++ b/src/main/java/org/schema/OfficeEquipmentStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OfficeEquipmentStore} instance. */ public OfficeEquipmentStore build() { - return new OfficeEquipmentStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OfficeEquipmentStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OfficeEquipmentStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OfficeEquipmentStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/OnDemandEvent.java b/src/main/java/org/schema/OnDemandEvent.java index 67c11e04..21ef69f8 100644 --- a/src/main/java/org/schema/OnDemandEvent.java +++ b/src/main/java/org/schema/OnDemandEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OnDemandEvent} instance. */ public OnDemandEvent build() { - return new OnDemandEvent(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OnDemandEvent(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A flag to signal that the publication is accessible for free. @@ -327,6 +327,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Boolean isAccessibleForFree; private BroadcastService publishedOn; private AggregateRating aggregateRating; @@ -355,9 +359,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OnDemandEvent(Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OnDemandEvent(Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/OpeningHoursSpecification.java b/src/main/java/org/schema/OpeningHoursSpecification.java index acec5e50..5efbdb17 100644 --- a/src/main/java/org/schema/OpeningHoursSpecification.java +++ b/src/main/java/org/schema/OpeningHoursSpecification.java @@ -65,7 +65,7 @@ public static final class Builder { * Creates new {@link OpeningHoursSpecification} instance. */ public OpeningHoursSpecification build() { - return new OpeningHoursSpecification(closes, dayOfWeek, opens, validFrom, validThrough, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OpeningHoursSpecification(closes, dayOfWeek, opens, validFrom, validThrough, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The closing hour of the place or service on the given day(s) of the week. @@ -221,6 +221,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date closes; private DayOfWeek dayOfWeek; private java.util.Date opens; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OpeningHoursSpecification(java.util.Date closes, DayOfWeek dayOfWeek, java.util.Date opens, java.util.Date validFrom, java.util.Date validThrough, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OpeningHoursSpecification(java.util.Date closes, DayOfWeek dayOfWeek, java.util.Date opens, java.util.Date validFrom, java.util.Date validThrough, 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); myCloses = closes; myDayOfWeek = dayOfWeek; myOpens = opens; diff --git a/src/main/java/org/schema/Optician.java b/src/main/java/org/schema/Optician.java index 531a0f39..adc5854c 100644 --- a/src/main/java/org/schema/Optician.java +++ b/src/main/java/org/schema/Optician.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Optician} instance. */ public Optician build() { - return new Optician(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Optician(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Optician(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Optician(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Order.java b/src/main/java/org/schema/Order.java index af7bb65e..e5caf137 100644 --- a/src/main/java/org/schema/Order.java +++ b/src/main/java/org/schema/Order.java @@ -152,7 +152,7 @@ public static final class Builder { * Creates new {@link Order} instance. */ public Order build() { - return new Order(orderDelivery, acceptedOffer, billingAddress, confirmationNumber, customer, discount, discountCode, discountCurrency, isGift, orderDate, orderedItem, orderNumber, orderStatus, partOfInvoice, paymentDue, paymentMethod, paymentMethodId, paymentUrl, seller, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Order(orderDelivery, acceptedOffer, billingAddress, confirmationNumber, customer, discount, discountCode, discountCurrency, isGift, orderDate, orderedItem, orderNumber, orderStatus, partOfInvoice, paymentDue, paymentMethod, paymentMethodId, paymentUrl, seller, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The delivery of the parcel related to this order or order item. @@ -449,6 +449,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private ParcelDelivery orderDelivery; private Offer acceptedOffer; private PostalAddress billingAddress; @@ -477,10 +481,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Order(ParcelDelivery orderDelivery, Offer acceptedOffer, PostalAddress billingAddress, String confirmationNumber, OrganizationOrPerson customer, NumberOrString discount, String discountCode, String discountCurrency, Boolean isGift, java.util.Date orderDate, OrderItemOrProduct orderedItem, String orderNumber, OrderStatus orderStatus, Invoice partOfInvoice, java.util.Date paymentDue, PaymentMethod paymentMethod, String paymentMethodId, String paymentUrl, Participant seller, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Order(ParcelDelivery orderDelivery, Offer acceptedOffer, PostalAddress billingAddress, String confirmationNumber, OrganizationOrPerson customer, NumberOrString discount, String discountCode, String discountCurrency, Boolean isGift, java.util.Date orderDate, OrderItemOrProduct orderedItem, String orderNumber, OrderStatus orderStatus, Invoice partOfInvoice, java.util.Date paymentDue, PaymentMethod paymentMethod, String paymentMethodId, String paymentUrl, Participant seller, OrganizationOrPerson broker, 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); myOrderDelivery = orderDelivery; myAcceptedOffer = acceptedOffer; myBillingAddress = billingAddress; diff --git a/src/main/java/org/schema/OrderAction.java b/src/main/java/org/schema/OrderAction.java index bd603bf7..c9e98300 100644 --- a/src/main/java/org/schema/OrderAction.java +++ b/src/main/java/org/schema/OrderAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link OrderAction} instance. */ public OrderAction build() { - return new OrderAction(deliveryMethod, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OrderAction(deliveryMethod, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of instrument. The method of delivery. @@ -282,6 +282,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod deliveryMethod; private NumberOrString price; private PriceSpecification priceSpecification; @@ -299,10 +303,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OrderAction(DeliveryMethod deliveryMethod, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OrderAction(DeliveryMethod deliveryMethod, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDeliveryMethod = deliveryMethod; } private DeliveryMethod myDeliveryMethod; diff --git a/src/main/java/org/schema/OrderItem.java b/src/main/java/org/schema/OrderItem.java index 10eb45af..b5a6ccd0 100644 --- a/src/main/java/org/schema/OrderItem.java +++ b/src/main/java/org/schema/OrderItem.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link OrderItem} instance. */ public OrderItem build() { - return new OrderItem(orderQuantity, orderItemStatus, orderItemNumber, orderDelivery, orderedItem, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OrderItem(orderQuantity, orderItemStatus, orderItemNumber, orderDelivery, orderedItem, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of the item ordered. If the property is not set, assume the quantity is one. @@ -225,6 +225,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number orderQuantity; private OrderStatus orderItemStatus; private String orderItemNumber; @@ -238,10 +242,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OrderItem(Number orderQuantity, OrderStatus orderItemStatus, String orderItemNumber, ParcelDelivery orderDelivery, OrderItemOrProduct orderedItem, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OrderItem(Number orderQuantity, OrderStatus orderItemStatus, String orderItemNumber, ParcelDelivery orderDelivery, OrderItemOrProduct orderedItem, 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); myOrderQuantity = orderQuantity; myOrderItemStatus = orderItemStatus; myOrderItemNumber = orderItemNumber; diff --git a/src/main/java/org/schema/OrderStatus.java b/src/main/java/org/schema/OrderStatus.java index ee4d0971..25d5f2de 100644 --- a/src/main/java/org/schema/OrderStatus.java +++ b/src/main/java/org/schema/OrderStatus.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OrderStatus} instance. */ public OrderStatus build() { - return new OrderStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OrderStatus(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OrderStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OrderStatus(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Organization.java b/src/main/java/org/schema/Organization.java index fa601b90..38c18445 100644 --- a/src/main/java/org/schema/Organization.java +++ b/src/main/java/org/schema/Organization.java @@ -224,7 +224,7 @@ public static final class Builder { * Creates new {@link Organization} instance. */ public Organization build() { - return new Organization(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Organization(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -614,6 +614,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -654,10 +658,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Organization(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Organization(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, 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); myAddress = address; myAggregateRating = aggregateRating; myAward = award; diff --git a/src/main/java/org/schema/OrganizationRole.java b/src/main/java/org/schema/OrganizationRole.java index c9c312b2..4e5652f7 100644 --- a/src/main/java/org/schema/OrganizationRole.java +++ b/src/main/java/org/schema/OrganizationRole.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link OrganizationRole} instance. */ public OrganizationRole build() { - return new OrganizationRole(numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OrganizationRole(numberedPosition, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A number associated with a role in an organization, for example, the number on an athlete's jersey. @@ -178,6 +178,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number numberedPosition; private java.util.Date startDate; private String roleName; @@ -189,10 +193,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OrganizationRole(Number numberedPosition, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OrganizationRole(Number numberedPosition, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myNumberedPosition = numberedPosition; } private Number myNumberedPosition; diff --git a/src/main/java/org/schema/OrganizeAction.java b/src/main/java/org/schema/OrganizeAction.java index b4bb69d4..5a0c167d 100644 --- a/src/main/java/org/schema/OrganizeAction.java +++ b/src/main/java/org/schema/OrganizeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OrganizeAction} instance. */ public OrganizeAction build() { - return new OrganizeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OrganizeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OrganizeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OrganizeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/OutletStore.java b/src/main/java/org/schema/OutletStore.java index d2235e9b..a6570273 100644 --- a/src/main/java/org/schema/OutletStore.java +++ b/src/main/java/org/schema/OutletStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link OutletStore} instance. */ public OutletStore build() { - return new OutletStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OutletStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OutletStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OutletStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/OwnershipInfo.java b/src/main/java/org/schema/OwnershipInfo.java index 3692f33d..68b3b428 100644 --- a/src/main/java/org/schema/OwnershipInfo.java +++ b/src/main/java/org/schema/OwnershipInfo.java @@ -57,7 +57,7 @@ public static final class Builder { * Creates new {@link OwnershipInfo} instance. */ public OwnershipInfo build() { - return new OwnershipInfo(acquiredFrom, ownedFrom, ownedThrough, typeOfGood, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new OwnershipInfo(acquiredFrom, ownedFrom, ownedThrough, typeOfGood, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The organization or person from which the product was acquired. @@ -215,6 +215,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson acquiredFrom; private java.util.Date ownedFrom; private java.util.Date ownedThrough; @@ -227,10 +231,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected OwnershipInfo(OrganizationOrPerson acquiredFrom, java.util.Date ownedFrom, java.util.Date ownedThrough, Product typeOfGood, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected OwnershipInfo(OrganizationOrPerson acquiredFrom, java.util.Date ownedFrom, java.util.Date ownedThrough, Product typeOfGood, 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); myAcquiredFrom = acquiredFrom; myOwnedFrom = ownedFrom; myOwnedThrough = ownedThrough; diff --git a/src/main/java/org/schema/PaintAction.java b/src/main/java/org/schema/PaintAction.java index 9a5a233d..8da19f6c 100644 --- a/src/main/java/org/schema/PaintAction.java +++ b/src/main/java/org/schema/PaintAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PaintAction} instance. */ public PaintAction build() { - return new PaintAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PaintAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PaintAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PaintAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Painting.java b/src/main/java/org/schema/Painting.java index c1d944cf..3f4f0594 100644 --- a/src/main/java/org/schema/Painting.java +++ b/src/main/java/org/schema/Painting.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Painting} instance. */ public Painting build() { - return new Painting(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); + return new Painting(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Painting(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) { - super(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); + protected Painting(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(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); } } diff --git a/src/main/java/org/schema/PalliativeProcedure.java b/src/main/java/org/schema/PalliativeProcedure.java index 2600f7ab..5da71beb 100644 --- a/src/main/java/org/schema/PalliativeProcedure.java +++ b/src/main/java/org/schema/PalliativeProcedure.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PalliativeProcedure} instance. */ public PalliativeProcedure build() { - return new PalliativeProcedure(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PalliativeProcedure(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PalliativeProcedure(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PalliativeProcedure(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ParcelDelivery.java b/src/main/java/org/schema/ParcelDelivery.java index 4d1c1477..7f5268bd 100644 --- a/src/main/java/org/schema/ParcelDelivery.java +++ b/src/main/java/org/schema/ParcelDelivery.java @@ -98,7 +98,7 @@ public static final class Builder { * Creates new {@link ParcelDelivery} instance. */ public ParcelDelivery build() { - return new ParcelDelivery(deliveryAddress, deliveryStatus, expectedArrivalFrom, expectedArrivalUntil, hasDeliveryMethod, itemShipped, originAddress, partOfOrder, trackingNumber, trackingUrl, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ParcelDelivery(deliveryAddress, deliveryStatus, expectedArrivalFrom, expectedArrivalUntil, hasDeliveryMethod, itemShipped, originAddress, partOfOrder, trackingNumber, trackingUrl, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Destination address. @@ -305,6 +305,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress deliveryAddress; private DeliveryEvent deliveryStatus; private java.util.Date expectedArrivalFrom; @@ -324,10 +328,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ParcelDelivery(PostalAddress deliveryAddress, DeliveryEvent deliveryStatus, java.util.Date expectedArrivalFrom, java.util.Date expectedArrivalUntil, DeliveryMethod hasDeliveryMethod, Product itemShipped, PostalAddress originAddress, IsPartOf partOfOrder, String trackingNumber, String trackingUrl, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ParcelDelivery(PostalAddress deliveryAddress, DeliveryEvent deliveryStatus, java.util.Date expectedArrivalFrom, java.util.Date expectedArrivalUntil, DeliveryMethod hasDeliveryMethod, Product itemShipped, PostalAddress originAddress, IsPartOf partOfOrder, String trackingNumber, String trackingUrl, OrganizationOrPerson provider, 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); myDeliveryAddress = deliveryAddress; myDeliveryStatus = deliveryStatus; myExpectedArrivalFrom = expectedArrivalFrom; diff --git a/src/main/java/org/schema/ParcelService.java b/src/main/java/org/schema/ParcelService.java index 4a172eb5..747e93d2 100644 --- a/src/main/java/org/schema/ParcelService.java +++ b/src/main/java/org/schema/ParcelService.java @@ -38,7 +38,7 @@ public static final class Builder { * Creates new {@link ParcelService} instance. */ public ParcelService build() { - return new ParcelService(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ParcelService(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -175,6 +175,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -184,9 +188,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ParcelService(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ParcelService(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ParentAudience.java b/src/main/java/org/schema/ParentAudience.java index 2c627cf3..d35364c1 100644 --- a/src/main/java/org/schema/ParentAudience.java +++ b/src/main/java/org/schema/ParentAudience.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link ParentAudience} instance. */ public ParentAudience build() { - return new ParentAudience(childMaxAge, childMinAge, healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ParentAudience(childMaxAge, childMinAge, healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Maximal age of the child. @@ -240,6 +240,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number childMaxAge; private Number childMinAge; private MedicalCondition healthCondition; @@ -259,10 +263,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ParentAudience(Number childMaxAge, Number childMinAge, MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ParentAudience(Number childMaxAge, Number childMinAge, MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myChildMaxAge = childMaxAge; myChildMinAge = childMinAge; } diff --git a/src/main/java/org/schema/Park.java b/src/main/java/org/schema/Park.java index febaabb8..7af8e1d2 100644 --- a/src/main/java/org/schema/Park.java +++ b/src/main/java/org/schema/Park.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Park} instance. */ public Park build() { - return new Park(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Park(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Park(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Park(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ParkingFacility.java b/src/main/java/org/schema/ParkingFacility.java index f01a7012..db6c0f9b 100644 --- a/src/main/java/org/schema/ParkingFacility.java +++ b/src/main/java/org/schema/ParkingFacility.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ParkingFacility} instance. */ public ParkingFacility build() { - return new ParkingFacility(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ParkingFacility(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ParkingFacility(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ParkingFacility(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PathologyTest.java b/src/main/java/org/schema/PathologyTest.java index 185cdfd8..08bce3e1 100644 --- a/src/main/java/org/schema/PathologyTest.java +++ b/src/main/java/org/schema/PathologyTest.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link PathologyTest} instance. */ public PathologyTest build() { - return new PathologyTest(tissueSample, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PathologyTest(tissueSample, affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The type of tissue sample required for the test. @@ -242,6 +242,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String tissueSample; private Drug affectedBy; private String normalRange; @@ -262,10 +266,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PathologyTest(String tissueSample, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PathologyTest(String tissueSample, Drug affectedBy, String normalRange, MedicalSign signDetected, MedicalCondition usedToDiagnose, MedicalDevice usesDevice, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(affectedBy, normalRange, signDetected, usedToDiagnose, usesDevice, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myTissueSample = tissueSample; } private String myTissueSample; diff --git a/src/main/java/org/schema/PawnShop.java b/src/main/java/org/schema/PawnShop.java index a5a680c9..a9af5961 100644 --- a/src/main/java/org/schema/PawnShop.java +++ b/src/main/java/org/schema/PawnShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PawnShop} instance. */ public PawnShop build() { - return new PawnShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PawnShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PawnShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PawnShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PayAction.java b/src/main/java/org/schema/PayAction.java index 60064172..6933fcee 100644 --- a/src/main/java/org/schema/PayAction.java +++ b/src/main/java/org/schema/PayAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link PayAction} instance. */ public PayAction build() { - return new PayAction(purpose, recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PayAction(purpose, recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A goal towards an action is taken. Can be concrete or abstract. @@ -321,6 +321,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalDevicePurposeOrThing purpose; private AudienceOrOrganizationOrPerson recipient; private NumberOrString price; @@ -339,10 +343,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PayAction(MedicalDevicePurposeOrThing purpose, AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PayAction(MedicalDevicePurposeOrThing purpose, AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPurpose = purpose; myRecipient = recipient; } diff --git a/src/main/java/org/schema/PaymentChargeSpecification.java b/src/main/java/org/schema/PaymentChargeSpecification.java index dacfc27f..54c5eab8 100644 --- a/src/main/java/org/schema/PaymentChargeSpecification.java +++ b/src/main/java/org/schema/PaymentChargeSpecification.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link PaymentChargeSpecification} instance. */ public PaymentChargeSpecification build() { - return new PaymentChargeSpecification(appliesToDeliveryMethod, appliesToPaymentMethod, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PaymentChargeSpecification(appliesToDeliveryMethod, appliesToPaymentMethod, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The delivery method(s) to which the delivery charge or payment charge specification applies. @@ -290,6 +290,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod appliesToDeliveryMethod; private PaymentMethod appliesToPaymentMethod; private QuantitativeValue eligibleQuantity; @@ -309,10 +313,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PaymentChargeSpecification(DeliveryMethod appliesToDeliveryMethod, PaymentMethod appliesToPaymentMethod, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PaymentChargeSpecification(DeliveryMethod appliesToDeliveryMethod, PaymentMethod appliesToPaymentMethod, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAppliesToDeliveryMethod = appliesToDeliveryMethod; myAppliesToPaymentMethod = appliesToPaymentMethod; } diff --git a/src/main/java/org/schema/PaymentMethod.java b/src/main/java/org/schema/PaymentMethod.java index 4eca18cb..e00f2a23 100644 --- a/src/main/java/org/schema/PaymentMethod.java +++ b/src/main/java/org/schema/PaymentMethod.java @@ -44,7 +44,7 @@ public static final class Builder { * Creates new {@link PaymentMethod} instance. */ public PaymentMethod build() { - return new PaymentMethod(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PaymentMethod(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -181,6 +181,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -190,9 +194,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PaymentMethod(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PaymentMethod(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PeopleAudience.java b/src/main/java/org/schema/PeopleAudience.java index a02c08c9..cfe23842 100644 --- a/src/main/java/org/schema/PeopleAudience.java +++ b/src/main/java/org/schema/PeopleAudience.java @@ -72,7 +72,7 @@ public static final class Builder { * Creates new {@link PeopleAudience} instance. */ public PeopleAudience build() { - return new PeopleAudience(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PeopleAudience(healthCondition, requiredGender, requiredMaxAge, requiredMinAge, suggestedGender, suggestedMaxAge, suggestedMinAge, audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Expectations for health conditions of target audience. @@ -256,6 +256,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCondition healthCondition; private String requiredGender; private Integer requiredMaxAge; @@ -273,10 +277,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PeopleAudience(MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PeopleAudience(MedicalCondition healthCondition, String requiredGender, Integer requiredMaxAge, Integer requiredMinAge, String suggestedGender, Number suggestedMaxAge, Number suggestedMinAge, String audienceType, AdministrativeArea geographicArea, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(audienceType, geographicArea, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myHealthCondition = healthCondition; myRequiredGender = requiredGender; myRequiredMaxAge = requiredMaxAge; diff --git a/src/main/java/org/schema/PerformAction.java b/src/main/java/org/schema/PerformAction.java index cc4c200b..ef4eb7e2 100644 --- a/src/main/java/org/schema/PerformAction.java +++ b/src/main/java/org/schema/PerformAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link PerformAction} instance. */ public PerformAction build() { - return new PerformAction(entertainmentBusiness, audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PerformAction(entertainmentBusiness, audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The entertainment business where the action occurred. @@ -233,6 +233,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EntertainmentBusiness entertainmentBusiness; private Audience audience; private Event event; @@ -250,10 +254,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PerformAction(EntertainmentBusiness entertainmentBusiness, Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PerformAction(EntertainmentBusiness entertainmentBusiness, Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEntertainmentBusiness = entertainmentBusiness; } private EntertainmentBusiness myEntertainmentBusiness; diff --git a/src/main/java/org/schema/PerformanceRole.java b/src/main/java/org/schema/PerformanceRole.java index d58231d4..23de3b9a 100644 --- a/src/main/java/org/schema/PerformanceRole.java +++ b/src/main/java/org/schema/PerformanceRole.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link PerformanceRole} instance. */ public PerformanceRole build() { - return new PerformanceRole(characterName, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PerformanceRole(characterName, startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The name of a character played in some acting or performing role, i.e. in a PerformanceRole. @@ -178,6 +178,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String characterName; private java.util.Date startDate; private String roleName; @@ -189,10 +193,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PerformanceRole(String characterName, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PerformanceRole(String characterName, java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCharacterName = characterName; } private String myCharacterName; diff --git a/src/main/java/org/schema/PerformingArtsTheater.java b/src/main/java/org/schema/PerformingArtsTheater.java index ea7eb793..9198a37a 100644 --- a/src/main/java/org/schema/PerformingArtsTheater.java +++ b/src/main/java/org/schema/PerformingArtsTheater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PerformingArtsTheater} instance. */ public PerformingArtsTheater build() { - return new PerformingArtsTheater(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PerformingArtsTheater(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PerformingArtsTheater(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PerformingArtsTheater(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PerformingGroup.java b/src/main/java/org/schema/PerformingGroup.java index 4fd637e2..db0f7176 100644 --- a/src/main/java/org/schema/PerformingGroup.java +++ b/src/main/java/org/schema/PerformingGroup.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PerformingGroup} instance. */ public PerformingGroup build() { - return new PerformingGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PerformingGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -420,6 +420,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -460,9 +464,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PerformingGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PerformingGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Periodical.java b/src/main/java/org/schema/Periodical.java index d0a9a44c..fd5ed6aa 100644 --- a/src/main/java/org/schema/Periodical.java +++ b/src/main/java/org/schema/Periodical.java @@ -40,7 +40,7 @@ public static final class Builder { * Creates new {@link Periodical} instance. */ public Periodical build() { - return new Periodical(issn, endDate, startDate, 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); + return new Periodical(issn, endDate, startDate, 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); } /** * The International Standard Serial Number (ISSN) that identifies this periodical. You can repeat this property to (for example) identify different formats of this periodical. @@ -713,6 +713,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String issn; private java.util.Date endDate; private java.util.Date startDate; @@ -787,10 +791,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Periodical(String issn, java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected Periodical(String issn, java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); myIssn = issn; } private String myIssn; diff --git a/src/main/java/org/schema/Permit.java b/src/main/java/org/schema/Permit.java index ba6c8be9..8c797d87 100644 --- a/src/main/java/org/schema/Permit.java +++ b/src/main/java/org/schema/Permit.java @@ -74,7 +74,7 @@ public static final class Builder { * Creates new {@link Permit} instance. */ public Permit build() { - return new Permit(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Permit(issuedThrough, permitAudience, validFor, validFrom, validIn, validUntil, issuedBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The service through with the permit was granted. @@ -244,6 +244,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Service issuedThrough; private Audience permitAudience; private Duration validFor; @@ -259,10 +263,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Permit(Service issuedThrough, Audience permitAudience, Duration validFor, java.util.Date validFrom, AdministrativeArea validIn, java.util.Date validUntil, Organization issuedBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Permit(Service issuedThrough, Audience permitAudience, Duration validFor, java.util.Date validFrom, AdministrativeArea validIn, java.util.Date validUntil, Organization issuedBy, 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); myIssuedThrough = issuedThrough; myPermitAudience = permitAudience; myValidFor = validFor; diff --git a/src/main/java/org/schema/Person.java b/src/main/java/org/schema/Person.java index 55cf3302..3ba7c89a 100644 --- a/src/main/java/org/schema/Person.java +++ b/src/main/java/org/schema/Person.java @@ -316,7 +316,7 @@ public static final class Builder { * Creates new {@link Person} instance. */ public Person build() { - return new Person(additionalName, address, affiliation, alumniOf, award, birthDate, brand, children, colleague, contactPoint, deathDate, duns, email, familyName, faxNumber, follows, gender, givenName, globalLocationNumber, hasPOS, height, homeLocation, honorificPrefix, honorificSuffix, isicV4, jobTitle, knows, makesOffer, memberOf, naics, nationality, netWorth, owns, parent, performerIn, relatedTo, seeks, sibling, spouse, taxID, telephone, vatID, weight, workLocation, worksFor, birthPlace, deathPlace, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Person(additionalName, address, affiliation, alumniOf, award, birthDate, brand, children, colleague, contactPoint, deathDate, duns, email, familyName, faxNumber, follows, gender, givenName, globalLocationNumber, hasPOS, height, homeLocation, honorificPrefix, honorificSuffix, isicV4, jobTitle, knows, makesOffer, memberOf, naics, nationality, netWorth, owns, parent, performerIn, relatedTo, seeks, sibling, spouse, taxID, telephone, vatID, weight, workLocation, worksFor, birthPlace, deathPlace, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An additional name for a Person, can be used for a middle name. @@ -820,6 +820,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String additionalName; private PostalAddress address; private Organization affiliation; @@ -875,10 +879,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Person(String additionalName, PostalAddress address, Organization affiliation, EducationalOrganization alumniOf, String award, java.util.Date birthDate, BrandOrOrganization brand, Person children, Person colleague, ContactPoint contactPoint, java.util.Date deathDate, String duns, String email, String familyName, String faxNumber, Person follows, String gender, String givenName, String globalLocationNumber, Place hasPOS, DistanceOrQuantitativeValue height, ContactPointOrPlace homeLocation, String honorificPrefix, String honorificSuffix, String isicV4, String jobTitle, Person knows, Offer makesOffer, OrganizationOrProgramMembership memberOf, String naics, Country nationality, PriceSpecification netWorth, OwnershipInfoOrProduct owns, Person parent, Event performerIn, Person relatedTo, Demand seeks, Person sibling, Person spouse, String taxID, String telephone, String vatID, QuantitativeValue weight, ContactPointOrPlace workLocation, Organization worksFor, Place birthPlace, Place deathPlace, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Person(String additionalName, PostalAddress address, Organization affiliation, EducationalOrganization alumniOf, String award, java.util.Date birthDate, BrandOrOrganization brand, Person children, Person colleague, ContactPoint contactPoint, java.util.Date deathDate, String duns, String email, String familyName, String faxNumber, Person follows, String gender, String givenName, String globalLocationNumber, Place hasPOS, DistanceOrQuantitativeValue height, ContactPointOrPlace homeLocation, String honorificPrefix, String honorificSuffix, String isicV4, String jobTitle, Person knows, Offer makesOffer, OrganizationOrProgramMembership memberOf, String naics, Country nationality, PriceSpecification netWorth, OwnershipInfoOrProduct owns, Person parent, Event performerIn, Person relatedTo, Demand seeks, Person sibling, Person spouse, String taxID, String telephone, String vatID, QuantitativeValue weight, ContactPointOrPlace workLocation, Organization worksFor, Place birthPlace, Place deathPlace, 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); myAdditionalName = additionalName; myAddress = address; myAffiliation = affiliation; diff --git a/src/main/java/org/schema/PetStore.java b/src/main/java/org/schema/PetStore.java index a10cfb3e..4cde3370 100644 --- a/src/main/java/org/schema/PetStore.java +++ b/src/main/java/org/schema/PetStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PetStore} instance. */ public PetStore build() { - return new PetStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PetStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PetStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PetStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Pharmacy.java b/src/main/java/org/schema/Pharmacy.java index 8327f2dd..f2660d7c 100644 --- a/src/main/java/org/schema/Pharmacy.java +++ b/src/main/java/org/schema/Pharmacy.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Pharmacy} instance. */ public Pharmacy build() { - return new Pharmacy(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Pharmacy(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Pharmacy(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Pharmacy(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Photograph.java b/src/main/java/org/schema/Photograph.java index ae072cc7..979584ff 100644 --- a/src/main/java/org/schema/Photograph.java +++ b/src/main/java/org/schema/Photograph.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Photograph} instance. */ public Photograph build() { - return new Photograph(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); + return new Photograph(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Photograph(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) { - super(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); + protected Photograph(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(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); } } diff --git a/src/main/java/org/schema/PhotographAction.java b/src/main/java/org/schema/PhotographAction.java index ffa1055d..5fb01471 100644 --- a/src/main/java/org/schema/PhotographAction.java +++ b/src/main/java/org/schema/PhotographAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PhotographAction} instance. */ public PhotographAction build() { - return new PhotographAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PhotographAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PhotographAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PhotographAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PhysicalActivity.java b/src/main/java/org/schema/PhysicalActivity.java index ca07811b..aae1f1a8 100644 --- a/src/main/java/org/schema/PhysicalActivity.java +++ b/src/main/java/org/schema/PhysicalActivity.java @@ -55,7 +55,7 @@ public static final class Builder { * Creates new {@link PhysicalActivity} instance. */ public PhysicalActivity build() { - return new PhysicalActivity(associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PhysicalActivity(associatedAnatomy, category, epidemiology, pathophysiology, adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The anatomy of the underlying organ system or structures associated with this entity. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy; private PhysicalActivityCategoryOrStringOrThing category; private String epidemiology; @@ -338,10 +342,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PhysicalActivity(AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, PhysicalActivityCategoryOrStringOrThing category, String epidemiology, String pathophysiology, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PhysicalActivity(AnatomicalStructureOrAnatomicalSystemOrSuperficialAnatomy associatedAnatomy, PhysicalActivityCategoryOrStringOrThing category, String epidemiology, String pathophysiology, MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAssociatedAnatomy = associatedAnatomy; myCategory = category; myEpidemiology = epidemiology; diff --git a/src/main/java/org/schema/PhysicalActivityCategory.java b/src/main/java/org/schema/PhysicalActivityCategory.java index b8017a78..ccbb3c3b 100644 --- a/src/main/java/org/schema/PhysicalActivityCategory.java +++ b/src/main/java/org/schema/PhysicalActivityCategory.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PhysicalActivityCategory} instance. */ public PhysicalActivityCategory build() { - return new PhysicalActivityCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PhysicalActivityCategory(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PhysicalActivityCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PhysicalActivityCategory(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PhysicalExam.java b/src/main/java/org/schema/PhysicalExam.java index 982c6ad4..8d5cc278 100644 --- a/src/main/java/org/schema/PhysicalExam.java +++ b/src/main/java/org/schema/PhysicalExam.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PhysicalExam} instance. */ public PhysicalExam build() { - return new PhysicalExam(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PhysicalExam(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -168,6 +168,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -177,9 +181,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PhysicalExam(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PhysicalExam(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PhysicalTherapy.java b/src/main/java/org/schema/PhysicalTherapy.java index b44aba35..b395e2e5 100644 --- a/src/main/java/org/schema/PhysicalTherapy.java +++ b/src/main/java/org/schema/PhysicalTherapy.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PhysicalTherapy} instance. */ public PhysicalTherapy build() { - return new PhysicalTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PhysicalTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PhysicalTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PhysicalTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Physician.java b/src/main/java/org/schema/Physician.java index 195b47ec..5fa45d69 100644 --- a/src/main/java/org/schema/Physician.java +++ b/src/main/java/org/schema/Physician.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link Physician} instance. */ public Physician build() { - return new Physician(availableService, hospitalAffiliation, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Physician(availableService, hospitalAffiliation, medicalSpecialty, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical service available from this provider. @@ -386,6 +386,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalProcedureOrMedicalTestOrMedicalTherapy availableService; private Hospital hospitalAffiliation; private MedicalSpecialty medicalSpecialty; @@ -417,10 +421,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Physician(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, Hospital hospitalAffiliation, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Physician(MedicalProcedureOrMedicalTestOrMedicalTherapy availableService, Hospital hospitalAffiliation, MedicalSpecialty medicalSpecialty, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAvailableService = availableService; myHospitalAffiliation = hospitalAffiliation; myMedicalSpecialty = medicalSpecialty; diff --git a/src/main/java/org/schema/Place.java b/src/main/java/org/schema/Place.java index bf3d7c3e..c3af13e0 100644 --- a/src/main/java/org/schema/Place.java +++ b/src/main/java/org/schema/Place.java @@ -123,7 +123,7 @@ public static final class Builder { * Creates new {@link Place} instance. */ public Place build() { - return new Place(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Place(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -388,6 +388,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -411,10 +415,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Place(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Place(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, 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); myAddress = address; myAggregateRating = aggregateRating; myContainedIn = containedIn; diff --git a/src/main/java/org/schema/PlaceOfWorship.java b/src/main/java/org/schema/PlaceOfWorship.java index f1939e54..4e938a96 100644 --- a/src/main/java/org/schema/PlaceOfWorship.java +++ b/src/main/java/org/schema/PlaceOfWorship.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PlaceOfWorship} instance. */ public PlaceOfWorship build() { - return new PlaceOfWorship(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PlaceOfWorship(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PlaceOfWorship(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PlaceOfWorship(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PlanAction.java b/src/main/java/org/schema/PlanAction.java index 2866a141..b193f6da 100644 --- a/src/main/java/org/schema/PlanAction.java +++ b/src/main/java/org/schema/PlanAction.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link PlanAction} instance. */ public PlanAction build() { - return new PlanAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PlanAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The time the object is scheduled to. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date scheduledTime; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -235,10 +239,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PlanAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PlanAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myScheduledTime = scheduledTime; } private java.util.Date myScheduledTime; diff --git a/src/main/java/org/schema/PlayAction.java b/src/main/java/org/schema/PlayAction.java index 417a6b04..2689f329 100644 --- a/src/main/java/org/schema/PlayAction.java +++ b/src/main/java/org/schema/PlayAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link PlayAction} instance. */ public PlayAction build() { - return new PlayAction(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PlayAction(audience, event, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An intended audience, i.e. a group for whom something was created. @@ -232,6 +232,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Audience audience; private Event event; private OrganizationOrPerson agent; @@ -248,10 +252,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PlayAction(Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PlayAction(Audience audience, Event event, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAudience = audience; myEvent = event; } diff --git a/src/main/java/org/schema/Playground.java b/src/main/java/org/schema/Playground.java index 6311f171..827e148c 100644 --- a/src/main/java/org/schema/Playground.java +++ b/src/main/java/org/schema/Playground.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Playground} instance. */ public Playground build() { - return new Playground(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Playground(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Playground(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Playground(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Plumber.java b/src/main/java/org/schema/Plumber.java index 84738f9a..ccb4e36f 100644 --- a/src/main/java/org/schema/Plumber.java +++ b/src/main/java/org/schema/Plumber.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Plumber} instance. */ public Plumber build() { - return new Plumber(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Plumber(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Plumber(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Plumber(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PoliceStation.java b/src/main/java/org/schema/PoliceStation.java index e99b69d2..29dc36ed 100644 --- a/src/main/java/org/schema/PoliceStation.java +++ b/src/main/java/org/schema/PoliceStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PoliceStation} instance. */ public PoliceStation build() { - return new PoliceStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PoliceStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PoliceStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PoliceStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Pond.java b/src/main/java/org/schema/Pond.java index de9c7a0e..73231373 100644 --- a/src/main/java/org/schema/Pond.java +++ b/src/main/java/org/schema/Pond.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Pond} instance. */ public Pond build() { - return new Pond(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Pond(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Pond(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Pond(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PostOffice.java b/src/main/java/org/schema/PostOffice.java index 4fcfa2a7..650799bf 100644 --- a/src/main/java/org/schema/PostOffice.java +++ b/src/main/java/org/schema/PostOffice.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PostOffice} instance. */ public PostOffice build() { - return new PostOffice(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PostOffice(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PostOffice(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PostOffice(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PostalAddress.java b/src/main/java/org/schema/PostalAddress.java index d02b77ba..befd8b03 100644 --- a/src/main/java/org/schema/PostalAddress.java +++ b/src/main/java/org/schema/PostalAddress.java @@ -66,7 +66,7 @@ public static final class Builder { * Creates new {@link PostalAddress} instance. */ public PostalAddress build() { - return new PostalAddress(addressCountry, addressLocality, addressRegion, postalCode, postOfficeBoxNumber, streetAddress, areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PostalAddress(addressCountry, addressLocality, addressRegion, postalCode, postOfficeBoxNumber, streetAddress, areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The country. For example, USA. You can also provide the two-letter
ISO 3166-1 alpha-2 country code. @@ -301,6 +301,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Country addressCountry; private String addressLocality; private String addressRegion; @@ -324,10 +328,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PostalAddress(Country addressCountry, String addressLocality, String addressRegion, String postalCode, String postOfficeBoxNumber, String streetAddress, AdministrativeArea areaServed, Language availableLanguage, ContactPointOption contactOption, String contactType, String email, String faxNumber, OpeningHoursSpecification hoursAvailable, ProductOrString productSupported, String telephone, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PostalAddress(Country addressCountry, String addressLocality, String addressRegion, String postalCode, String postOfficeBoxNumber, String streetAddress, AdministrativeArea areaServed, Language availableLanguage, ContactPointOption contactOption, String contactType, String email, String faxNumber, OpeningHoursSpecification hoursAvailable, ProductOrString productSupported, String telephone, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(areaServed, availableLanguage, contactOption, contactType, email, faxNumber, hoursAvailable, productSupported, telephone, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAddressCountry = addressCountry; myAddressLocality = addressLocality; myAddressRegion = addressRegion; diff --git a/src/main/java/org/schema/PrependAction.java b/src/main/java/org/schema/PrependAction.java index a43e2cf5..1e300216 100644 --- a/src/main/java/org/schema/PrependAction.java +++ b/src/main/java/org/schema/PrependAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PrependAction} instance. */ public PrependAction build() { - return new PrependAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PrependAction(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The final location of the object or the agent after the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place toLocation; private Thing targetCollection; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PrependAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PrependAction(Place toLocation, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(toLocation, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Preschool.java b/src/main/java/org/schema/Preschool.java index 43d8bb5c..b9c9b8da 100644 --- a/src/main/java/org/schema/Preschool.java +++ b/src/main/java/org/schema/Preschool.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Preschool} instance. */ public Preschool build() { - return new Preschool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Preschool(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Preschool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Preschool(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PreventionIndication.java b/src/main/java/org/schema/PreventionIndication.java index b65fb012..655c0cdf 100644 --- a/src/main/java/org/schema/PreventionIndication.java +++ b/src/main/java/org/schema/PreventionIndication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PreventionIndication} instance. */ public PreventionIndication build() { - return new PreventionIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PreventionIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -194,6 +194,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -208,9 +212,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PreventionIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PreventionIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PriceSpecification.java b/src/main/java/org/schema/PriceSpecification.java index 2291146b..d4f49a93 100644 --- a/src/main/java/org/schema/PriceSpecification.java +++ b/src/main/java/org/schema/PriceSpecification.java @@ -107,7 +107,7 @@ public static final class Builder { * Creates new {@link PriceSpecification} instance. */ public PriceSpecification build() { - return new PriceSpecification(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PriceSpecification(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. @@ -340,6 +340,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QuantitativeValue eligibleQuantity; private PriceSpecification eligibleTransactionVolume; private Number maxPrice; @@ -357,10 +361,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PriceSpecification(QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PriceSpecification(QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, 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); myEligibleQuantity = eligibleQuantity; myEligibleTransactionVolume = eligibleTransactionVolume; myMaxPrice = maxPrice; diff --git a/src/main/java/org/schema/Product.java b/src/main/java/org/schema/Product.java index a4b6dc6e..42a1f11d 100644 --- a/src/main/java/org/schema/Product.java +++ b/src/main/java/org/schema/Product.java @@ -223,7 +223,7 @@ public static final class Builder { * Creates new {@link Product} instance. */ public Product build() { - return new Product(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Product(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -635,6 +635,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private Audience audience; private String award; @@ -674,10 +678,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Product(AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Product(AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, 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); myAggregateRating = aggregateRating; myAudience = audience; myAward = award; diff --git a/src/main/java/org/schema/ProductModel.java b/src/main/java/org/schema/ProductModel.java index e7697d19..e803c2a0 100644 --- a/src/main/java/org/schema/ProductModel.java +++ b/src/main/java/org/schema/ProductModel.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link ProductModel} instance. */ public ProductModel build() { - return new ProductModel(isVariantOf, predecessorOf, successorOf, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ProductModel(isVariantOf, predecessorOf, successorOf, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A pointer to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. @@ -482,6 +482,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private ProductModel isVariantOf; private ProductModel predecessorOf; private ProductModel successorOf; @@ -524,10 +528,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ProductModel(ProductModel isVariantOf, ProductModel predecessorOf, ProductModel successorOf, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ProductModel(ProductModel isVariantOf, ProductModel predecessorOf, ProductModel successorOf, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIsVariantOf = isVariantOf; myPredecessorOf = predecessorOf; mySuccessorOf = successorOf; diff --git a/src/main/java/org/schema/ProfessionalService.java b/src/main/java/org/schema/ProfessionalService.java index da2bebe7..1635be24 100644 --- a/src/main/java/org/schema/ProfessionalService.java +++ b/src/main/java/org/schema/ProfessionalService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ProfessionalService} instance. */ public ProfessionalService build() { - return new ProfessionalService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ProfessionalService(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ProfessionalService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ProfessionalService(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ProfilePage.java b/src/main/java/org/schema/ProfilePage.java index adb6c721..7df1bbc7 100644 --- a/src/main/java/org/schema/ProfilePage.java +++ b/src/main/java/org/schema/ProfilePage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ProfilePage} instance. */ public ProfilePage build() { - return new ProfilePage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new ProfilePage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ProfilePage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected ProfilePage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/ProgramMembership.java b/src/main/java/org/schema/ProgramMembership.java index 62d87617..6c7b7345 100644 --- a/src/main/java/org/schema/ProgramMembership.java +++ b/src/main/java/org/schema/ProgramMembership.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link ProgramMembership} instance. */ public ProgramMembership build() { - return new ProgramMembership(membershipNumber, programName, hostingOrganization, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ProgramMembership(membershipNumber, programName, hostingOrganization, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A unique identifier for the membership. @@ -190,6 +190,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String membershipNumber; private String programName; private Organization hostingOrganization; @@ -201,10 +205,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ProgramMembership(String membershipNumber, String programName, Organization hostingOrganization, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ProgramMembership(String membershipNumber, String programName, Organization hostingOrganization, 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); myMembershipNumber = membershipNumber; myProgramName = programName; myHostingOrganization = hostingOrganization; diff --git a/src/main/java/org/schema/Property.java b/src/main/java/org/schema/Property.java index 94c8a7cc..f81af812 100644 --- a/src/main/java/org/schema/Property.java +++ b/src/main/java/org/schema/Property.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link Property} instance. */ public Property build() { - return new Property(inverseOf, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Property(inverseOf, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. @@ -186,6 +186,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Property inverseOf; private EnumerationOrProperty supersededBy; private String additionalType; @@ -196,10 +200,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Property(Property inverseOf, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Property(Property inverseOf, EnumerationOrProperty supersededBy, 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); myInverseOf = inverseOf; mySupersededBy = supersededBy; } diff --git a/src/main/java/org/schema/PropertyValue.java b/src/main/java/org/schema/PropertyValue.java index 303bd482..f514ea31 100644 --- a/src/main/java/org/schema/PropertyValue.java +++ b/src/main/java/org/schema/PropertyValue.java @@ -74,7 +74,7 @@ public static final class Builder { * Creates new {@link PropertyValue} instance. */ public PropertyValue build() { - return new PropertyValue(minValue, unitCode, value, valueReference, unitText, propertyID, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PropertyValue(minValue, unitCode, value, valueReference, unitText, propertyID, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The lower value of some characteristic or property. @@ -299,6 +299,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number minValue; private String unitCode; private BooleanOrNumberOrStringOrStructuredValue value; @@ -313,10 +317,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PropertyValue(Number minValue, String unitCode, BooleanOrNumberOrStringOrStructuredValue value, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, String unitText, String propertyID, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PropertyValue(Number minValue, String unitCode, BooleanOrNumberOrStringOrStructuredValue value, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, String unitText, String propertyID, 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); myMinValue = minValue; myUnitCode = unitCode; myValue = value; diff --git a/src/main/java/org/schema/PropertyValueSpecification.java b/src/main/java/org/schema/PropertyValueSpecification.java index 85b7986d..a76dfcc9 100644 --- a/src/main/java/org/schema/PropertyValueSpecification.java +++ b/src/main/java/org/schema/PropertyValueSpecification.java @@ -91,7 +91,7 @@ public static final class Builder { * Creates new {@link PropertyValueSpecification} instance. */ public PropertyValueSpecification build() { - return new PropertyValueSpecification(minValue, valueName, valueRequired, defaultValue, readonlyValue, multipleValues, valueMinLength, valueMaxLength, valuePattern, stepValue, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PropertyValueSpecification(minValue, valueName, valueRequired, defaultValue, readonlyValue, multipleValues, valueMinLength, valueMaxLength, valuePattern, stepValue, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The lower value of some characteristic or property. @@ -291,6 +291,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number minValue; private String valueName; private Boolean valueRequired; @@ -309,10 +313,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PropertyValueSpecification(Number minValue, String valueName, Boolean valueRequired, StringOrThing defaultValue, Boolean readonlyValue, Boolean multipleValues, Number valueMinLength, Number valueMaxLength, String valuePattern, Number stepValue, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PropertyValueSpecification(Number minValue, String valueName, Boolean valueRequired, StringOrThing defaultValue, Boolean readonlyValue, Boolean multipleValues, Number valueMinLength, Number valueMaxLength, String valuePattern, Number stepValue, 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); myMinValue = minValue; myValueName = valueName; myValueRequired = valueRequired; diff --git a/src/main/java/org/schema/PsychologicalTreatment.java b/src/main/java/org/schema/PsychologicalTreatment.java index bcdc91c1..32fe6cc9 100644 --- a/src/main/java/org/schema/PsychologicalTreatment.java +++ b/src/main/java/org/schema/PsychologicalTreatment.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link PsychologicalTreatment} instance. */ public PsychologicalTreatment build() { - return new PsychologicalTreatment(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PsychologicalTreatment(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PsychologicalTreatment(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PsychologicalTreatment(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PublicSwimmingPool.java b/src/main/java/org/schema/PublicSwimmingPool.java index 8a33ca49..350210ae 100644 --- a/src/main/java/org/schema/PublicSwimmingPool.java +++ b/src/main/java/org/schema/PublicSwimmingPool.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link PublicSwimmingPool} instance. */ public PublicSwimmingPool build() { - return new PublicSwimmingPool(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PublicSwimmingPool(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PublicSwimmingPool(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PublicSwimmingPool(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/PublicationEvent.java b/src/main/java/org/schema/PublicationEvent.java index 9c4651af..cdc8af46 100644 --- a/src/main/java/org/schema/PublicationEvent.java +++ b/src/main/java/org/schema/PublicationEvent.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link PublicationEvent} instance. */ public PublicationEvent build() { - return new PublicationEvent(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new PublicationEvent(isAccessibleForFree, publishedOn, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A flag to signal that the publication is accessible for free. @@ -339,6 +339,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Boolean isAccessibleForFree; private BroadcastService publishedOn; private AggregateRating aggregateRating; @@ -367,10 +371,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PublicationEvent(Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected PublicationEvent(Boolean isAccessibleForFree, BroadcastService publishedOn, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myIsAccessibleForFree = isAccessibleForFree; myPublishedOn = publishedOn; } diff --git a/src/main/java/org/schema/PublicationIssue.java b/src/main/java/org/schema/PublicationIssue.java index 42003717..7bb1488d 100644 --- a/src/main/java/org/schema/PublicationIssue.java +++ b/src/main/java/org/schema/PublicationIssue.java @@ -58,7 +58,7 @@ public static final class Builder { * Creates new {@link PublicationIssue} instance. */ public PublicationIssue build() { - return new PublicationIssue(issueNumber, pageEnd, pageStart, pagination, 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); + return new PublicationIssue(issueNumber, pageEnd, pageStart, pagination, 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); } /** * Identifies the issue of publication; for example, "iii" or "2". @@ -765,6 +765,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private IntegerOrString issueNumber; private IntegerOrString pageEnd; private IntegerOrString pageStart; @@ -840,10 +844,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PublicationIssue(IntegerOrString issueNumber, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(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); + protected PublicationIssue(IntegerOrString issueNumber, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(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); myIssueNumber = issueNumber; myPageEnd = pageEnd; myPageStart = pageStart; diff --git a/src/main/java/org/schema/PublicationVolume.java b/src/main/java/org/schema/PublicationVolume.java index fd672a54..3911fb81 100644 --- a/src/main/java/org/schema/PublicationVolume.java +++ b/src/main/java/org/schema/PublicationVolume.java @@ -57,7 +57,7 @@ public static final class Builder { * Creates new {@link PublicationVolume} instance. */ public PublicationVolume build() { - return new PublicationVolume(pageEnd, pageStart, pagination, volumeNumber, 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); + return new PublicationVolume(pageEnd, pageStart, pagination, volumeNumber, 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); } /** * The page on which the work ends; for example "138" or "xvi". @@ -764,6 +764,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private IntegerOrString pageEnd; private IntegerOrString pageStart; private String pagination; @@ -839,10 +843,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected PublicationVolume(IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, IntegerOrString volumeNumber, 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) { - super(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); + protected PublicationVolume(IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, IntegerOrString volumeNumber, 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(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); myPageEnd = pageEnd; myPageStart = pageStart; myPagination = pagination; diff --git a/src/main/java/org/schema/QAPage.java b/src/main/java/org/schema/QAPage.java index 35503bc0..8851332b 100644 --- a/src/main/java/org/schema/QAPage.java +++ b/src/main/java/org/schema/QAPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link QAPage} instance. */ public QAPage build() { - return new QAPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new QAPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected QAPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected QAPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/QualitativeValue.java b/src/main/java/org/schema/QualitativeValue.java index 1ffd2ec9..51967333 100644 --- a/src/main/java/org/schema/QualitativeValue.java +++ b/src/main/java/org/schema/QualitativeValue.java @@ -82,7 +82,7 @@ public static final class Builder { * Creates new {@link QualitativeValue} instance. */ public QualitativeValue build() { - return new QualitativeValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new QualitativeValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * This ordering relation for qualitative values indicates that the subject is equal to the object. @@ -311,6 +311,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QualitativeValue equal; private QualitativeValue greater; private QualitativeValue greaterOrEqual; @@ -328,10 +332,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected QualitativeValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected QualitativeValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myEqual = equal; myGreater = greater; myGreaterOrEqual = greaterOrEqual; diff --git a/src/main/java/org/schema/QuantitativeValue.java b/src/main/java/org/schema/QuantitativeValue.java index e7035895..d4b06102 100644 --- a/src/main/java/org/schema/QuantitativeValue.java +++ b/src/main/java/org/schema/QuantitativeValue.java @@ -77,7 +77,7 @@ public static final class Builder { * Creates new {@link QuantitativeValue} instance. */ public QuantitativeValue build() { - return new QuantitativeValue(maxValue, minValue, unitCode, value, valueReference, additionalProperty, unitText, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new QuantitativeValue(maxValue, minValue, unitCode, value, valueReference, additionalProperty, unitText, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The upper value of some characteristic or property. @@ -309,6 +309,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number maxValue; private Number minValue; private String unitCode; @@ -324,10 +328,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected QuantitativeValue(Number maxValue, Number minValue, String unitCode, BooleanOrNumberOrStringOrStructuredValue value, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, String unitText, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected QuantitativeValue(Number maxValue, Number minValue, String unitCode, BooleanOrNumberOrStringOrStructuredValue value, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, String unitText, 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); myMaxValue = maxValue; myMinValue = minValue; myUnitCode = unitCode; diff --git a/src/main/java/org/schema/Quantity.java b/src/main/java/org/schema/Quantity.java index 0d603a89..585ded44 100644 --- a/src/main/java/org/schema/Quantity.java +++ b/src/main/java/org/schema/Quantity.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Quantity} instance. */ public Quantity build() { - return new Quantity(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Quantity(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Quantity(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Quantity(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/Question.java b/src/main/java/org/schema/Question.java index 49ee85b2..266c5fb4 100644 --- a/src/main/java/org/schema/Question.java +++ b/src/main/java/org/schema/Question.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link Question} instance. */ public Question build() { - return new Question(upvoteCount, downvoteCount, answerCount, acceptedAnswer, suggestedAnswer, 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); + return new Question(upvoteCount, downvoteCount, answerCount, acceptedAnswer, suggestedAnswer, 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); } /** * The number of upvotes this question, answer or comment has received from the community. @@ -748,6 +748,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Integer upvoteCount; private Integer downvoteCount; private Integer answerCount; @@ -824,10 +828,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Question(Integer upvoteCount, Integer downvoteCount, Integer answerCount, Answer acceptedAnswer, SuggestedAnswer suggestedAnswer, 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) { - super(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); + protected Question(Integer upvoteCount, Integer downvoteCount, Integer answerCount, Answer acceptedAnswer, SuggestedAnswer suggestedAnswer, 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(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); myUpvoteCount = upvoteCount; myDownvoteCount = downvoteCount; myAnswerCount = answerCount; diff --git a/src/main/java/org/schema/QuoteAction.java b/src/main/java/org/schema/QuoteAction.java index df242cae..8140f373 100644 --- a/src/main/java/org/schema/QuoteAction.java +++ b/src/main/java/org/schema/QuoteAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link QuoteAction} instance. */ public QuoteAction build() { - return new QuoteAction(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new QuoteAction(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes. @@ -269,6 +269,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrString price; private PriceSpecification priceSpecification; private OrganizationOrPerson agent; @@ -285,9 +289,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected QuoteAction(NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected QuoteAction(NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RVPark.java b/src/main/java/org/schema/RVPark.java index f92b3a95..511b51a5 100644 --- a/src/main/java/org/schema/RVPark.java +++ b/src/main/java/org/schema/RVPark.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RVPark} instance. */ public RVPark build() { - return new RVPark(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RVPark(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RVPark(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RVPark(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RadiationTherapy.java b/src/main/java/org/schema/RadiationTherapy.java index 4716c06c..b2fa2ac8 100644 --- a/src/main/java/org/schema/RadiationTherapy.java +++ b/src/main/java/org/schema/RadiationTherapy.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link RadiationTherapy} instance. */ public RadiationTherapy build() { - return new RadiationTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RadiationTherapy(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadiationTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RadiationTherapy(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RadioChannel.java b/src/main/java/org/schema/RadioChannel.java index e80f4a52..2beaac48 100644 --- a/src/main/java/org/schema/RadioChannel.java +++ b/src/main/java/org/schema/RadioChannel.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RadioChannel} instance. */ public RadioChannel build() { - return new RadioChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RadioChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number. @@ -179,6 +179,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String broadcastChannelId; private CableOrSatelliteService inBroadcastLineup; private String broadcastServiceTier; @@ -191,9 +195,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RadioChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RadioClip.java b/src/main/java/org/schema/RadioClip.java index 89f8fcd2..0ba8be96 100644 --- a/src/main/java/org/schema/RadioClip.java +++ b/src/main/java/org/schema/RadioClip.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RadioClip} instance. */ public RadioClip build() { - return new RadioClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + return new RadioClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -740,6 +740,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Position clipNumber; private Person director; @@ -818,9 +822,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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) { - super(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + protected RadioClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } } diff --git a/src/main/java/org/schema/RadioEpisode.java b/src/main/java/org/schema/RadioEpisode.java index a561465c..0a09c283 100644 --- a/src/main/java/org/schema/RadioEpisode.java +++ b/src/main/java/org/schema/RadioEpisode.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RadioEpisode} instance. */ public RadioEpisode build() { - return new RadioEpisode(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); + return new RadioEpisode(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private IntegerOrString episodeNumber; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioEpisode(Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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) { - super(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); + protected RadioEpisode(Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); } } diff --git a/src/main/java/org/schema/RadioSeason.java b/src/main/java/org/schema/RadioSeason.java index ba48e784..3a8cab00 100644 --- a/src/main/java/org/schema/RadioSeason.java +++ b/src/main/java/org/schema/RadioSeason.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RadioSeason} instance. */ public RadioSeason build() { - return new RadioSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); + return new RadioSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -761,6 +761,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private java.util.Date endDate; @@ -842,9 +846,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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) { - super(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); + protected RadioSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); } } diff --git a/src/main/java/org/schema/RadioSeries.java b/src/main/java/org/schema/RadioSeries.java index 25231527..d368a5a7 100644 --- a/src/main/java/org/schema/RadioSeries.java +++ b/src/main/java/org/schema/RadioSeries.java @@ -84,7 +84,7 @@ public static final class Builder { * Creates new {@link RadioSeries} instance. */ public RadioSeries build() { - return new RadioSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, endDate, startDate, 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); + return new RadioSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, endDate, startDate, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -822,6 +822,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private HasPart episode; @@ -904,10 +908,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected RadioSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); myActor = actor; myDirector = director; myEpisode = episode; diff --git a/src/main/java/org/schema/RadioStation.java b/src/main/java/org/schema/RadioStation.java index d5a335c9..91ac849f 100644 --- a/src/main/java/org/schema/RadioStation.java +++ b/src/main/java/org/schema/RadioStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RadioStation} instance. */ public RadioStation build() { - return new RadioStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RadioStation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RadioStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RadioStation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Rating.java b/src/main/java/org/schema/Rating.java index 23f4f6cc..a03b47e4 100644 --- a/src/main/java/org/schema/Rating.java +++ b/src/main/java/org/schema/Rating.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link Rating} instance. */ public Rating build() { - return new Rating(bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Rating(bestRating, ratingValue, worstRating, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed. @@ -208,6 +208,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrString bestRating; private String ratingValue; private NumberOrString worstRating; @@ -219,10 +223,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Rating(NumberOrString bestRating, String ratingValue, NumberOrString worstRating, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Rating(NumberOrString bestRating, String ratingValue, NumberOrString worstRating, 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); myBestRating = bestRating; myRatingValue = ratingValue; myWorstRating = worstRating; diff --git a/src/main/java/org/schema/ReactAction.java b/src/main/java/org/schema/ReactAction.java index 91596232..7399e662 100644 --- a/src/main/java/org/schema/ReactAction.java +++ b/src/main/java/org/schema/ReactAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ReactAction} instance. */ public ReactAction build() { - return new ReactAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReactAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReactAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReactAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ReadAction.java b/src/main/java/org/schema/ReadAction.java index 554047e5..1f9dad9a 100644 --- a/src/main/java/org/schema/ReadAction.java +++ b/src/main/java/org/schema/ReadAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ReadAction} instance. */ public ReadAction build() { - return new ReadAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReadAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReadAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReadAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RealEstateAgent.java b/src/main/java/org/schema/RealEstateAgent.java index e24cc426..b691b383 100644 --- a/src/main/java/org/schema/RealEstateAgent.java +++ b/src/main/java/org/schema/RealEstateAgent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RealEstateAgent} instance. */ public RealEstateAgent build() { - return new RealEstateAgent(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RealEstateAgent(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RealEstateAgent(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RealEstateAgent(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ReceiveAction.java b/src/main/java/org/schema/ReceiveAction.java index fc2c4633..ff27d6ae 100644 --- a/src/main/java/org/schema/ReceiveAction.java +++ b/src/main/java/org/schema/ReceiveAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link ReceiveAction} instance. */ public ReceiveAction build() { - return new ReceiveAction(deliveryMethod, sender, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReceiveAction(deliveryMethod, sender, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of instrument. The method of delivery. @@ -263,6 +263,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod deliveryMethod; private AudienceOrOrganizationOrPerson sender; private Place fromLocation; @@ -281,10 +285,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReceiveAction(DeliveryMethod deliveryMethod, AudienceOrOrganizationOrPerson sender, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReceiveAction(DeliveryMethod deliveryMethod, AudienceOrOrganizationOrPerson sender, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDeliveryMethod = deliveryMethod; mySender = sender; } diff --git a/src/main/java/org/schema/Recipe.java b/src/main/java/org/schema/Recipe.java index 629c6796..bc0d0015 100644 --- a/src/main/java/org/schema/Recipe.java +++ b/src/main/java/org/schema/Recipe.java @@ -90,7 +90,7 @@ public static final class Builder { * Creates new {@link Recipe} instance. */ public Recipe build() { - return new Recipe(cookingMethod, cookTime, recipeIngredient, nutrition, prepTime, recipeCategory, recipeCuisine, recipeInstructions, recipeYield, totalTime, 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); + return new Recipe(cookingMethod, cookTime, recipeIngredient, nutrition, prepTime, recipeCategory, recipeCuisine, recipeInstructions, recipeYield, totalTime, 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); } /** * The method of cooking, such as Frying, Steaming, ... @@ -821,6 +821,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String cookingMethod; private Duration cookTime; private String recipeIngredient; @@ -902,10 +906,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Recipe(String cookingMethod, Duration cookTime, String recipeIngredient, NutritionInformation nutrition, Duration prepTime, String recipeCategory, String recipeCuisine, ItemListOrString recipeInstructions, String recipeYield, Duration totalTime, 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) { - super(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); + protected Recipe(String cookingMethod, Duration cookTime, String recipeIngredient, NutritionInformation nutrition, Duration prepTime, String recipeCategory, String recipeCuisine, ItemListOrString recipeInstructions, String recipeYield, Duration totalTime, 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(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); myCookingMethod = cookingMethod; myCookTime = cookTime; myRecipeIngredient = recipeIngredient; diff --git a/src/main/java/org/schema/RecommendedDoseSchedule.java b/src/main/java/org/schema/RecommendedDoseSchedule.java index 85ddc0e6..4abf7aef 100644 --- a/src/main/java/org/schema/RecommendedDoseSchedule.java +++ b/src/main/java/org/schema/RecommendedDoseSchedule.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RecommendedDoseSchedule} instance. */ public RecommendedDoseSchedule build() { - return new RecommendedDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RecommendedDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unit of the dose, e.g. 'mg'. @@ -221,6 +221,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String doseUnit; private Number doseValue; private String frequency; @@ -239,9 +243,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RecommendedDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RecommendedDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RecyclingCenter.java b/src/main/java/org/schema/RecyclingCenter.java index d9d856b7..6e37046c 100644 --- a/src/main/java/org/schema/RecyclingCenter.java +++ b/src/main/java/org/schema/RecyclingCenter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RecyclingCenter} instance. */ public RecyclingCenter build() { - return new RecyclingCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RecyclingCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RecyclingCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RecyclingCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RegisterAction.java b/src/main/java/org/schema/RegisterAction.java index ba05fc89..49bb33d0 100644 --- a/src/main/java/org/schema/RegisterAction.java +++ b/src/main/java/org/schema/RegisterAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RegisterAction} instance. */ public RegisterAction build() { - return new RegisterAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RegisterAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RegisterAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RegisterAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RejectAction.java b/src/main/java/org/schema/RejectAction.java index b10b599a..8d0af62c 100644 --- a/src/main/java/org/schema/RejectAction.java +++ b/src/main/java/org/schema/RejectAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RejectAction} instance. */ public RejectAction build() { - return new RejectAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RejectAction(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A goal towards an action is taken. Can be concrete or abstract. @@ -222,6 +222,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalDevicePurposeOrThing purpose; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -237,9 +241,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RejectAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RejectAction(MedicalDevicePurposeOrThing purpose, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(purpose, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RentAction.java b/src/main/java/org/schema/RentAction.java index 06564b30..13633dd6 100644 --- a/src/main/java/org/schema/RentAction.java +++ b/src/main/java/org/schema/RentAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link RentAction} instance. */ public RentAction build() { - return new RentAction(landlord, realEstateAgent, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RentAction(landlord, realEstateAgent, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The owner of the real estate property. @@ -304,6 +304,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson landlord; private RealEstateAgent realEstateAgent; private NumberOrString price; @@ -322,10 +326,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RentAction(OrganizationOrPerson landlord, RealEstateAgent realEstateAgent, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RentAction(OrganizationOrPerson landlord, RealEstateAgent realEstateAgent, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myLandlord = landlord; myRealEstateAgent = realEstateAgent; } diff --git a/src/main/java/org/schema/RentalCarReservation.java b/src/main/java/org/schema/RentalCarReservation.java index 0c10b37d..55a77c9f 100644 --- a/src/main/java/org/schema/RentalCarReservation.java +++ b/src/main/java/org/schema/RentalCarReservation.java @@ -56,7 +56,7 @@ public static final class Builder { * Creates new {@link RentalCarReservation} instance. */ public RentalCarReservation build() { - return new RentalCarReservation(pickupLocation, dropoffLocation, pickupTime, dropoffTime, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RentalCarReservation(pickupLocation, dropoffLocation, pickupTime, dropoffTime, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Where a taxi will pick up a passenger or a rental car can be picked up. @@ -333,6 +333,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place pickupLocation; private Place dropoffLocation; private java.util.Date pickupTime; @@ -357,10 +361,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RentalCarReservation(Place pickupLocation, Place dropoffLocation, java.util.Date pickupTime, java.util.Date dropoffTime, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RentalCarReservation(Place pickupLocation, Place dropoffLocation, java.util.Date pickupTime, java.util.Date dropoffTime, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPickupLocation = pickupLocation; myDropoffLocation = dropoffLocation; myPickupTime = pickupTime; diff --git a/src/main/java/org/schema/ReplaceAction.java b/src/main/java/org/schema/ReplaceAction.java index 8c32d1e6..c0dc51f2 100644 --- a/src/main/java/org/schema/ReplaceAction.java +++ b/src/main/java/org/schema/ReplaceAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link ReplaceAction} instance. */ public ReplaceAction build() { - return new ReplaceAction(replacee, replacer, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReplaceAction(replacee, replacer, targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The object that is being replaced. @@ -239,6 +239,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing replacee; private Thing replacer; private Thing targetCollection; @@ -256,10 +260,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReplaceAction(Thing replacee, Thing replacer, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReplaceAction(Thing replacee, Thing replacer, Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myReplacee = replacee; myReplacer = replacer; } diff --git a/src/main/java/org/schema/ReplyAction.java b/src/main/java/org/schema/ReplyAction.java index 1e159de4..62d8fe92 100644 --- a/src/main/java/org/schema/ReplyAction.java +++ b/src/main/java/org/schema/ReplyAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ReplyAction} instance. */ public ReplyAction build() { - return new ReplyAction(resultComment, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReplyAction(resultComment, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of result. The Comment created or sent as a result of this action. @@ -266,6 +266,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Comment resultComment; private Thing about; private LanguageOrString inLanguage; @@ -284,10 +288,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReplyAction(Comment resultComment, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReplyAction(Comment resultComment, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myResultComment = resultComment; } private Comment myResultComment; diff --git a/src/main/java/org/schema/ReportedDoseSchedule.java b/src/main/java/org/schema/ReportedDoseSchedule.java index 1260c3c5..9805ad22 100644 --- a/src/main/java/org/schema/ReportedDoseSchedule.java +++ b/src/main/java/org/schema/ReportedDoseSchedule.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ReportedDoseSchedule} instance. */ public ReportedDoseSchedule build() { - return new ReportedDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReportedDoseSchedule(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unit of the dose, e.g. 'mg'. @@ -221,6 +221,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String doseUnit; private Number doseValue; private String frequency; @@ -239,9 +243,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReportedDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReportedDoseSchedule(String doseUnit, Number doseValue, String frequency, String targetPopulation, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(doseUnit, doseValue, frequency, targetPopulation, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Reservation.java b/src/main/java/org/schema/Reservation.java index e4610cb9..9da8c013 100644 --- a/src/main/java/org/schema/Reservation.java +++ b/src/main/java/org/schema/Reservation.java @@ -104,7 +104,7 @@ public static final class Builder { * Creates new {@link Reservation} instance. */ public Reservation build() { - return new Reservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Reservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A unique identifier for the reservation. @@ -353,6 +353,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String reservationId; private ReservationStatusType reservationStatus; private Thing reservationFor; @@ -373,10 +377,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Reservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Reservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, 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); myReservationId = reservationId; myReservationStatus = reservationStatus; myReservationFor = reservationFor; diff --git a/src/main/java/org/schema/ReservationPackage.java b/src/main/java/org/schema/ReservationPackage.java index 20e1a031..1cf0c525 100644 --- a/src/main/java/org/schema/ReservationPackage.java +++ b/src/main/java/org/schema/ReservationPackage.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ReservationPackage} instance. */ public ReservationPackage build() { - return new ReservationPackage(subReservation, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReservationPackage(subReservation, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The individual reservations included in the package. Typically a repeated property. @@ -292,6 +292,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Reservation subReservation; private String reservationId; private ReservationStatusType reservationStatus; @@ -313,10 +317,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReservationPackage(Reservation subReservation, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReservationPackage(Reservation subReservation, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySubReservation = subReservation; } private Reservation mySubReservation; diff --git a/src/main/java/org/schema/ReservationStatusType.java b/src/main/java/org/schema/ReservationStatusType.java index 9c6e4999..5cb8f482 100644 --- a/src/main/java/org/schema/ReservationStatusType.java +++ b/src/main/java/org/schema/ReservationStatusType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ReservationStatusType} instance. */ public ReservationStatusType build() { - return new ReservationStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReservationStatusType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReservationStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReservationStatusType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ReserveAction.java b/src/main/java/org/schema/ReserveAction.java index a4e28990..d4c78175 100644 --- a/src/main/java/org/schema/ReserveAction.java +++ b/src/main/java/org/schema/ReserveAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ReserveAction} instance. */ public ReserveAction build() { - return new ReserveAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReserveAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The time the object is scheduled to. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date scheduledTime; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReserveAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReserveAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Reservoir.java b/src/main/java/org/schema/Reservoir.java index eee593f5..fc546381 100644 --- a/src/main/java/org/schema/Reservoir.java +++ b/src/main/java/org/schema/Reservoir.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Reservoir} instance. */ public Reservoir build() { - return new Reservoir(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Reservoir(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Reservoir(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Reservoir(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Residence.java b/src/main/java/org/schema/Residence.java index 0edf822e..44e12a1d 100644 --- a/src/main/java/org/schema/Residence.java +++ b/src/main/java/org/schema/Residence.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Residence} instance. */ public Residence build() { - return new Residence(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Residence(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Residence(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Residence(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Restaurant.java b/src/main/java/org/schema/Restaurant.java index 2f71d3d4..fa17f3de 100644 --- a/src/main/java/org/schema/Restaurant.java +++ b/src/main/java/org/schema/Restaurant.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Restaurant} instance. */ public Restaurant build() { - return new Restaurant(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Restaurant(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Restaurant(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Restaurant(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ResumeAction.java b/src/main/java/org/schema/ResumeAction.java index 009cc5d5..caa6a207 100644 --- a/src/main/java/org/schema/ResumeAction.java +++ b/src/main/java/org/schema/ResumeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ResumeAction} instance. */ public ResumeAction build() { - return new ResumeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ResumeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ResumeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ResumeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ReturnAction.java b/src/main/java/org/schema/ReturnAction.java index 7c24fcc1..5abe5d0a 100644 --- a/src/main/java/org/schema/ReturnAction.java +++ b/src/main/java/org/schema/ReturnAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ReturnAction} instance. */ public ReturnAction build() { - return new ReturnAction(recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReturnAction(recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant who is at the receiving end of the action. @@ -250,6 +250,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AudienceOrOrganizationOrPerson recipient; private Place fromLocation; private Place toLocation; @@ -267,10 +271,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReturnAction(AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReturnAction(AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecipient = recipient; } private AudienceOrOrganizationOrPerson myRecipient; diff --git a/src/main/java/org/schema/Review.java b/src/main/java/org/schema/Review.java index 693615b4..65ffd614 100644 --- a/src/main/java/org/schema/Review.java +++ b/src/main/java/org/schema/Review.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link Review} instance. */ public Review build() { - return new Review(itemReviewed, reviewBody, reviewRating, 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); + return new Review(itemReviewed, reviewBody, reviewRating, 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); } /** * The item that is being reviewed/rated. @@ -721,6 +721,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing itemReviewed; private String reviewBody; private Rating reviewRating; @@ -795,10 +799,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Review(Thing itemReviewed, String reviewBody, Rating reviewRating, 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) { - super(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); + protected Review(Thing itemReviewed, String reviewBody, Rating reviewRating, 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(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); myItemReviewed = itemReviewed; myReviewBody = reviewBody; myReviewRating = reviewRating; diff --git a/src/main/java/org/schema/ReviewAction.java b/src/main/java/org/schema/ReviewAction.java index c3e11726..366c22ee 100644 --- a/src/main/java/org/schema/ReviewAction.java +++ b/src/main/java/org/schema/ReviewAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link ReviewAction} instance. */ public ReviewAction build() { - return new ReviewAction(resultReview, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ReviewAction(resultReview, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of result. The review that resulted in the performing of the action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Review resultReview; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ReviewAction(Review resultReview, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ReviewAction(Review resultReview, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myResultReview = resultReview; } private Review myResultReview; diff --git a/src/main/java/org/schema/RiverBodyOfWater.java b/src/main/java/org/schema/RiverBodyOfWater.java index 5a406520..eeb5bf22 100644 --- a/src/main/java/org/schema/RiverBodyOfWater.java +++ b/src/main/java/org/schema/RiverBodyOfWater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RiverBodyOfWater} instance. */ public RiverBodyOfWater build() { - return new RiverBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RiverBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RiverBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RiverBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Role.java b/src/main/java/org/schema/Role.java index 958be3c5..32cc9862 100644 --- a/src/main/java/org/schema/Role.java +++ b/src/main/java/org/schema/Role.java @@ -45,7 +45,7 @@ public static final class Builder { * Creates new {@link Role} instance. */ public Role build() { - return new Role(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Role(startDate, roleName, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The start date and time of the item (in ISO 8601 date format). @@ -180,6 +180,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date startDate; private String roleName; private String additionalType; @@ -190,10 +194,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Role(java.util.Date startDate, String roleName, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Role(java.util.Date startDate, String roleName, 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); myStartDate = startDate; myRoleName = roleName; } diff --git a/src/main/java/org/schema/RoofingContractor.java b/src/main/java/org/schema/RoofingContractor.java index e949963e..d03785d4 100644 --- a/src/main/java/org/schema/RoofingContractor.java +++ b/src/main/java/org/schema/RoofingContractor.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RoofingContractor} instance. */ public RoofingContractor build() { - return new RoofingContractor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RoofingContractor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RoofingContractor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RoofingContractor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/RsvpAction.java b/src/main/java/org/schema/RsvpAction.java index 2c2e020d..ce855331 100644 --- a/src/main/java/org/schema/RsvpAction.java +++ b/src/main/java/org/schema/RsvpAction.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link RsvpAction} instance. */ public RsvpAction build() { - return new RsvpAction(additionalNumberOfGuests, rsvpResponse, comment, event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RsvpAction(additionalNumberOfGuests, rsvpResponse, comment, event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If responding yes, the number of guests who will attend in addition to the invitee. @@ -299,6 +299,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number additionalNumberOfGuests; private RsvpResponseType rsvpResponse; private Comment comment; @@ -320,10 +324,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RsvpAction(Number additionalNumberOfGuests, RsvpResponseType rsvpResponse, Comment comment, Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RsvpAction(Number additionalNumberOfGuests, RsvpResponseType rsvpResponse, Comment comment, Event event, Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(event, about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAdditionalNumberOfGuests = additionalNumberOfGuests; myRsvpResponse = rsvpResponse; myComment = comment; diff --git a/src/main/java/org/schema/RsvpResponseType.java b/src/main/java/org/schema/RsvpResponseType.java index 4acc35b9..9f2e33f1 100644 --- a/src/main/java/org/schema/RsvpResponseType.java +++ b/src/main/java/org/schema/RsvpResponseType.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link RsvpResponseType} instance. */ public RsvpResponseType build() { - return new RsvpResponseType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new RsvpResponseType(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected RsvpResponseType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected RsvpResponseType(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SaleEvent.java b/src/main/java/org/schema/SaleEvent.java index 498887e9..44058f9e 100644 --- a/src/main/java/org/schema/SaleEvent.java +++ b/src/main/java/org/schema/SaleEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SaleEvent} instance. */ public SaleEvent build() { - return new SaleEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SaleEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SaleEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SaleEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ScheduleAction.java b/src/main/java/org/schema/ScheduleAction.java index 544701e5..6f85ecb3 100644 --- a/src/main/java/org/schema/ScheduleAction.java +++ b/src/main/java/org/schema/ScheduleAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ScheduleAction} instance. */ public ScheduleAction build() { - return new ScheduleAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ScheduleAction(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The time the object is scheduled to. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private java.util.Date scheduledTime; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ScheduleAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ScheduleAction(java.util.Date scheduledTime, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(scheduledTime, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ScholarlyArticle.java b/src/main/java/org/schema/ScholarlyArticle.java index 2b1c73e3..65d30d86 100644 --- a/src/main/java/org/schema/ScholarlyArticle.java +++ b/src/main/java/org/schema/ScholarlyArticle.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ScholarlyArticle} instance. */ public ScholarlyArticle build() { - return new ScholarlyArticle(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new ScholarlyArticle(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * The actual body of the article. @@ -742,6 +742,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String articleBody; private String articleSection; private Integer wordCount; @@ -819,9 +823,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ScholarlyArticle(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected ScholarlyArticle(String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } } diff --git a/src/main/java/org/schema/School.java b/src/main/java/org/schema/School.java index b16d9f78..4e4d7d5e 100644 --- a/src/main/java/org/schema/School.java +++ b/src/main/java/org/schema/School.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link School} instance. */ public School build() { - return new School(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new School(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Alumni of educational organization. @@ -427,6 +427,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person alumni; private PostalAddress address; private AggregateRating aggregateRating; @@ -468,9 +472,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected School(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected School(Person alumni, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(alumni, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ScreeningEvent.java b/src/main/java/org/schema/ScreeningEvent.java index 141f772a..2f4f72c7 100644 --- a/src/main/java/org/schema/ScreeningEvent.java +++ b/src/main/java/org/schema/ScreeningEvent.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link ScreeningEvent} instance. */ public ScreeningEvent build() { - return new ScreeningEvent(videoFormat, subtitleLanguage, workPresented, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ScreeningEvent(videoFormat, subtitleLanguage, workPresented, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). @@ -361,6 +361,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String videoFormat; private LanguageOrString subtitleLanguage; private Movie workPresented; @@ -390,10 +394,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ScreeningEvent(String videoFormat, LanguageOrString subtitleLanguage, Movie workPresented, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ScreeningEvent(String videoFormat, LanguageOrString subtitleLanguage, Movie workPresented, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myVideoFormat = videoFormat; mySubtitleLanguage = subtitleLanguage; myWorkPresented = workPresented; diff --git a/src/main/java/org/schema/Sculpture.java b/src/main/java/org/schema/Sculpture.java index b266f1b2..b1723b42 100644 --- a/src/main/java/org/schema/Sculpture.java +++ b/src/main/java/org/schema/Sculpture.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Sculpture} instance. */ public Sculpture build() { - return new Sculpture(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); + return new Sculpture(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Sculpture(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) { - super(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); + protected Sculpture(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(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); } } diff --git a/src/main/java/org/schema/SeaBodyOfWater.java b/src/main/java/org/schema/SeaBodyOfWater.java index 43cc2381..7a70a214 100644 --- a/src/main/java/org/schema/SeaBodyOfWater.java +++ b/src/main/java/org/schema/SeaBodyOfWater.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SeaBodyOfWater} instance. */ public SeaBodyOfWater build() { - return new SeaBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SeaBodyOfWater(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SeaBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SeaBodyOfWater(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SearchAction.java b/src/main/java/org/schema/SearchAction.java index 9e5d7c4a..50eb6e10 100644 --- a/src/main/java/org/schema/SearchAction.java +++ b/src/main/java/org/schema/SearchAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link SearchAction} instance. */ public SearchAction build() { - return new SearchAction(query, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SearchAction(query, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of instrument. The query used on this action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String query; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SearchAction(String query, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SearchAction(String query, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myQuery = query; } private String myQuery; diff --git a/src/main/java/org/schema/SearchResultsPage.java b/src/main/java/org/schema/SearchResultsPage.java index 94c83c89..52b8ac5a 100644 --- a/src/main/java/org/schema/SearchResultsPage.java +++ b/src/main/java/org/schema/SearchResultsPage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SearchResultsPage} instance. */ public SearchResultsPage build() { - return new SearchResultsPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new SearchResultsPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SearchResultsPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected SearchResultsPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/Season.java b/src/main/java/org/schema/Season.java index 8d199d5e..389a0e2b 100644 --- a/src/main/java/org/schema/Season.java +++ b/src/main/java/org/schema/Season.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Season} instance. */ public Season build() { - return new Season(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); + return new Season(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Season(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) { - super(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); + protected Season(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(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); } } diff --git a/src/main/java/org/schema/Seat.java b/src/main/java/org/schema/Seat.java index a1cd66cb..9adc9733 100644 --- a/src/main/java/org/schema/Seat.java +++ b/src/main/java/org/schema/Seat.java @@ -54,7 +54,7 @@ public static final class Builder { * Creates new {@link Seat} instance. */ public Seat build() { - return new Seat(seatNumber, seatRow, seatSection, seatingType, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Seat(seatNumber, seatRow, seatSection, seatingType, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The location of the reserved seat (e.g., 27). @@ -212,6 +212,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String seatNumber; private String seatRow; private String seatSection; @@ -224,10 +228,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Seat(String seatNumber, String seatRow, String seatSection, QualitativeValueOrString seatingType, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Seat(String seatNumber, String seatRow, String seatSection, QualitativeValueOrString seatingType, 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); mySeatNumber = seatNumber; mySeatRow = seatRow; mySeatSection = seatSection; diff --git a/src/main/java/org/schema/SelfStorage.java b/src/main/java/org/schema/SelfStorage.java index b61a0b68..b6fbcbec 100644 --- a/src/main/java/org/schema/SelfStorage.java +++ b/src/main/java/org/schema/SelfStorage.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SelfStorage} instance. */ public SelfStorage build() { - return new SelfStorage(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SelfStorage(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SelfStorage(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SelfStorage(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SellAction.java b/src/main/java/org/schema/SellAction.java index 4072fa06..7a05b1d0 100644 --- a/src/main/java/org/schema/SellAction.java +++ b/src/main/java/org/schema/SellAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link SellAction} instance. */ public SellAction build() { - return new SellAction(buyer, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SellAction(buyer, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant/person/organization that bought the object. @@ -282,6 +282,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person buyer; private NumberOrString price; private PriceSpecification priceSpecification; @@ -299,10 +303,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SellAction(Person buyer, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SellAction(Person buyer, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBuyer = buyer; } private Person myBuyer; diff --git a/src/main/java/org/schema/SendAction.java b/src/main/java/org/schema/SendAction.java index c892b0c3..0e06f65f 100644 --- a/src/main/java/org/schema/SendAction.java +++ b/src/main/java/org/schema/SendAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link SendAction} instance. */ public SendAction build() { - return new SendAction(deliveryMethod, recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SendAction(deliveryMethod, recipient, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of instrument. The method of delivery. @@ -263,6 +263,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod deliveryMethod; private AudienceOrOrganizationOrPerson recipient; private Place fromLocation; @@ -281,10 +285,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SendAction(DeliveryMethod deliveryMethod, AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SendAction(DeliveryMethod deliveryMethod, AudienceOrOrganizationOrPerson recipient, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDeliveryMethod = deliveryMethod; myRecipient = recipient; } diff --git a/src/main/java/org/schema/Series.java b/src/main/java/org/schema/Series.java index 4da7a143..025cf0da 100644 --- a/src/main/java/org/schema/Series.java +++ b/src/main/java/org/schema/Series.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Series} instance. */ public Series build() { - return new Series(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); + return new Series(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); } /** * 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. @@ -683,6 +683,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -754,9 +758,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Series(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) { - super(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); + protected Series(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(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); } } diff --git a/src/main/java/org/schema/Service.java b/src/main/java/org/schema/Service.java index 293de8c3..b97ff0df 100644 --- a/src/main/java/org/schema/Service.java +++ b/src/main/java/org/schema/Service.java @@ -72,7 +72,7 @@ public static final class Builder { * Creates new {@link Service} instance. */ public Service build() { - return new Service(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Service(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -251,6 +251,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private ServiceChannel availableChannel; private Thing serviceOutput; @@ -266,10 +270,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Service(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Service(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, 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); myAggregateRating = aggregateRating; myAvailableChannel = availableChannel; myServiceOutput = serviceOutput; diff --git a/src/main/java/org/schema/ServiceChannel.java b/src/main/java/org/schema/ServiceChannel.java index f69c337e..da310316 100644 --- a/src/main/java/org/schema/ServiceChannel.java +++ b/src/main/java/org/schema/ServiceChannel.java @@ -78,7 +78,7 @@ public static final class Builder { * Creates new {@link ServiceChannel} instance. */ public ServiceChannel build() { - return new ServiceChannel(availableLanguage, processingTime, providesService, serviceLocation, servicePhone, servicePostalAddress, serviceSmsNumber, serviceUrl, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ServiceChannel(availableLanguage, processingTime, providesService, serviceLocation, servicePhone, servicePostalAddress, serviceSmsNumber, serviceUrl, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A language someone may use with the item. @@ -255,6 +255,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Language availableLanguage; private Duration processingTime; private Service providesService; @@ -271,10 +275,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ServiceChannel(Language availableLanguage, Duration processingTime, Service providesService, Place serviceLocation, ContactPoint servicePhone, PostalAddress servicePostalAddress, ContactPoint serviceSmsNumber, String serviceUrl, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ServiceChannel(Language availableLanguage, Duration processingTime, Service providesService, Place serviceLocation, ContactPoint servicePhone, PostalAddress servicePostalAddress, ContactPoint serviceSmsNumber, String serviceUrl, 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); myAvailableLanguage = availableLanguage; myProcessingTime = processingTime; myProvidesService = providesService; diff --git a/src/main/java/org/schema/ShareAction.java b/src/main/java/org/schema/ShareAction.java index 8697c239..9b7c45b2 100644 --- a/src/main/java/org/schema/ShareAction.java +++ b/src/main/java/org/schema/ShareAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ShareAction} instance. */ public ShareAction build() { - return new ShareAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ShareAction(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The subject matter of the content. @@ -253,6 +253,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing about; private LanguageOrString inLanguage; private AudienceOrOrganizationOrPerson recipient; @@ -270,9 +274,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ShareAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ShareAction(Thing about, LanguageOrString inLanguage, AudienceOrOrganizationOrPerson recipient, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(about, inLanguage, recipient, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ShoeStore.java b/src/main/java/org/schema/ShoeStore.java index 6f092dcf..e06e24ab 100644 --- a/src/main/java/org/schema/ShoeStore.java +++ b/src/main/java/org/schema/ShoeStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ShoeStore} instance. */ public ShoeStore build() { - return new ShoeStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ShoeStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ShoeStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ShoeStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ShoppingCenter.java b/src/main/java/org/schema/ShoppingCenter.java index 4169f5d0..63cca991 100644 --- a/src/main/java/org/schema/ShoppingCenter.java +++ b/src/main/java/org/schema/ShoppingCenter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ShoppingCenter} instance. */ public ShoppingCenter build() { - return new ShoppingCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ShoppingCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ShoppingCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ShoppingCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SingleFamilyResidence.java b/src/main/java/org/schema/SingleFamilyResidence.java index 5e2f0d7f..e9468547 100644 --- a/src/main/java/org/schema/SingleFamilyResidence.java +++ b/src/main/java/org/schema/SingleFamilyResidence.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SingleFamilyResidence} instance. */ public SingleFamilyResidence build() { - return new SingleFamilyResidence(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SingleFamilyResidence(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SingleFamilyResidence(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SingleFamilyResidence(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SiteNavigationElement.java b/src/main/java/org/schema/SiteNavigationElement.java index e30b421b..461a305e 100644 --- a/src/main/java/org/schema/SiteNavigationElement.java +++ b/src/main/java/org/schema/SiteNavigationElement.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SiteNavigationElement} instance. */ public SiteNavigationElement build() { - return new SiteNavigationElement(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); + return new SiteNavigationElement(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SiteNavigationElement(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) { - super(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); + protected SiteNavigationElement(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(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); } } diff --git a/src/main/java/org/schema/SkiResort.java b/src/main/java/org/schema/SkiResort.java index aec6db20..daa7bc30 100644 --- a/src/main/java/org/schema/SkiResort.java +++ b/src/main/java/org/schema/SkiResort.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SkiResort} instance. */ public SkiResort build() { - return new SkiResort(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SkiResort(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SkiResort(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SkiResort(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SocialEvent.java b/src/main/java/org/schema/SocialEvent.java index 7e7a7d6a..76ecb529 100644 --- a/src/main/java/org/schema/SocialEvent.java +++ b/src/main/java/org/schema/SocialEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SocialEvent} instance. */ public SocialEvent build() { - return new SocialEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SocialEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SocialEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SocialEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SoftwareApplication.java b/src/main/java/org/schema/SoftwareApplication.java index 95c1bb6c..5989d7ad 100644 --- a/src/main/java/org/schema/SoftwareApplication.java +++ b/src/main/java/org/schema/SoftwareApplication.java @@ -162,7 +162,7 @@ public static final class Builder { * Creates new {@link SoftwareApplication} instance. */ public SoftwareApplication build() { - return new SoftwareApplication(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); + return new SoftwareApplication(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); } /** * Type of software application, e.g. "Game, Multimedia". @@ -977,6 +977,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String applicationCategory; private String applicationSubCategory; private String applicationSuite; @@ -1070,10 +1074,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SoftwareApplication(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) { - super(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); + protected SoftwareApplication(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(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); myApplicationCategory = applicationCategory; myApplicationSubCategory = applicationSubCategory; myApplicationSuite = applicationSuite; diff --git a/src/main/java/org/schema/SoftwareSourceCode.java b/src/main/java/org/schema/SoftwareSourceCode.java index dfa59e99..c3c92c7e 100644 --- a/src/main/java/org/schema/SoftwareSourceCode.java +++ b/src/main/java/org/schema/SoftwareSourceCode.java @@ -60,7 +60,7 @@ public static final class Builder { * Creates new {@link SoftwareSourceCode} instance. */ public SoftwareSourceCode build() { - return new SoftwareSourceCode(codeRepository, programmingLanguage, runtimePlatform, codeSampleType, targetProduct, 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); + return new SoftwareSourceCode(codeRepository, programmingLanguage, runtimePlatform, codeSampleType, targetProduct, 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); } /** * Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex). @@ -747,6 +747,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String codeRepository; private Language programmingLanguage; private String runtimePlatform; @@ -823,10 +827,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SoftwareSourceCode(String codeRepository, Language programmingLanguage, String runtimePlatform, String codeSampleType, SoftwareApplication targetProduct, 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) { - super(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); + protected SoftwareSourceCode(String codeRepository, Language programmingLanguage, String runtimePlatform, String codeSampleType, SoftwareApplication targetProduct, 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(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); myCodeRepository = codeRepository; myProgrammingLanguage = programmingLanguage; myRuntimePlatform = runtimePlatform; diff --git a/src/main/java/org/schema/SomeProducts.java b/src/main/java/org/schema/SomeProducts.java index a24108a1..e75cc100 100644 --- a/src/main/java/org/schema/SomeProducts.java +++ b/src/main/java/org/schema/SomeProducts.java @@ -37,7 +37,7 @@ public static final class Builder { * Creates new {@link SomeProducts} instance. */ public SomeProducts build() { - return new SomeProducts(inventoryLevel, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SomeProducts(inventoryLevel, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The current approximate inventory level for the item or items. @@ -456,6 +456,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QuantitativeValue inventoryLevel; private AggregateRating aggregateRating; private Audience audience; @@ -496,10 +500,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SomeProducts(QuantitativeValue inventoryLevel, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SomeProducts(QuantitativeValue inventoryLevel, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, java.util.Date productionDate, java.util.Date purchaseDate, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myInventoryLevel = inventoryLevel; } private QuantitativeValue myInventoryLevel; diff --git a/src/main/java/org/schema/Specialty.java b/src/main/java/org/schema/Specialty.java index 2c90d403..43f07021 100644 --- a/src/main/java/org/schema/Specialty.java +++ b/src/main/java/org/schema/Specialty.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Specialty} instance. */ public Specialty build() { - return new Specialty(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Specialty(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -167,6 +167,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -176,9 +180,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Specialty(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Specialty(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SportingGoodsStore.java b/src/main/java/org/schema/SportingGoodsStore.java index 396ddf47..717f0858 100644 --- a/src/main/java/org/schema/SportingGoodsStore.java +++ b/src/main/java/org/schema/SportingGoodsStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SportingGoodsStore} instance. */ public SportingGoodsStore build() { - return new SportingGoodsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportingGoodsStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportingGoodsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportingGoodsStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SportsActivityLocation.java b/src/main/java/org/schema/SportsActivityLocation.java index 85281e6e..ee84a558 100644 --- a/src/main/java/org/schema/SportsActivityLocation.java +++ b/src/main/java/org/schema/SportsActivityLocation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SportsActivityLocation} instance. */ public SportsActivityLocation build() { - return new SportsActivityLocation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportsActivityLocation(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportsActivityLocation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportsActivityLocation(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SportsClub.java b/src/main/java/org/schema/SportsClub.java index 735b7cbf..152b4d0f 100644 --- a/src/main/java/org/schema/SportsClub.java +++ b/src/main/java/org/schema/SportsClub.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SportsClub} instance. */ public SportsClub build() { - return new SportsClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportsClub(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportsClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportsClub(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SportsEvent.java b/src/main/java/org/schema/SportsEvent.java index b17aa32d..1b320943 100644 --- a/src/main/java/org/schema/SportsEvent.java +++ b/src/main/java/org/schema/SportsEvent.java @@ -48,7 +48,7 @@ public static final class Builder { * Creates new {@link SportsEvent} instance. */ public SportsEvent build() { - return new SportsEvent(homeTeam, awayTeam, competitor, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportsEvent(homeTeam, awayTeam, competitor, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The home team in a sports event. @@ -352,6 +352,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Competitor homeTeam; private Competitor awayTeam; private Competitor competitor; @@ -381,10 +385,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportsEvent(Competitor homeTeam, Competitor awayTeam, Competitor competitor, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportsEvent(Competitor homeTeam, Competitor awayTeam, Competitor competitor, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myHomeTeam = homeTeam; myAwayTeam = awayTeam; myCompetitor = competitor; diff --git a/src/main/java/org/schema/SportsOrganization.java b/src/main/java/org/schema/SportsOrganization.java index 98a28ba7..df4cf4a2 100644 --- a/src/main/java/org/schema/SportsOrganization.java +++ b/src/main/java/org/schema/SportsOrganization.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link SportsOrganization} instance. */ public SportsOrganization build() { - return new SportsOrganization(sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportsOrganization(sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A type of sport (e.g. Baseball). @@ -433,6 +433,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String sport; private PostalAddress address; private AggregateRating aggregateRating; @@ -474,10 +478,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportsOrganization(String sport, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportsOrganization(String sport, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); mySport = sport; } private String mySport; diff --git a/src/main/java/org/schema/SportsTeam.java b/src/main/java/org/schema/SportsTeam.java index f798a5c3..d2ca6b30 100644 --- a/src/main/java/org/schema/SportsTeam.java +++ b/src/main/java/org/schema/SportsTeam.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link SportsTeam} instance. */ public SportsTeam build() { - return new SportsTeam(coach, athlete, sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SportsTeam(coach, athlete, sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A person that acts in a coaching role for a sports team. @@ -453,6 +453,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person coach; private Person athlete; private String sport; @@ -496,10 +500,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SportsTeam(Person coach, Person athlete, String sport, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SportsTeam(Person coach, Person athlete, String sport, PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(sport, address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCoach = coach; myAthlete = athlete; } diff --git a/src/main/java/org/schema/StadiumOrArena.java b/src/main/java/org/schema/StadiumOrArena.java index 9dbff5a6..507227b8 100644 --- a/src/main/java/org/schema/StadiumOrArena.java +++ b/src/main/java/org/schema/StadiumOrArena.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link StadiumOrArena} instance. */ public StadiumOrArena build() { - return new StadiumOrArena(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new StadiumOrArena(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected StadiumOrArena(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected StadiumOrArena(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/State.java b/src/main/java/org/schema/State.java index db0b2a5c..89b96f65 100644 --- a/src/main/java/org/schema/State.java +++ b/src/main/java/org/schema/State.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link State} instance. */ public State build() { - return new State(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new State(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected State(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected State(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SteeringPositionValue.java b/src/main/java/org/schema/SteeringPositionValue.java index 58b086a8..2f59d10a 100644 --- a/src/main/java/org/schema/SteeringPositionValue.java +++ b/src/main/java/org/schema/SteeringPositionValue.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link SteeringPositionValue} instance. */ public SteeringPositionValue build() { - return new SteeringPositionValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SteeringPositionValue(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * This ordering relation for qualitative values indicates that the subject is equal to the object. @@ -260,6 +260,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QualitativeValue equal; private QualitativeValue greater; private QualitativeValue greaterOrEqual; @@ -277,9 +281,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SteeringPositionValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SteeringPositionValue(QualitativeValue equal, QualitativeValue greater, QualitativeValue greaterOrEqual, QualitativeValue lesser, QualitativeValue lesserOrEqual, QualitativeValue nonEqual, EnumerationOrPropertyValueOrQualitativeValueOrQuantitativeValueOrStructuredValue valueReference, PropertyValue additionalProperty, EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(equal, greater, greaterOrEqual, lesser, lesserOrEqual, nonEqual, valueReference, additionalProperty, supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Store.java b/src/main/java/org/schema/Store.java index 0fbce3e7..54bdae6a 100644 --- a/src/main/java/org/schema/Store.java +++ b/src/main/java/org/schema/Store.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Store} instance. */ public Store build() { - return new Store(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Store(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Store(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Store(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/StructuredValue.java b/src/main/java/org/schema/StructuredValue.java index eddb1173..806a3801 100644 --- a/src/main/java/org/schema/StructuredValue.java +++ b/src/main/java/org/schema/StructuredValue.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link StructuredValue} instance. */ public StructuredValue build() { - return new StructuredValue(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new StructuredValue(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. @@ -151,6 +151,10 @@ 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; @@ -159,9 +163,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected StructuredValue(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected StructuredValue(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/SubscribeAction.java b/src/main/java/org/schema/SubscribeAction.java index 1749f038..5584880c 100644 --- a/src/main/java/org/schema/SubscribeAction.java +++ b/src/main/java/org/schema/SubscribeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SubscribeAction} instance. */ public SubscribeAction build() { - return new SubscribeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SubscribeAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SubscribeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SubscribeAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SubwayStation.java b/src/main/java/org/schema/SubwayStation.java index 28f62f7e..4e5892bb 100644 --- a/src/main/java/org/schema/SubwayStation.java +++ b/src/main/java/org/schema/SubwayStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SubwayStation} instance. */ public SubwayStation build() { - return new SubwayStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SubwayStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SubwayStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SubwayStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/SuperficialAnatomy.java b/src/main/java/org/schema/SuperficialAnatomy.java index 0f91311e..eaa968b8 100644 --- a/src/main/java/org/schema/SuperficialAnatomy.java +++ b/src/main/java/org/schema/SuperficialAnatomy.java @@ -61,7 +61,7 @@ public static final class Builder { * Creates new {@link SuperficialAnatomy} instance. */ public SuperficialAnatomy build() { - return new SuperficialAnatomy(associatedPathophysiology, relatedAnatomy, relatedCondition, relatedTherapy, significance, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SuperficialAnatomy(associatedPathophysiology, relatedAnatomy, relatedCondition, relatedTherapy, significance, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -268,6 +268,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private AnatomicalStructureOrAnatomicalSystem relatedAnatomy; private MedicalCondition relatedCondition; @@ -287,10 +291,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SuperficialAnatomy(String associatedPathophysiology, AnatomicalStructureOrAnatomicalSystem relatedAnatomy, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, String significance, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SuperficialAnatomy(String associatedPathophysiology, AnatomicalStructureOrAnatomicalSystem relatedAnatomy, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, String significance, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myAssociatedPathophysiology = associatedPathophysiology; myRelatedAnatomy = relatedAnatomy; myRelatedCondition = relatedCondition; diff --git a/src/main/java/org/schema/SuspendAction.java b/src/main/java/org/schema/SuspendAction.java index ffcc9f1f..754b85a1 100644 --- a/src/main/java/org/schema/SuspendAction.java +++ b/src/main/java/org/schema/SuspendAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link SuspendAction} instance. */ public SuspendAction build() { - return new SuspendAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new SuspendAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected SuspendAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected SuspendAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Synagogue.java b/src/main/java/org/schema/Synagogue.java index 73832a4e..1b7619cb 100644 --- a/src/main/java/org/schema/Synagogue.java +++ b/src/main/java/org/schema/Synagogue.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Synagogue} instance. */ public Synagogue build() { - return new Synagogue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Synagogue(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Synagogue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Synagogue(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TVClip.java b/src/main/java/org/schema/TVClip.java index b7e42d6f..2987f0b9 100644 --- a/src/main/java/org/schema/TVClip.java +++ b/src/main/java/org/schema/TVClip.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TVClip} instance. */ public TVClip build() { - return new TVClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + return new TVClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -740,6 +740,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Position clipNumber; private Person director; @@ -818,9 +822,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TVClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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) { - super(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + protected TVClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } } diff --git a/src/main/java/org/schema/TVEpisode.java b/src/main/java/org/schema/TVEpisode.java index df90917e..eb5009c5 100644 --- a/src/main/java/org/schema/TVEpisode.java +++ b/src/main/java/org/schema/TVEpisode.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link TVEpisode} instance. */ public TVEpisode build() { - return new TVEpisode(subtitleLanguage, actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); + return new TVEpisode(subtitleLanguage, actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); } /** * Languages in which subtitles/captions are available, in IETF BCP 47 standard format. @@ -778,6 +778,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private LanguageOrString subtitleLanguage; private Person actor; private Person director; @@ -858,10 +862,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TVEpisode(LanguageOrString subtitleLanguage, Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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) { - super(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); + protected TVEpisode(LanguageOrString subtitleLanguage, Person actor, Person director, IntegerOrString episodeNumber, MusicGroupOrPerson musicBy, IsPartOf partOfSeason, IsPartOf partOfSeries, Organization productionCompany, VideoObject trailer, 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(actor, director, episodeNumber, musicBy, partOfSeason, partOfSeries, productionCompany, trailer, 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); mySubtitleLanguage = subtitleLanguage; } private LanguageOrString mySubtitleLanguage; diff --git a/src/main/java/org/schema/TVSeason.java b/src/main/java/org/schema/TVSeason.java index 700f71b0..3cb8bdd2 100644 --- a/src/main/java/org/schema/TVSeason.java +++ b/src/main/java/org/schema/TVSeason.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TVSeason} instance. */ public TVSeason build() { - return new TVSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); + return new TVSeason(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -761,6 +761,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private java.util.Date endDate; @@ -842,9 +846,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TVSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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) { - super(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); + protected TVSeason(Person actor, Person director, java.util.Date endDate, HasPart episode, Integer numberOfEpisodes, IsPartOf partOfSeries, Organization productionCompany, IntegerOrString seasonNumber, java.util.Date startDate, VideoObject trailer, 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(actor, director, endDate, episode, numberOfEpisodes, partOfSeries, productionCompany, seasonNumber, startDate, trailer, 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); } } diff --git a/src/main/java/org/schema/TVSeries.java b/src/main/java/org/schema/TVSeries.java index a5253d04..f4a68ee8 100644 --- a/src/main/java/org/schema/TVSeries.java +++ b/src/main/java/org/schema/TVSeries.java @@ -84,7 +84,7 @@ public static final class Builder { * Creates new {@link TVSeries} instance. */ public TVSeries build() { - return new TVSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, endDate, startDate, 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); + return new TVSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, endDate, startDate, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -822,6 +822,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private HasPart episode; @@ -904,10 +908,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TVSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected TVSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); myActor = actor; myDirector = director; myEpisode = episode; diff --git a/src/main/java/org/schema/Table.java b/src/main/java/org/schema/Table.java index 7fda6b84..60810c4b 100644 --- a/src/main/java/org/schema/Table.java +++ b/src/main/java/org/schema/Table.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Table} instance. */ public Table build() { - return new Table(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); + return new Table(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Table(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) { - super(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); + protected Table(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(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); } } diff --git a/src/main/java/org/schema/TakeAction.java b/src/main/java/org/schema/TakeAction.java index 78b132d5..846e2fa6 100644 --- a/src/main/java/org/schema/TakeAction.java +++ b/src/main/java/org/schema/TakeAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TakeAction} instance. */ public TakeAction build() { - return new TakeAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TakeAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -220,6 +220,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -236,9 +240,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TakeAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TakeAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TattooParlor.java b/src/main/java/org/schema/TattooParlor.java index be9a0202..9641bc95 100644 --- a/src/main/java/org/schema/TattooParlor.java +++ b/src/main/java/org/schema/TattooParlor.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TattooParlor} instance. */ public TattooParlor build() { - return new TattooParlor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TattooParlor(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TattooParlor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TattooParlor(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Taxi.java b/src/main/java/org/schema/Taxi.java index 004cc4bd..4e6a1362 100644 --- a/src/main/java/org/schema/Taxi.java +++ b/src/main/java/org/schema/Taxi.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Taxi} instance. */ public Taxi build() { - return new Taxi(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Taxi(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -209,6 +209,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private ServiceChannel availableChannel; private Thing serviceOutput; @@ -224,9 +228,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Taxi(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Taxi(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TaxiReservation.java b/src/main/java/org/schema/TaxiReservation.java index b2b349cb..e123cd5c 100644 --- a/src/main/java/org/schema/TaxiReservation.java +++ b/src/main/java/org/schema/TaxiReservation.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link TaxiReservation} instance. */ public TaxiReservation build() { - return new TaxiReservation(partySize, pickupLocation, pickupTime, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TaxiReservation(partySize, pickupLocation, pickupTime, reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Number of people the reservation should accommodate. @@ -328,6 +328,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private IntegerOrQuantitativeValue partySize; private Place pickupLocation; private java.util.Date pickupTime; @@ -351,10 +355,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TaxiReservation(IntegerOrQuantitativeValue partySize, Place pickupLocation, java.util.Date pickupTime, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TaxiReservation(IntegerOrQuantitativeValue partySize, Place pickupLocation, java.util.Date pickupTime, String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPartySize = partySize; myPickupLocation = pickupLocation; myPickupTime = pickupTime; diff --git a/src/main/java/org/schema/TaxiService.java b/src/main/java/org/schema/TaxiService.java index 0daf75f9..551d95ef 100644 --- a/src/main/java/org/schema/TaxiService.java +++ b/src/main/java/org/schema/TaxiService.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TaxiService} instance. */ public TaxiService build() { - return new TaxiService(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TaxiService(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -209,6 +209,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private ServiceChannel availableChannel; private Thing serviceOutput; @@ -224,9 +228,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TaxiService(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TaxiService(AggregateRating aggregateRating, ServiceChannel availableChannel, Thing serviceOutput, Review review, AdministrativeArea serviceArea, String serviceType, OrganizationOrPerson provider, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, availableChannel, serviceOutput, review, serviceArea, serviceType, provider, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TaxiStand.java b/src/main/java/org/schema/TaxiStand.java index c0fcdfab..293db07b 100644 --- a/src/main/java/org/schema/TaxiStand.java +++ b/src/main/java/org/schema/TaxiStand.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TaxiStand} instance. */ public TaxiStand build() { - return new TaxiStand(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TaxiStand(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TaxiStand(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TaxiStand(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TechArticle.java b/src/main/java/org/schema/TechArticle.java index 624f6278..ff333144 100644 --- a/src/main/java/org/schema/TechArticle.java +++ b/src/main/java/org/schema/TechArticle.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link TechArticle} instance. */ public TechArticle build() { - return new TechArticle(dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + return new TechArticle(dependencies, proficiencyLevel, articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); } /** * Prerequisites needed to fulfill steps in article. @@ -768,6 +768,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String dependencies; private String proficiencyLevel; private String articleBody; @@ -847,10 +851,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TechArticle(String dependencies, String proficiencyLevel, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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) { - super(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); + protected TechArticle(String dependencies, String proficiencyLevel, String articleBody, String articleSection, Integer wordCount, IntegerOrString pageEnd, IntegerOrString pageStart, String pagination, 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(articleBody, articleSection, wordCount, pageEnd, pageStart, pagination, 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); myDependencies = dependencies; myProficiencyLevel = proficiencyLevel; } diff --git a/src/main/java/org/schema/TelevisionChannel.java b/src/main/java/org/schema/TelevisionChannel.java index cef47811..6ef22c4e 100644 --- a/src/main/java/org/schema/TelevisionChannel.java +++ b/src/main/java/org/schema/TelevisionChannel.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TelevisionChannel} instance. */ public TelevisionChannel build() { - return new TelevisionChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TelevisionChannel(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number. @@ -179,6 +179,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String broadcastChannelId; private CableOrSatelliteService inBroadcastLineup; private String broadcastServiceTier; @@ -191,9 +195,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TelevisionChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TelevisionChannel(String broadcastChannelId, CableOrSatelliteService inBroadcastLineup, String broadcastServiceTier, BroadcastService providesBroadcastService, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(broadcastChannelId, inBroadcastLineup, broadcastServiceTier, providesBroadcastService, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TelevisionStation.java b/src/main/java/org/schema/TelevisionStation.java index 86b547bc..394e0a61 100644 --- a/src/main/java/org/schema/TelevisionStation.java +++ b/src/main/java/org/schema/TelevisionStation.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link TelevisionStation} instance. */ public TelevisionStation build() { - return new TelevisionStation(videoFormat, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TelevisionStation(videoFormat, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). @@ -343,6 +343,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String videoFormat; private Organization parentOrganization; private String currenciesAccepted; @@ -372,10 +376,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TelevisionStation(String videoFormat, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TelevisionStation(String videoFormat, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myVideoFormat = videoFormat; } private String myVideoFormat; diff --git a/src/main/java/org/schema/TennisComplex.java b/src/main/java/org/schema/TennisComplex.java index 51a29e0e..8f4051b6 100644 --- a/src/main/java/org/schema/TennisComplex.java +++ b/src/main/java/org/schema/TennisComplex.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TennisComplex} instance. */ public TennisComplex build() { - return new TennisComplex(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TennisComplex(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TennisComplex(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TennisComplex(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TheaterEvent.java b/src/main/java/org/schema/TheaterEvent.java index b6f979f9..89900cb1 100644 --- a/src/main/java/org/schema/TheaterEvent.java +++ b/src/main/java/org/schema/TheaterEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TheaterEvent} instance. */ public TheaterEvent build() { - return new TheaterEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TheaterEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TheaterEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TheaterEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TheaterGroup.java b/src/main/java/org/schema/TheaterGroup.java index 6ffbf7ef..7a1d39bd 100644 --- a/src/main/java/org/schema/TheaterGroup.java +++ b/src/main/java/org/schema/TheaterGroup.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TheaterGroup} instance. */ public TheaterGroup build() { - return new TheaterGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TheaterGroup(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -420,6 +420,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private String award; @@ -460,9 +464,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TheaterGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TheaterGroup(PostalAddress address, AggregateRating aggregateRating, String award, BrandOrOrganization brand, ContactPoint contactPoint, Organization department, String duns, String email, Person employee, Event event, String faxNumber, Person founder, java.util.Date dissolutionDate, java.util.Date foundingDate, String globalLocationNumber, Place hasPOS, String isicV4, String legalName, ImageObjectOrString logo, Offer makesOffer, OrganizationOrPerson member, OrganizationOrProgramMembership memberOf, String naics, QuantitativeValue numberOfEmployees, OwnershipInfoOrProduct owns, Review review, Demand seeks, Organization subOrganization, String taxID, String telephone, String vatID, Place foundingLocation, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, award, brand, contactPoint, department, duns, email, employee, event, faxNumber, founder, dissolutionDate, foundingDate, globalLocationNumber, hasPOS, isicV4, legalName, logo, makesOffer, member, memberOf, naics, numberOfEmployees, owns, review, seeks, subOrganization, taxID, telephone, vatID, foundingLocation, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TherapeuticProcedure.java b/src/main/java/org/schema/TherapeuticProcedure.java index 91715350..d12be0a9 100644 --- a/src/main/java/org/schema/TherapeuticProcedure.java +++ b/src/main/java/org/schema/TherapeuticProcedure.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link TherapeuticProcedure} instance. */ public TherapeuticProcedure build() { - return new TherapeuticProcedure(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TherapeuticProcedure(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. @@ -229,6 +229,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalEntity adverseOutcome; private MedicalContraindication contraindication; private MedicalTherapy duplicateTherapy; @@ -248,9 +252,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TherapeuticProcedure(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TherapeuticProcedure(MedicalEntity adverseOutcome, MedicalContraindication contraindication, MedicalTherapy duplicateTherapy, MedicalIndication indication, MedicalEntity seriousAdverseOutcome, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(adverseOutcome, contraindication, duplicateTherapy, indication, seriousAdverseOutcome, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Thing.java b/src/main/java/org/schema/Thing.java index 5609ce0a..279e9e06 100644 --- a/src/main/java/org/schema/Thing.java +++ b/src/main/java/org/schema/Thing.java @@ -108,6 +108,10 @@ public String getUrl() { public Action getPotentialAction() { return myPotentialAction; } + @com.fasterxml.jackson.annotation.JsonProperty("@id") + public String getId() { + return myId; + } /** * Builder for {@link Thing} */ @@ -116,7 +120,7 @@ public static final class Builder { * Creates new {@link Thing} instance. */ public Thing build() { - return new Thing(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Thing(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. @@ -237,6 +241,10 @@ 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; @@ -245,9 +253,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Thing(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { + protected Thing(String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { myAdditionalType = additionalType; myAlternateName = alternateName; myDescription = description; @@ -256,6 +265,7 @@ protected Thing(String additionalType, String alternateName, String description, mySameAs = sameAs; myUrl = url; myPotentialAction = potentialAction; + myId = id; } private String myAdditionalType; private String myAlternateName; @@ -265,4 +275,5 @@ protected Thing(String additionalType, String alternateName, String description, private String mySameAs; private String myUrl; private Action myPotentialAction; + private String myId; } diff --git a/src/main/java/org/schema/Ticket.java b/src/main/java/org/schema/Ticket.java index 449d9e33..d1c1a0f3 100644 --- a/src/main/java/org/schema/Ticket.java +++ b/src/main/java/org/schema/Ticket.java @@ -79,7 +79,7 @@ public static final class Builder { * Creates new {@link Ticket} instance. */ public Ticket build() { - return new Ticket(underName, totalPrice, priceCurrency, issuedBy, dateIssued, ticketedSeat, ticketNumber, ticketToken, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Ticket(underName, totalPrice, priceCurrency, issuedBy, dateIssued, ticketedSeat, ticketNumber, ticketToken, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The person or organization the reservation or ticket is for. @@ -282,6 +282,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson underName; private NumberOrPriceSpecificationOrString totalPrice; private String priceCurrency; @@ -298,10 +302,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Ticket(OrganizationOrPerson underName, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, Organization issuedBy, java.util.Date dateIssued, Seat ticketedSeat, String ticketNumber, String ticketToken, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Ticket(OrganizationOrPerson underName, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, Organization issuedBy, java.util.Date dateIssued, Seat ticketedSeat, String ticketNumber, String ticketToken, 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); myUnderName = underName; myTotalPrice = totalPrice; myPriceCurrency = priceCurrency; diff --git a/src/main/java/org/schema/TieAction.java b/src/main/java/org/schema/TieAction.java index e77eda64..b60bde51 100644 --- a/src/main/java/org/schema/TieAction.java +++ b/src/main/java/org/schema/TieAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TieAction} instance. */ public TieAction build() { - return new TieAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TieAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TieAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TieAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TipAction.java b/src/main/java/org/schema/TipAction.java index e8e80bdf..8d1d17bf 100644 --- a/src/main/java/org/schema/TipAction.java +++ b/src/main/java/org/schema/TipAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link TipAction} instance. */ public TipAction build() { - return new TipAction(recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TipAction(recipient, price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The participant who is at the receiving end of the action. @@ -299,6 +299,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AudienceOrOrganizationOrPerson recipient; private NumberOrString price; private PriceSpecification priceSpecification; @@ -316,10 +320,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TipAction(AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TipAction(AudienceOrOrganizationOrPerson recipient, NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myRecipient = recipient; } private AudienceOrOrganizationOrPerson myRecipient; diff --git a/src/main/java/org/schema/TireShop.java b/src/main/java/org/schema/TireShop.java index 636f9001..8c08ffb6 100644 --- a/src/main/java/org/schema/TireShop.java +++ b/src/main/java/org/schema/TireShop.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TireShop} instance. */ public TireShop build() { - return new TireShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TireShop(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TireShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TireShop(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TouristAttraction.java b/src/main/java/org/schema/TouristAttraction.java index afb13cea..cca585e3 100644 --- a/src/main/java/org/schema/TouristAttraction.java +++ b/src/main/java/org/schema/TouristAttraction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TouristAttraction} instance. */ public TouristAttraction build() { - return new TouristAttraction(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TouristAttraction(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TouristAttraction(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TouristAttraction(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TouristInformationCenter.java b/src/main/java/org/schema/TouristInformationCenter.java index eddce46e..126b3e46 100644 --- a/src/main/java/org/schema/TouristInformationCenter.java +++ b/src/main/java/org/schema/TouristInformationCenter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TouristInformationCenter} instance. */ public TouristInformationCenter build() { - return new TouristInformationCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TouristInformationCenter(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TouristInformationCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TouristInformationCenter(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/ToyStore.java b/src/main/java/org/schema/ToyStore.java index f0388866..9c89b1fd 100644 --- a/src/main/java/org/schema/ToyStore.java +++ b/src/main/java/org/schema/ToyStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ToyStore} instance. */ public ToyStore build() { - return new ToyStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ToyStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ToyStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ToyStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TrackAction.java b/src/main/java/org/schema/TrackAction.java index 6b9f89a1..2dc0a376 100644 --- a/src/main/java/org/schema/TrackAction.java +++ b/src/main/java/org/schema/TrackAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link TrackAction} instance. */ public TrackAction build() { - return new TrackAction(deliveryMethod, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TrackAction(deliveryMethod, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of instrument. The method of delivery. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private DeliveryMethod deliveryMethod; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TrackAction(DeliveryMethod deliveryMethod, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TrackAction(DeliveryMethod deliveryMethod, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDeliveryMethod = deliveryMethod; } private DeliveryMethod myDeliveryMethod; diff --git a/src/main/java/org/schema/TradeAction.java b/src/main/java/org/schema/TradeAction.java index 075cca74..6d8a1c08 100644 --- a/src/main/java/org/schema/TradeAction.java +++ b/src/main/java/org/schema/TradeAction.java @@ -62,7 +62,7 @@ public static final class Builder { * Creates new {@link TradeAction} instance. */ public TradeAction build() { - return new TradeAction(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TradeAction(price, priceSpecification, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes. @@ -301,6 +301,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrString price; private PriceSpecification priceSpecification; private OrganizationOrPerson agent; @@ -317,10 +321,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TradeAction(NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TradeAction(NumberOrString price, PriceSpecification priceSpecification, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myPrice = price; myPriceSpecification = priceSpecification; } diff --git a/src/main/java/org/schema/TrainReservation.java b/src/main/java/org/schema/TrainReservation.java index adc0670c..188a608d 100644 --- a/src/main/java/org/schema/TrainReservation.java +++ b/src/main/java/org/schema/TrainReservation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TrainReservation} instance. */ public TrainReservation build() { - return new TrainReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TrainReservation(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A unique identifier for the reservation. @@ -279,6 +279,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String reservationId; private ReservationStatusType reservationStatus; private Thing reservationFor; @@ -299,9 +303,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TrainReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TrainReservation(String reservationId, ReservationStatusType reservationStatus, Thing reservationFor, OrganizationOrPerson underName, OrganizationOrPerson provider, java.util.Date bookingTime, java.util.Date modifiedTime, ProgramMembership programMembershipUsed, Ticket reservedTicket, NumberOrPriceSpecificationOrString totalPrice, String priceCurrency, OrganizationOrPerson broker, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(reservationId, reservationStatus, reservationFor, underName, provider, bookingTime, modifiedTime, programMembershipUsed, reservedTicket, totalPrice, priceCurrency, broker, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TrainStation.java b/src/main/java/org/schema/TrainStation.java index 4bf60645..8e64f211 100644 --- a/src/main/java/org/schema/TrainStation.java +++ b/src/main/java/org/schema/TrainStation.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TrainStation} instance. */ public TrainStation build() { - return new TrainStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TrainStation(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TrainStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TrainStation(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TrainTrip.java b/src/main/java/org/schema/TrainTrip.java index 1c323e2c..aa6947a5 100644 --- a/src/main/java/org/schema/TrainTrip.java +++ b/src/main/java/org/schema/TrainTrip.java @@ -86,7 +86,7 @@ public static final class Builder { * Creates new {@link TrainTrip} instance. */ public TrainTrip build() { - return new TrainTrip(provider, departureTime, arrivalTime, trainNumber, trainName, departureStation, arrivalStation, departurePlatform, arrivalPlatform, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TrainTrip(provider, departureTime, arrivalTime, trainNumber, trainName, departureStation, arrivalStation, departurePlatform, arrivalPlatform, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * 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. @@ -279,6 +279,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson provider; private java.util.Date departureTime; private java.util.Date arrivalTime; @@ -296,10 +300,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TrainTrip(OrganizationOrPerson provider, java.util.Date departureTime, java.util.Date arrivalTime, String trainNumber, String trainName, TrainStation departureStation, TrainStation arrivalStation, String departurePlatform, String arrivalPlatform, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TrainTrip(OrganizationOrPerson provider, java.util.Date departureTime, java.util.Date arrivalTime, String trainNumber, String trainName, TrainStation departureStation, TrainStation arrivalStation, String departurePlatform, String arrivalPlatform, 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); myProvider = provider; myDepartureTime = departureTime; myArrivalTime = arrivalTime; diff --git a/src/main/java/org/schema/TransferAction.java b/src/main/java/org/schema/TransferAction.java index 74ef3025..2763e695 100644 --- a/src/main/java/org/schema/TransferAction.java +++ b/src/main/java/org/schema/TransferAction.java @@ -42,7 +42,7 @@ public static final class Builder { * Creates new {@link TransferAction} instance. */ public TransferAction build() { - return new TransferAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TransferAction(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of location. The original location of the object or the agent before the action. @@ -232,6 +232,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Place fromLocation; private Place toLocation; private OrganizationOrPerson agent; @@ -248,10 +252,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TransferAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TransferAction(Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myFromLocation = fromLocation; myToLocation = toLocation; } diff --git a/src/main/java/org/schema/TravelAction.java b/src/main/java/org/schema/TravelAction.java index 00727e3a..22460bd0 100644 --- a/src/main/java/org/schema/TravelAction.java +++ b/src/main/java/org/schema/TravelAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link TravelAction} instance. */ public TravelAction build() { - return new TravelAction(distance, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TravelAction(distance, fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The distance travelled, e.g. exercising or travelling. @@ -233,6 +233,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Distance distance; private Place fromLocation; private Place toLocation; @@ -250,10 +254,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TravelAction(Distance distance, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TravelAction(Distance distance, Place fromLocation, Place toLocation, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(fromLocation, toLocation, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDistance = distance; } private Distance myDistance; diff --git a/src/main/java/org/schema/TravelAgency.java b/src/main/java/org/schema/TravelAgency.java index 0c517e99..26d24e49 100644 --- a/src/main/java/org/schema/TravelAgency.java +++ b/src/main/java/org/schema/TravelAgency.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link TravelAgency} instance. */ public TravelAgency build() { - return new TravelAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TravelAgency(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TravelAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TravelAgency(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TreatmentIndication.java b/src/main/java/org/schema/TreatmentIndication.java index 968b10d8..cb5bbf4a 100644 --- a/src/main/java/org/schema/TreatmentIndication.java +++ b/src/main/java/org/schema/TreatmentIndication.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link TreatmentIndication} instance. */ public TreatmentIndication build() { - return new TreatmentIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TreatmentIndication(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -194,6 +194,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private MedicalCode code; private MedicalGuideline guideline; private MedicineSystem medicineSystem; @@ -208,9 +212,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TreatmentIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TreatmentIndication(MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/TypeAndQuantityNode.java b/src/main/java/org/schema/TypeAndQuantityNode.java index 1277a798..ee22b6b5 100644 --- a/src/main/java/org/schema/TypeAndQuantityNode.java +++ b/src/main/java/org/schema/TypeAndQuantityNode.java @@ -62,7 +62,7 @@ public static final class Builder { * Creates new {@link TypeAndQuantityNode} instance. */ public TypeAndQuantityNode build() { - return new TypeAndQuantityNode(amountOfThisGood, businessFunction, typeOfGood, unitCode, unitText, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new TypeAndQuantityNode(amountOfThisGood, businessFunction, typeOfGood, unitCode, unitText, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The quantity of the goods included in the offer. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number amountOfThisGood; private BusinessFunction businessFunction; private Product typeOfGood; @@ -232,10 +236,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected TypeAndQuantityNode(Number amountOfThisGood, BusinessFunction businessFunction, Product typeOfGood, String unitCode, String unitText, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected TypeAndQuantityNode(Number amountOfThisGood, BusinessFunction businessFunction, Product typeOfGood, String unitCode, String unitText, 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); myAmountOfThisGood = amountOfThisGood; myBusinessFunction = businessFunction; myTypeOfGood = typeOfGood; diff --git a/src/main/java/org/schema/UnRegisterAction.java b/src/main/java/org/schema/UnRegisterAction.java index c6042870..a7fb98a6 100644 --- a/src/main/java/org/schema/UnRegisterAction.java +++ b/src/main/java/org/schema/UnRegisterAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link UnRegisterAction} instance. */ public UnRegisterAction build() { - return new UnRegisterAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UnRegisterAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UnRegisterAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UnRegisterAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UnitPriceSpecification.java b/src/main/java/org/schema/UnitPriceSpecification.java index 81d97a88..acf43aba 100644 --- a/src/main/java/org/schema/UnitPriceSpecification.java +++ b/src/main/java/org/schema/UnitPriceSpecification.java @@ -56,7 +56,7 @@ public static final class Builder { * Creates new {@link UnitPriceSpecification} instance. */ public UnitPriceSpecification build() { - return new UnitPriceSpecification(billingIncrement, priceType, unitCode, unitText, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UnitPriceSpecification(billingIncrement, priceType, unitCode, unitText, eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * 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. @@ -318,6 +318,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Number billingIncrement; private String priceType; private String unitCode; @@ -339,10 +343,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UnitPriceSpecification(Number billingIncrement, String priceType, String unitCode, String unitText, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UnitPriceSpecification(Number billingIncrement, String priceType, String unitCode, String unitText, QuantitativeValue eligibleQuantity, PriceSpecification eligibleTransactionVolume, Number maxPrice, Number minPrice, NumberOrString price, java.util.Date validFrom, java.util.Date validThrough, Boolean valueAddedTaxIncluded, String priceCurrency, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(eligibleQuantity, eligibleTransactionVolume, maxPrice, minPrice, price, validFrom, validThrough, valueAddedTaxIncluded, priceCurrency, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myBillingIncrement = billingIncrement; myPriceType = priceType; myUnitCode = unitCode; diff --git a/src/main/java/org/schema/UpdateAction.java b/src/main/java/org/schema/UpdateAction.java index e4adeb58..2dab460f 100644 --- a/src/main/java/org/schema/UpdateAction.java +++ b/src/main/java/org/schema/UpdateAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link UpdateAction} instance. */ public UpdateAction build() { - return new UpdateAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UpdateAction(targetCollection, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The collection target of the action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Thing targetCollection; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UpdateAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UpdateAction(Thing targetCollection, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myTargetCollection = targetCollection; } private Thing myTargetCollection; diff --git a/src/main/java/org/schema/UseAction.java b/src/main/java/org/schema/UseAction.java index fac2f5b4..55df76cb 100644 --- a/src/main/java/org/schema/UseAction.java +++ b/src/main/java/org/schema/UseAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link UseAction} instance. */ public UseAction build() { - return new UseAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UseAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UseAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UseAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserBlocks.java b/src/main/java/org/schema/UserBlocks.java index 53b3941e..b5351858 100644 --- a/src/main/java/org/schema/UserBlocks.java +++ b/src/main/java/org/schema/UserBlocks.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserBlocks} instance. */ public UserBlocks build() { - return new UserBlocks(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserBlocks(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserBlocks(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserBlocks(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserCheckins.java b/src/main/java/org/schema/UserCheckins.java index d2f9ba08..cdb841eb 100644 --- a/src/main/java/org/schema/UserCheckins.java +++ b/src/main/java/org/schema/UserCheckins.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserCheckins} instance. */ public UserCheckins build() { - return new UserCheckins(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserCheckins(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserCheckins(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserCheckins(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserComments.java b/src/main/java/org/schema/UserComments.java index 0d60061b..2ee549f2 100644 --- a/src/main/java/org/schema/UserComments.java +++ b/src/main/java/org/schema/UserComments.java @@ -64,7 +64,7 @@ public static final class Builder { * Creates new {@link UserComments} instance. */ public UserComments build() { - return new UserComments(commentText, commentTime, creator, discusses, replyToUrl, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserComments(commentText, commentTime, creator, discusses, replyToUrl, aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The text of the UserComment. @@ -391,6 +391,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String commentText; private java.util.Date commentTime; private OrganizationOrPerson creator; @@ -422,10 +426,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserComments(String commentText, java.util.Date commentTime, OrganizationOrPerson creator, CreativeWork discusses, String replyToUrl, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserComments(String commentText, java.util.Date commentTime, OrganizationOrPerson creator, CreativeWork discusses, String replyToUrl, AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCommentText = commentText; myCommentTime = commentTime; myCreator = creator; diff --git a/src/main/java/org/schema/UserDownloads.java b/src/main/java/org/schema/UserDownloads.java index 321d1111..31bea04a 100644 --- a/src/main/java/org/schema/UserDownloads.java +++ b/src/main/java/org/schema/UserDownloads.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserDownloads} instance. */ public UserDownloads build() { - return new UserDownloads(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserDownloads(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserDownloads(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserDownloads(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserInteraction.java b/src/main/java/org/schema/UserInteraction.java index d970c161..e8d8c384 100644 --- a/src/main/java/org/schema/UserInteraction.java +++ b/src/main/java/org/schema/UserInteraction.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserInteraction} instance. */ public UserInteraction build() { - return new UserInteraction(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserInteraction(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserInteraction(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserInteraction(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserLikes.java b/src/main/java/org/schema/UserLikes.java index 760e71e0..5cb683c3 100644 --- a/src/main/java/org/schema/UserLikes.java +++ b/src/main/java/org/schema/UserLikes.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserLikes} instance. */ public UserLikes build() { - return new UserLikes(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserLikes(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserLikes(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserLikes(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserPageVisits.java b/src/main/java/org/schema/UserPageVisits.java index f694ceda..f0e81b86 100644 --- a/src/main/java/org/schema/UserPageVisits.java +++ b/src/main/java/org/schema/UserPageVisits.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserPageVisits} instance. */ public UserPageVisits build() { - return new UserPageVisits(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserPageVisits(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserPageVisits(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserPageVisits(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserPlays.java b/src/main/java/org/schema/UserPlays.java index 2621d7ee..adcfc8b8 100644 --- a/src/main/java/org/schema/UserPlays.java +++ b/src/main/java/org/schema/UserPlays.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserPlays} instance. */ public UserPlays build() { - return new UserPlays(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserPlays(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserPlays(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserPlays(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserPlusOnes.java b/src/main/java/org/schema/UserPlusOnes.java index ae2ebb6e..fd265337 100644 --- a/src/main/java/org/schema/UserPlusOnes.java +++ b/src/main/java/org/schema/UserPlusOnes.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserPlusOnes} instance. */ public UserPlusOnes build() { - return new UserPlusOnes(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserPlusOnes(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserPlusOnes(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserPlusOnes(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/UserTweets.java b/src/main/java/org/schema/UserTweets.java index 9f023b15..d1dd3b20 100644 --- a/src/main/java/org/schema/UserTweets.java +++ b/src/main/java/org/schema/UserTweets.java @@ -32,7 +32,7 @@ public static final class Builder { * Creates new {@link UserTweets} instance. */ public UserTweets build() { - return new UserTweets(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new UserTweets(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -315,6 +315,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -341,9 +345,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected UserTweets(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected UserTweets(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Vehicle.java b/src/main/java/org/schema/Vehicle.java index 4cdc0428..778b4ec3 100644 --- a/src/main/java/org/schema/Vehicle.java +++ b/src/main/java/org/schema/Vehicle.java @@ -195,7 +195,7 @@ public static final class Builder { * Creates new {@link Vehicle} instance. */ public Vehicle build() { - return new Vehicle(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Vehicle(numberOfDoors, numberOfAirbags, numberOfAxles, vehicleEngine, fuelConsumption, fuelEfficiency, numberOfForwardGears, vin, cargoVolume, vehicleConfiguration, knownVehicleDamages, dateVehicleFirstRegistered, driveWheelConfiguration, fuelType, vehicleInteriorColor, vehicleInteriorType, mileageFromOdometer, vehicleModelDate, numberOfPreviousOwners, productionDate, purchaseDate, vehicleSeatingCapacity, vehicleTransmission, steeringPosition, aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The number of doors.
@@ -864,6 +864,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private NumberOrQuantitativeValue numberOfDoors; private NumberOrString numberOfAirbags; private NumberOrQuantitativeValue numberOfAxles; @@ -925,10 +929,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Vehicle(NumberOrQuantitativeValue numberOfDoors, NumberOrString numberOfAirbags, NumberOrQuantitativeValue numberOfAxles, EngineSpecification vehicleEngine, QuantitativeValue fuelConsumption, QuantitativeValue fuelEfficiency, NumberOrQuantitativeValue numberOfForwardGears, String vin, QuantitativeValue cargoVolume, String vehicleConfiguration, String knownVehicleDamages, java.util.Date dateVehicleFirstRegistered, DriveWheelConfigurationValueOrString driveWheelConfiguration, QualitativeValueOrString fuelType, String vehicleInteriorColor, String vehicleInteriorType, QuantitativeValue mileageFromOdometer, java.util.Date vehicleModelDate, NumberOrQuantitativeValue numberOfPreviousOwners, java.util.Date productionDate, java.util.Date purchaseDate, NumberOrQuantitativeValue vehicleSeatingCapacity, QualitativeValueOrString vehicleTransmission, SteeringPositionValue steeringPosition, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Vehicle(NumberOrQuantitativeValue numberOfDoors, NumberOrString numberOfAirbags, NumberOrQuantitativeValue numberOfAxles, EngineSpecification vehicleEngine, QuantitativeValue fuelConsumption, QuantitativeValue fuelEfficiency, NumberOrQuantitativeValue numberOfForwardGears, String vin, QuantitativeValue cargoVolume, String vehicleConfiguration, String knownVehicleDamages, java.util.Date dateVehicleFirstRegistered, DriveWheelConfigurationValueOrString driveWheelConfiguration, QualitativeValueOrString fuelType, String vehicleInteriorColor, String vehicleInteriorType, QuantitativeValue mileageFromOdometer, java.util.Date vehicleModelDate, NumberOrQuantitativeValue numberOfPreviousOwners, java.util.Date productionDate, java.util.Date purchaseDate, NumberOrQuantitativeValue vehicleSeatingCapacity, QualitativeValueOrString vehicleTransmission, SteeringPositionValue steeringPosition, AggregateRating aggregateRating, Audience audience, String award, BrandOrOrganization brand, PhysicalActivityCategoryOrStringOrThing category, String color, DistanceOrQuantitativeValue depth, String gtin12, String gtin13, String gtin14, String gtin8, DistanceOrQuantitativeValue height, Product isAccessoryOrSparePartFor, Product isConsumableFor, Product isRelatedTo, Product isSimilarTo, OfferItemCondition itemCondition, ImageObjectOrString logo, Organization manufacturer, ProductModelOrString model, String mpn, Offer offers, String productID, java.util.Date releaseDate, Review review, String sku, QuantitativeValue weight, DistanceOrQuantitativeValue width, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, audience, award, brand, category, color, depth, gtin12, gtin13, gtin14, gtin8, height, isAccessoryOrSparePartFor, isConsumableFor, isRelatedTo, isSimilarTo, itemCondition, logo, manufacturer, model, mpn, offers, productID, releaseDate, review, sku, weight, width, additionalProperty, productionDate, purchaseDate, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myNumberOfDoors = numberOfDoors; myNumberOfAirbags = numberOfAirbags; myNumberOfAxles = numberOfAxles; diff --git a/src/main/java/org/schema/Vein.java b/src/main/java/org/schema/Vein.java index ea904556..f2c36977 100644 --- a/src/main/java/org/schema/Vein.java +++ b/src/main/java/org/schema/Vein.java @@ -49,7 +49,7 @@ public static final class Builder { * Creates new {@link Vein} instance. */ public Vein build() { - return new Vein(drainsTo, regionDrained, tributary, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Vein(drainsTo, regionDrained, tributary, associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The vasculature that the vein drains into. @@ -305,6 +305,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Vessel drainsTo; private AnatomicalStructureOrAnatomicalSystem regionDrained; private AnatomicalStructure tributary; @@ -331,10 +335,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Vein(Vessel drainsTo, AnatomicalStructureOrAnatomicalSystem regionDrained, AnatomicalStructure tributary, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Vein(Vessel drainsTo, AnatomicalStructureOrAnatomicalSystem regionDrained, AnatomicalStructure tributary, String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myDrainsTo = drainsTo; myRegionDrained = regionDrained; myTributary = tributary; diff --git a/src/main/java/org/schema/Vessel.java b/src/main/java/org/schema/Vessel.java index f02e732f..f6eba3b9 100644 --- a/src/main/java/org/schema/Vessel.java +++ b/src/main/java/org/schema/Vessel.java @@ -31,7 +31,7 @@ public static final class Builder { * Creates new {@link Vessel} instance. */ public Vessel build() { - return new Vessel(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Vessel(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. @@ -257,6 +257,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String associatedPathophysiology; private String bodyLocation; private AnatomicalStructure connectedTo; @@ -280,9 +284,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Vessel(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Vessel(String associatedPathophysiology, String bodyLocation, AnatomicalStructure connectedTo, ImageObject diagram, String function, IsPartOf partOfSystem, MedicalCondition relatedCondition, MedicalTherapy relatedTherapy, AnatomicalStructure subStructure, MedicalCode code, MedicalGuideline guideline, MedicineSystem medicineSystem, Organization recognizingAuthority, MedicalSpecialty relevantSpecialty, MedicalStudy study, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(associatedPathophysiology, bodyLocation, connectedTo, diagram, function, partOfSystem, relatedCondition, relatedTherapy, subStructure, code, guideline, medicineSystem, recognizingAuthority, relevantSpecialty, study, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/VeterinaryCare.java b/src/main/java/org/schema/VeterinaryCare.java index 58dfa053..6f7d8ba1 100644 --- a/src/main/java/org/schema/VeterinaryCare.java +++ b/src/main/java/org/schema/VeterinaryCare.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link VeterinaryCare} instance. */ public VeterinaryCare build() { - return new VeterinaryCare(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new VeterinaryCare(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VeterinaryCare(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected VeterinaryCare(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/VideoGallery.java b/src/main/java/org/schema/VideoGallery.java index 014c87c4..9a296054 100644 --- a/src/main/java/org/schema/VideoGallery.java +++ b/src/main/java/org/schema/VideoGallery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link VideoGallery} instance. */ public VideoGallery build() { - return new VideoGallery(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new VideoGallery(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -756,6 +756,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -835,9 +839,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VideoGallery(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + protected VideoGallery(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } } diff --git a/src/main/java/org/schema/VideoGame.java b/src/main/java/org/schema/VideoGame.java index a8974a25..6f046265 100644 --- a/src/main/java/org/schema/VideoGame.java +++ b/src/main/java/org/schema/VideoGame.java @@ -78,7 +78,7 @@ public static final class Builder { * Creates new {@link VideoGame} instance. */ public VideoGame build() { - return new VideoGame(director, musicBy, trailer, playMode, cheatCode, gameTip, gamePlatform, gameServer, numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); + return new VideoGame(director, musicBy, trailer, playMode, cheatCode, gameTip, gamePlatform, gameServer, numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); } /** * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. @@ -856,6 +856,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person director; private MusicGroupOrPerson musicBy; private VideoObject trailer; @@ -940,10 +944,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VideoGame(Person director, MusicGroupOrPerson musicBy, VideoObject trailer, GamePlayMode playMode, CreativeWork cheatCode, CreativeWork gameTip, StringOrThing gamePlatform, GameServer gameServer, QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, PlaceOrPostalAddressOrString gameLocation, 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) { - super(numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); + protected VideoGame(Person director, MusicGroupOrPerson musicBy, VideoObject trailer, GamePlayMode playMode, CreativeWork cheatCode, CreativeWork gameTip, StringOrThing gamePlatform, GameServer gameServer, QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, PlaceOrPostalAddressOrString gameLocation, 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(numberOfPlayers, quest, gameItem, characterAttribute, gameLocation, 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); myDirector = director; myMusicBy = musicBy; myTrailer = trailer; diff --git a/src/main/java/org/schema/VideoGameClip.java b/src/main/java/org/schema/VideoGameClip.java index 61cef0a3..df1cbf2e 100644 --- a/src/main/java/org/schema/VideoGameClip.java +++ b/src/main/java/org/schema/VideoGameClip.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link VideoGameClip} instance. */ public VideoGameClip build() { - return new VideoGameClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + return new VideoGameClip(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -740,6 +740,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Position clipNumber; private Person director; @@ -818,9 +822,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VideoGameClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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) { - super(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); + protected VideoGameClip(Person actor, Position clipNumber, Person director, MusicGroupOrPerson musicBy, IsPartOf partOfEpisode, IsPartOf partOfSeason, IsPartOf partOfSeries, 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(actor, clipNumber, director, musicBy, partOfEpisode, partOfSeason, partOfSeries, 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); } } diff --git a/src/main/java/org/schema/VideoGameSeries.java b/src/main/java/org/schema/VideoGameSeries.java index f6304763..f2e84e9f 100644 --- a/src/main/java/org/schema/VideoGameSeries.java +++ b/src/main/java/org/schema/VideoGameSeries.java @@ -132,7 +132,7 @@ public static final class Builder { * Creates new {@link VideoGameSeries} instance. */ public VideoGameSeries build() { - return new VideoGameSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, numberOfPlayers, quest, gameItem, characterAttribute, playMode, cheatCode, gamePlatform, gameLocation, endDate, startDate, 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); + return new VideoGameSeries(actor, director, episode, musicBy, numberOfEpisodes, numberOfSeasons, productionCompany, containsSeason, trailer, numberOfPlayers, quest, gameItem, characterAttribute, playMode, cheatCode, gamePlatform, gameLocation, endDate, startDate, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -952,6 +952,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private Person director; private HasPart episode; @@ -1042,10 +1046,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VideoGameSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, GamePlayMode playMode, CreativeWork cheatCode, StringOrThing gamePlatform, PlaceOrPostalAddressOrString gameLocation, java.util.Date endDate, java.util.Date startDate, 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) { - super(endDate, startDate, 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); + protected VideoGameSeries(Person actor, Person director, HasPart episode, MusicGroupOrPerson musicBy, Integer numberOfEpisodes, Integer numberOfSeasons, Organization productionCompany, HasPart containsSeason, VideoObject trailer, QuantitativeValue numberOfPlayers, Thing quest, Thing gameItem, Thing characterAttribute, GamePlayMode playMode, CreativeWork cheatCode, StringOrThing gamePlatform, PlaceOrPostalAddressOrString gameLocation, java.util.Date endDate, java.util.Date startDate, 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(endDate, startDate, 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); myActor = actor; myDirector = director; myEpisode = episode; diff --git a/src/main/java/org/schema/VideoObject.java b/src/main/java/org/schema/VideoObject.java index de0f3841..d50463c6 100644 --- a/src/main/java/org/schema/VideoObject.java +++ b/src/main/java/org/schema/VideoObject.java @@ -79,7 +79,7 @@ public static final class Builder { * Creates new {@link VideoObject} instance. */ public VideoObject build() { - return new VideoObject(actor, caption, director, musicBy, thumbnail, transcript, videoFrameSize, videoQuality, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + return new VideoObject(actor, caption, director, musicBy, thumbnail, transcript, videoFrameSize, videoQuality, associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); } /** * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. @@ -926,6 +926,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person actor; private String caption; private Person director; @@ -1021,10 +1025,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VideoObject(Person actor, String caption, Person director, MusicGroupOrPerson musicBy, ImageObject thumbnail, String transcript, String videoFrameSize, String videoQuality, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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) { - super(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); + protected VideoObject(Person actor, String caption, Person director, MusicGroupOrPerson musicBy, ImageObject thumbnail, String transcript, String videoFrameSize, String videoQuality, NewsArticle associatedArticle, String bitrate, String contentSize, String contentUrl, Duration duration, String embedUrl, CreativeWork encodesCreativeWork, String encodingFormat, java.util.Date expires, DistanceOrQuantitativeValue height, String playerType, Organization productionCompany, Place regionsAllowed, Boolean requiresSubscription, java.util.Date uploadDate, DistanceOrQuantitativeValue width, 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(associatedArticle, bitrate, contentSize, contentUrl, duration, embedUrl, encodesCreativeWork, encodingFormat, expires, height, playerType, productionCompany, regionsAllowed, requiresSubscription, uploadDate, width, 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); myActor = actor; myCaption = caption; myDirector = director; diff --git a/src/main/java/org/schema/ViewAction.java b/src/main/java/org/schema/ViewAction.java index 3a60d645..22b1c593 100644 --- a/src/main/java/org/schema/ViewAction.java +++ b/src/main/java/org/schema/ViewAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link ViewAction} instance. */ public ViewAction build() { - return new ViewAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new ViewAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected ViewAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected ViewAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/VisualArtsEvent.java b/src/main/java/org/schema/VisualArtsEvent.java index 2b1109d9..29bd62d0 100644 --- a/src/main/java/org/schema/VisualArtsEvent.java +++ b/src/main/java/org/schema/VisualArtsEvent.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link VisualArtsEvent} instance. */ public VisualArtsEvent build() { - return new VisualArtsEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new VisualArtsEvent(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -313,6 +313,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private AggregateRating aggregateRating; private OrganizationOrPerson organizer; private OrganizationOrPerson attendee; @@ -339,9 +343,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VisualArtsEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected VisualArtsEvent(AggregateRating aggregateRating, OrganizationOrPerson organizer, OrganizationOrPerson attendee, java.util.Date doorTime, Duration duration, java.util.Date endDate, EventStatusType eventStatus, LanguageOrString inLanguage, Offer offers, OrganizationOrPerson performer, java.util.Date previousStartDate, CreativeWork recordedIn, Review review, java.util.Date startDate, Event subEvent, Event superEvent, String typicalAgeRange, CreativeWork workPerformed, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(aggregateRating, organizer, attendee, doorTime, duration, endDate, eventStatus, inLanguage, offers, performer, previousStartDate, recordedIn, review, startDate, subEvent, superEvent, typicalAgeRange, workPerformed, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/VisualArtwork.java b/src/main/java/org/schema/VisualArtwork.java index d8d0715c..e49b6735 100644 --- a/src/main/java/org/schema/VisualArtwork.java +++ b/src/main/java/org/schema/VisualArtwork.java @@ -73,7 +73,7 @@ public static final class Builder { * Creates new {@link VisualArtwork} instance. */ public VisualArtwork build() { - return new VisualArtwork(artform, artMedium, artworkSurface, width, height, depth, artEdition, 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); + return new VisualArtwork(artform, artMedium, artworkSurface, width, height, depth, artEdition, 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); } /** * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. @@ -810,6 +810,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String artform; private String artMedium; private String artworkSurface; @@ -888,10 +892,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VisualArtwork(String artform, String artMedium, String artworkSurface, DistanceOrQuantitativeValue width, DistanceOrQuantitativeValue height, DistanceOrQuantitativeValue depth, IntegerOrString artEdition, 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) { - super(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); + protected VisualArtwork(String artform, String artMedium, String artworkSurface, DistanceOrQuantitativeValue width, DistanceOrQuantitativeValue height, DistanceOrQuantitativeValue depth, IntegerOrString artEdition, 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(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); myArtform = artform; myArtMedium = artMedium; myArtworkSurface = artworkSurface; diff --git a/src/main/java/org/schema/Volcano.java b/src/main/java/org/schema/Volcano.java index bf1b7fab..a802247a 100644 --- a/src/main/java/org/schema/Volcano.java +++ b/src/main/java/org/schema/Volcano.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Volcano} instance. */ public Volcano build() { - return new Volcano(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Volcano(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Volcano(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Volcano(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/VoteAction.java b/src/main/java/org/schema/VoteAction.java index e857c42c..d9db28cf 100644 --- a/src/main/java/org/schema/VoteAction.java +++ b/src/main/java/org/schema/VoteAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link VoteAction} instance. */ public VoteAction build() { - return new VoteAction(candidate, actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new VoteAction(candidate, actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of object. The candidate subject of this action. @@ -235,6 +235,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person candidate; private StringOrThing actionOption; private OrganizationOrPerson agent; @@ -251,10 +255,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected VoteAction(Person candidate, StringOrThing actionOption, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected VoteAction(Person candidate, StringOrThing actionOption, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(actionOption, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myCandidate = candidate; } private Person myCandidate; diff --git a/src/main/java/org/schema/WPAdBlock.java b/src/main/java/org/schema/WPAdBlock.java index dc7ef5ac..850a3fa9 100644 --- a/src/main/java/org/schema/WPAdBlock.java +++ b/src/main/java/org/schema/WPAdBlock.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WPAdBlock} instance. */ public WPAdBlock build() { - return new WPAdBlock(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); + return new WPAdBlock(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WPAdBlock(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) { - super(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); + protected WPAdBlock(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(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); } } diff --git a/src/main/java/org/schema/WPFooter.java b/src/main/java/org/schema/WPFooter.java index fc01c214..892114eb 100644 --- a/src/main/java/org/schema/WPFooter.java +++ b/src/main/java/org/schema/WPFooter.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WPFooter} instance. */ public WPFooter build() { - return new WPFooter(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); + return new WPFooter(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WPFooter(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) { - super(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); + protected WPFooter(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(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); } } diff --git a/src/main/java/org/schema/WPHeader.java b/src/main/java/org/schema/WPHeader.java index bc325ae7..6aba702b 100644 --- a/src/main/java/org/schema/WPHeader.java +++ b/src/main/java/org/schema/WPHeader.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WPHeader} instance. */ public WPHeader build() { - return new WPHeader(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); + return new WPHeader(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WPHeader(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) { - super(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); + protected WPHeader(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(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); } } diff --git a/src/main/java/org/schema/WPSideBar.java b/src/main/java/org/schema/WPSideBar.java index 0c6af84c..fccd53a8 100644 --- a/src/main/java/org/schema/WPSideBar.java +++ b/src/main/java/org/schema/WPSideBar.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WPSideBar} instance. */ public WPSideBar build() { - return new WPSideBar(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); + return new WPSideBar(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WPSideBar(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) { - super(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); + protected WPSideBar(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(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); } } diff --git a/src/main/java/org/schema/WantAction.java b/src/main/java/org/schema/WantAction.java index e3b78ba3..1f5da501 100644 --- a/src/main/java/org/schema/WantAction.java +++ b/src/main/java/org/schema/WantAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WantAction} instance. */ public WantAction build() { - return new WantAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WantAction(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. @@ -206,6 +206,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private OrganizationOrPerson agent; private java.util.Date endTime; private java.util.Date startTime; @@ -220,9 +224,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WantAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WantAction(OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WarrantyPromise.java b/src/main/java/org/schema/WarrantyPromise.java index c671de66..b4e6c269 100644 --- a/src/main/java/org/schema/WarrantyPromise.java +++ b/src/main/java/org/schema/WarrantyPromise.java @@ -43,7 +43,7 @@ public static final class Builder { * Creates new {@link WarrantyPromise} instance. */ public WarrantyPromise build() { - return new WarrantyPromise(durationOfWarranty, warrantyScope, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WarrantyPromise(durationOfWarranty, warrantyScope, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days. @@ -178,6 +178,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private QuantitativeValue durationOfWarranty; private WarrantyScope warrantyScope; private String additionalType; @@ -188,10 +192,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WarrantyPromise(QuantitativeValue durationOfWarranty, WarrantyScope warrantyScope, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WarrantyPromise(QuantitativeValue durationOfWarranty, WarrantyScope warrantyScope, 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); myDurationOfWarranty = durationOfWarranty; myWarrantyScope = warrantyScope; } diff --git a/src/main/java/org/schema/WarrantyScope.java b/src/main/java/org/schema/WarrantyScope.java index 67e27c09..d7ff97da 100644 --- a/src/main/java/org/schema/WarrantyScope.java +++ b/src/main/java/org/schema/WarrantyScope.java @@ -38,7 +38,7 @@ public static final class Builder { * Creates new {@link WarrantyScope} instance. */ public WarrantyScope build() { - return new WarrantyScope(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WarrantyScope(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. @@ -175,6 +175,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private EnumerationOrProperty supersededBy; private String additionalType; private String alternateName; @@ -184,9 +188,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WarrantyScope(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WarrantyScope(EnumerationOrProperty supersededBy, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(supersededBy, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WatchAction.java b/src/main/java/org/schema/WatchAction.java index a6258e70..f0c0876e 100644 --- a/src/main/java/org/schema/WatchAction.java +++ b/src/main/java/org/schema/WatchAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WatchAction} instance. */ public WatchAction build() { - return new WatchAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WatchAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WatchAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WatchAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/Waterfall.java b/src/main/java/org/schema/Waterfall.java index 44f48708..4fe626a1 100644 --- a/src/main/java/org/schema/Waterfall.java +++ b/src/main/java/org/schema/Waterfall.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Waterfall} instance. */ public Waterfall build() { - return new Waterfall(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Waterfall(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Physical address of the item. @@ -295,6 +295,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private PostalAddress address; private AggregateRating aggregateRating; private Place containedIn; @@ -318,9 +322,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Waterfall(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Waterfall(PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WearAction.java b/src/main/java/org/schema/WearAction.java index 285d241b..a726b57d 100644 --- a/src/main/java/org/schema/WearAction.java +++ b/src/main/java/org/schema/WearAction.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WearAction} instance. */ public WearAction build() { - return new WearAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WearAction(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. @@ -213,6 +213,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Offer expectsAcceptanceOf; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -228,9 +232,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WearAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WearAction(Offer expectsAcceptanceOf, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(expectsAcceptanceOf, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WebApplication.java b/src/main/java/org/schema/WebApplication.java index 0867fc9f..f0579e75 100644 --- a/src/main/java/org/schema/WebApplication.java +++ b/src/main/java/org/schema/WebApplication.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link WebApplication} instance. */ public WebApplication build() { - return new WebApplication(browserRequirements, 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); + return new WebApplication(browserRequirements, 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); } /** * Specifies browser requirements in human-readable text. For example,"requires HTML5 support". @@ -858,6 +858,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String browserRequirements; private String applicationCategory; private String applicationSubCategory; @@ -952,10 +956,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WebApplication(String browserRequirements, 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) { - 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); + protected WebApplication(String browserRequirements, 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); myBrowserRequirements = browserRequirements; } private String myBrowserRequirements; diff --git a/src/main/java/org/schema/WebPage.java b/src/main/java/org/schema/WebPage.java index f006a67e..c2f172ab 100644 --- a/src/main/java/org/schema/WebPage.java +++ b/src/main/java/org/schema/WebPage.java @@ -79,7 +79,7 @@ public static final class Builder { * Creates new {@link WebPage} instance. */ public WebPage build() { - return new WebPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); + return new WebPage(breadcrumb, lastReviewed, mainContentOfPage, primaryImageOfPage, relatedLink, reviewedBy, significantLink, specialty, 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); } /** * A set of links that can help a user understand and navigate a website hierarchy. @@ -805,6 +805,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BreadcrumbListOrString breadcrumb; private java.util.Date lastReviewed; private WebPageElement mainContentOfPage; @@ -884,10 +888,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WebPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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) { - super(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); + protected WebPage(BreadcrumbListOrString breadcrumb, java.util.Date lastReviewed, WebPageElement mainContentOfPage, ImageObject primaryImageOfPage, String relatedLink, OrganizationOrPerson reviewedBy, String significantLink, Specialty specialty, 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(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); myBreadcrumb = breadcrumb; myLastReviewed = lastReviewed; myMainContentOfPage = mainContentOfPage; diff --git a/src/main/java/org/schema/WebPageElement.java b/src/main/java/org/schema/WebPageElement.java index 61465d2a..369320b9 100644 --- a/src/main/java/org/schema/WebPageElement.java +++ b/src/main/java/org/schema/WebPageElement.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WebPageElement} instance. */ public WebPageElement build() { - return new WebPageElement(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); + return new WebPageElement(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WebPageElement(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) { - super(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); + protected WebPageElement(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(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); } } diff --git a/src/main/java/org/schema/WebSite.java b/src/main/java/org/schema/WebSite.java index 9f11a233..ec4e9c18 100644 --- a/src/main/java/org/schema/WebSite.java +++ b/src/main/java/org/schema/WebSite.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WebSite} instance. */ public WebSite build() { - return new WebSite(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); + return new WebSite(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); } /** * 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. @@ -682,6 +682,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String schemaVersion; private Thing about; private String accessibilityAPI; @@ -753,9 +757,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WebSite(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) { - super(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); + protected WebSite(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(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); } } diff --git a/src/main/java/org/schema/WholesaleStore.java b/src/main/java/org/schema/WholesaleStore.java index dfdbb46b..fb6d79a2 100644 --- a/src/main/java/org/schema/WholesaleStore.java +++ b/src/main/java/org/schema/WholesaleStore.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link WholesaleStore} instance. */ public WholesaleStore build() { - return new WholesaleStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WholesaleStore(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The larger organization that this local business is a branch of, if any. @@ -330,6 +330,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Organization parentOrganization; private String currenciesAccepted; private String openingHours; @@ -358,9 +362,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WholesaleStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WholesaleStore(Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WinAction.java b/src/main/java/org/schema/WinAction.java index b8561291..7e75b225 100644 --- a/src/main/java/org/schema/WinAction.java +++ b/src/main/java/org/schema/WinAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link WinAction} instance. */ public WinAction build() { - return new WinAction(loser, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WinAction(loser, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * A sub property of participant. The loser of the action. @@ -219,6 +219,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private Person loser; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -234,10 +238,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WinAction(Person loser, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WinAction(Person loser, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myLoser = loser; } private Person myLoser; diff --git a/src/main/java/org/schema/Winery.java b/src/main/java/org/schema/Winery.java index de8cf4ab..8dff855e 100644 --- a/src/main/java/org/schema/Winery.java +++ b/src/main/java/org/schema/Winery.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Winery} instance. */ public Winery build() { - return new Winery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Winery(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No. @@ -360,6 +360,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private BooleanOrString acceptsReservations; private String menu; private String servesCuisine; @@ -391,9 +395,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Winery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Winery(BooleanOrString acceptsReservations, String menu, String servesCuisine, Organization parentOrganization, String currenciesAccepted, String openingHours, String paymentAccepted, String priceRange, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(acceptsReservations, menu, servesCuisine, parentOrganization, currenciesAccepted, openingHours, paymentAccepted, priceRange, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } } diff --git a/src/main/java/org/schema/WriteAction.java b/src/main/java/org/schema/WriteAction.java index b0832d88..ee3373f4 100644 --- a/src/main/java/org/schema/WriteAction.java +++ b/src/main/java/org/schema/WriteAction.java @@ -36,7 +36,7 @@ public static final class Builder { * Creates new {@link WriteAction} instance. */ public WriteAction build() { - return new WriteAction(inLanguage, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new WriteAction(inLanguage, agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * 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. @@ -228,6 +228,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private LanguageOrString inLanguage; private OrganizationOrPerson agent; private java.util.Date endTime; @@ -243,10 +247,11 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected WriteAction(LanguageOrString inLanguage, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected WriteAction(LanguageOrString inLanguage, OrganizationOrPerson agent, java.util.Date endTime, java.util.Date startTime, ActionStatusType actionStatus, Thing error, EntryPoint target, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(agent, endTime, startTime, actionStatus, error, target, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); myInLanguage = inLanguage; } private LanguageOrString myInLanguage; diff --git a/src/main/java/org/schema/Zoo.java b/src/main/java/org/schema/Zoo.java index 7a00c1bb..92b0311f 100644 --- a/src/main/java/org/schema/Zoo.java +++ b/src/main/java/org/schema/Zoo.java @@ -30,7 +30,7 @@ public static final class Builder { * Creates new {@link Zoo} instance. */ public Zoo build() { - return new Zoo(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + return new Zoo(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } /** * The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.
- If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. @@ -302,6 +302,10 @@ public Builder potentialAction(Action action) { this.potentialAction = action; return this; } + public Builder id(String id) { + this.id = id; + return this; + } private String openingHours; private PostalAddress address; private AggregateRating aggregateRating; @@ -326,9 +330,10 @@ public Builder potentialAction(Action action) { private String sameAs; private String url; private Action potentialAction; + private String id; } - protected Zoo(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction) { - super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction); + protected Zoo(String openingHours, PostalAddress address, AggregateRating aggregateRating, Place containedIn, Event event, String faxNumber, GeoCoordinatesOrGeoShape geo, String globalLocationNumber, String isicV4, ImageObjectOrString logo, MapOrString hasMap, OpeningHoursSpecification openingHoursSpecification, ImageObjectOrPhotograph photo, Review review, String telephone, PropertyValue additionalProperty, String additionalType, String alternateName, String description, CreativeWorkOrString mainEntityOfPage, String name, String sameAs, String url, Action potentialAction, String id) { + super(openingHours, address, aggregateRating, containedIn, event, faxNumber, geo, globalLocationNumber, isicV4, logo, hasMap, openingHoursSpecification, photo, review, telephone, additionalProperty, additionalType, alternateName, description, mainEntityOfPage, name, sameAs, url, potentialAction, id); } }