Skip to content

Commit

Permalink
Support for ERN 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Jul 8, 2023
1 parent 3af0d7f commit 5ccaae7
Show file tree
Hide file tree
Showing 219 changed files with 91,316 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ gemspec
group :development do
gem "rspec"
gem "test_xml", "~> 0.1.7"
gem "jaxb2ruby", :git => "https://github.com/sshaw/jaxb2ruby", :platform => "jruby"
gem "jaxb2ruby", "~> 0.1.0", :platforms => :jruby
gem "activesupport", "< 7"
end
1 change: 1 addition & 0 deletions etc/namespaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ http://ddex.net/xml/dsr/40: DDEX::DSR::V40
http://ddex.net/xml/dsr/41: DDEX::DSR::V41
http://ddex.net/xml/dsr/42: DDEX::DSR::V42
http://ddex.net/xml/dsr/43: DDEX::DSR::V43
http://ddex.net/xml/ern/43: DDEX::ERN::V43
http://ddex.net/xml/ern/42: DDEX::ERN::V42
http://ddex.net/xml/ern/411: DDEX::ERN::V411
http://ddex.net/xml/ern/41: DDEX::ERN::V41
Expand Down
55,841 changes: 55,841 additions & 0 deletions etc/schemas/ern/43/allowed-value-sets.xsd

Large diffs are not rendered by default.

8,829 changes: 8,829 additions & 0 deletions etc/schemas/ern/43/release-notification.xsd

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions lib/ddex/ern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ module ERN
autoload :V41, "ddex/ern/v41"
autoload :V411, "ddex/ern/v411"
autoload :V42, "ddex/ern/v42"
autoload :V43, "ddex/ern/v43"

ROOT_ELEMENT = "NewReleaseMessage".freeze
VERSION_ATTR = "MessageSchemaVersionId".freeze

DEFAULT_CONFIG = {
"V43" => {
:schema => "http://ddex.net/xml/ern/43/release-notification.xsd",
:version => "4.3",
:message_schema_version_id => "ern/43"
},

"V42" => {
:schema => "http://ddex.net/xml/ern/42/release-notification.xsd",
:version => "4.2",
Expand Down
11 changes: 11 additions & 0 deletions lib/ddex/ern/v43.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Do not edit. Automatically generated by `rake generate:main`.
#
module DDEX
module ERN
module V43
extend DDEX
require_standard("ern", "4.3")
end
end
end
51 changes: 51 additions & 0 deletions lib/ddex/ern/v43/additional_title.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"

require "ddex/ern/v43/display_sub_title"

module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AdditionalTitle < Element
include ROXML


xml_name "AdditionalTitle"

xml_accessor :title_text, :from => "TitleText", :required => true
xml_accessor :sub_titles, :as => [DDEX::ERN::V43::DisplaySubTitle], :from => "SubTitle", :required => false



xml_accessor :language_and_script_code, :from => "@LanguageAndScriptCode", :required => false


xml_accessor :applicable_territory_code, :from => "@ApplicableTerritoryCode", :required => false


xml_accessor :title_type, :from => "@TitleType", :required => false


xml_accessor :namespace, :from => "@Namespace", :required => false


xml_accessor :user_defined_value, :from => "@UserDefinedValue", :required => false


xml_accessor :default?, :from => "@IsDefault", :required => false


xml_accessor :in_original_language?, :from => "@IsInOriginalLanguage", :required => false



end

end end end
34 changes: 34 additions & 0 deletions lib/ddex/ern/v43/administrating_record_company_role.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"


module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AdministratingRecordCompanyRole < Element
include ROXML


xml_name "AdministratingRecordCompanyRole"


xml_accessor :value, :from => ".", :required => false


xml_accessor :namespace, :from => "@Namespace", :required => false


xml_accessor :user_defined_value, :from => "@UserDefinedValue", :required => false



end

end end end
30 changes: 30 additions & 0 deletions lib/ddex/ern/v43/administrating_record_company_with_reference.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"

require "ddex/ern/v43/administrating_record_company_role"

module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AdministratingRecordCompanyWithReference < Element
include ROXML


xml_name "AdministratingRecordCompanyWithReference"

xml_accessor :record_company_party_reference, :from => "RecordCompanyPartyReference", :required => true
xml_accessor :role, :as => DDEX::ERN::V43::AdministratingRecordCompanyRole, :from => "Role", :required => true




end

end end end
38 changes: 38 additions & 0 deletions lib/ddex/ern/v43/affiliation.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"

require "ddex/ern/v43/current_territory_code"
require "ddex/ern/v43/rights_type"
require "ddex/ern/v43/validity_period"

module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::Affiliation < Element
include ROXML


xml_name "Affiliation"

xml_accessor :party_affiliate_reference, :from => "PartyAffiliateReference", :required => false
xml_accessor :company_name, :from => "CompanyName", :required => false
xml_accessor :type, :from => "Type", :required => true
xml_accessor :excluded_territory_codes, :as => [DDEX::ERN::V43::CurrentTerritoryCode], :from => "ExcludedTerritoryCode", :required => false
xml_accessor :territory_codes, :as => [DDEX::ERN::V43::CurrentTerritoryCode], :from => "TerritoryCode", :required => false
xml_accessor :validity_period, :as => DDEX::ERN::V43::ValidityPeriod, :from => "ValidityPeriod", :required => false
xml_accessor :rights_types, :as => [DDEX::ERN::V43::RightsType], :from => "RightsType", :required => false
xml_accessor :percentage_of_rights_assignment, :as => Float, :from => "PercentageOfRightsAssignment", :required => false




end

end end end
31 changes: 31 additions & 0 deletions lib/ddex/ern/v43/all_territory_code.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"


module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AllTerritoryCode < Element
include ROXML


xml_name "AllTerritoryCode"


xml_accessor :value, :from => ".", :required => false


xml_accessor :identifier_type, :from => "@IdentifierType", :required => false



end

end end end
34 changes: 34 additions & 0 deletions lib/ddex/ern/v43/aspect_ratio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"


module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AspectRatio < Element
include ROXML


xml_name "AspectRatio"


xml_accessor :value, :from => ".", :required => false


xml_accessor :aspect_ratio_type, :from => "@AspectRatioType", :required => false


xml_accessor :applies_to_cropped_resource?, :from => "@AppliesToCroppedResource", :required => false



end

end end end
37 changes: 37 additions & 0 deletions lib/ddex/ern/v43/audio_codec_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"


module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AudioCodecType < Element
include ROXML


xml_name "AudioCodecType"


xml_accessor :value, :from => ".", :required => false


xml_accessor :version, :from => "@Version", :required => false


xml_accessor :namespace, :from => "@Namespace", :required => false


xml_accessor :user_defined_value, :from => "@UserDefinedValue", :required => false



end

end end end
48 changes: 48 additions & 0 deletions lib/ddex/ern/v43/audio_delivery_file.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"

require "ddex/ern/v43/audio_codec_type"
require "ddex/ern/v43/bit_rate"
require "ddex/ern/v43/container_format"
require "ddex/ern/v43/file"
require "ddex/ern/v43/fingerprint"
require "ddex/ern/v43/sampling_rate"

module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AudioDeliveryFile < Element
include ROXML


xml_name "AudioDeliveryFile"

xml_accessor :type, :from => "Type", :required => true
xml_accessor :container_format, :as => DDEX::ERN::V43::ContainerFormat, :from => "ContainerFormat", :required => false
xml_accessor :audio_codec_type, :as => DDEX::ERN::V43::AudioCodecType, :from => "AudioCodecType", :required => false
xml_accessor :bit_rate, :as => DDEX::ERN::V43::BitRate, :from => "BitRate", :required => false
xml_accessor :original_bit_rate, :as => DDEX::ERN::V43::BitRate, :from => "OriginalBitRate", :required => false
xml_accessor :number_of_channels, :from => "NumberOfChannels", :required => false
xml_accessor :number_of_audio_objects, :as => Integer, :from => "NumberOfAudioObjects", :required => false
xml_accessor :sampling_rate, :as => DDEX::ERN::V43::SamplingRate, :from => "SamplingRate", :required => false
xml_accessor :original_sampling_rate, :as => DDEX::ERN::V43::SamplingRate, :from => "OriginalSamplingRate", :required => false
xml_accessor :bits_per_sample, :as => Integer, :from => "BitsPerSample", :required => false
xml_accessor :duration, :from => "Duration", :required => false
xml_accessor :bit_depth, :as => Integer, :from => "BitDepth", :required => false
xml_accessor :file, :as => DDEX::ERN::V43::File, :from => "File", :required => false
xml_accessor :fingerprints, :as => [DDEX::ERN::V43::Fingerprint], :from => "Fingerprint", :required => false
xml_accessor :provided_in_delivery?, :from => "IsProvidedInDelivery", :required => false




end

end end end
38 changes: 38 additions & 0 deletions lib/ddex/ern/v43/av_rating.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Auto-generated by jaxb2ruby https://github.com/sshaw/jaxb2ruby
#
#
# DO NOT MODIFY
# Automatically generated by jaxb2ruby v0.0.1 (https://github.com/sshaw/jaxb2ruby)
#

require "roxml"
require "ddex/element"

require "ddex/ern/v43/rating_agency"
require "ddex/ern/v43/rating_reason"

module DDEX module ERN module V43 # :nodoc: all

class DDEX::ERN::V43::AvRating < Element
include ROXML


xml_name "AvRating"

xml_accessor :rating, :from => "Rating", :required => true
xml_accessor :agency, :as => DDEX::ERN::V43::RatingAgency, :from => "Agency", :required => true
xml_accessor :reason, :as => DDEX::ERN::V43::RatingReason, :from => "Reason", :required => false



xml_accessor :applicable_territory_code, :from => "@ApplicableTerritoryCode", :required => false


xml_accessor :default?, :from => "@IsDefault", :required => false



end

end end end
Loading

0 comments on commit 5ccaae7

Please sign in to comment.