class: METSTransformation

public class: METSTransformation
Author: kleinfe1
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:20:52; Modified: 16.07.2009 15:20:52;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {2F096CA1-59DD-4d76-AD68-A279B5C8B29C}
This class provides METS transformation for a escidoc objects.
 

Goto: Custom Properties, Fields, Methods

See also: DataGathering, Login, WriteMETSData

Appears in: mets

Connections
 
Custom Properties
 
METSTransformation Attributes
Attribute Details
private String
  baseURL
Initial: null
private String
  currentLogicalMetsDivId
private DataGathering
  dataGathering
annotations=@EJB
private int
  divCounter
Initial: 1
private int
  dmdIdCounter
Initial: 0
Notes: idCounters
private Logger
  logger
Initial: Logger.getLogger(getClass())
private Login
  login
Initial: new Login()
private WriteMETSData
  writeMETS
Initial: new WriteMETSData()
 
METSTransformation Methods
Operation Details
private
createAmdSec(
   TocDocument tocDoc):void
Sequential
Notes: Gets the escidoc:toc values for mets amd section.
@param escidocToc
private
createDmdSec(
   TocDocument tocDoc):void
Sequential
Tags: throws=RuntimeException
Notes: Gets the escidoc:toc values for the first mets dmd section (from the book container).
@param escidocTocItem
private
createLogicals(
   TocDocument tocDoc):void
Sequential
Tags: throws=RuntimeException
Notes: Creates the logical part of the struct map
@param escidocToc @ throws RuntimeException
private
createLogicalStructMapRec(
   Div tocDiv,
   DivType metsDivParent):void
Sequential
Notes: Recursive helper method in order to create the logical part of the METS struct map from the escidoc TOC.
private
createPhysicals(
   TocDocument tocDoc):void
Sequential
Tags: throws=RuntimeException
Notes: Gets the escidoc:toc values for mets file section and physical structMap.
@param escidocToc
private
getBaseUrl():void
Sequential
private
getTocDoc(
   ItemDocument itemTocDoc):TocDocument
Sequential
Notes: Retrieves the toc as the component of the item
@return
public
METSTransformation():
Sequential
Notes: Public Constructor METSTransformation.
private
retrieveMods(
   String containerId):ModsType
Sequential
public
transformToMETS(
   String escidocTocItem):byte
Sequential
Tags: throws=RuntimeException
Notes: transform To METS.
@param eScidocId the id of the escidoc object which has to be transformed
@return MetsDocument