class MediaProcessingTool::XMLParser::Identifier

Public Class Methods

new(xml, params = { }) click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 8
def initialize(xml, params = { })
  super(xml, params)
end

Public Instance Methods

is_fcpxml?() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 12
def is_fcpxml?
  root_type == 'fcpxml'
end
is_final_cut_pro?() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 24
def is_final_cut_pro?
  is_xmeml? || is_fcpxml?
end
is_itunes?() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 28
def is_itunes?
  is_plist? and !xml_document.find('/plist/dict/key[text()="Tracks"]').empty?
end
is_plist?() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 20
def is_plist?
  root_type == 'plist'
end
is_xmeml?() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 16
def is_xmeml?
  root_type == 'xmeml'
end
type() click to toggle source
# File lib/media_processing_tool/xml_parser/identifier.rb, line 32
def type
  return :final_cut_pro if is_final_cut_pro?
  return :itunes if is_itunes?
  return :plist if is_plist?
  return :unknown
end