Class: Libis::Tools::MetsFile::Map

Inherits:
Object
  • Object
show all
Includes:
MetsObject
Defined in:
lib/libis/tools/mets_objects.rb

Overview

Container class for creating a structmap in the METS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MetsObject

#id, #initialize, #set_from_hash, #set_id, #to_s

Instance Attribute Details

#divObject

The top division in the structmap



533
534
535
# File 'lib/libis/tools/mets_objects.rb', line 533

def div
  @div
end

#is_logicalObject

Is the structmap Logical (true) or Physical(false)?



535
536
537
# File 'lib/libis/tools/mets_objects.rb', line 535

def is_logical
  @is_logical
end

#representationObject

The representation this structmap is for



531
532
533
# File 'lib/libis/tools/mets_objects.rb', line 531

def representation
  @representation
end

Instance Method Details

#xml_idObject

The id that will be used in the XML file to reference this structmap.



538
539
540
# File 'lib/libis/tools/mets_objects.rb', line 538

def xml_id
  "smap-#{@id}"
end