Class DocumentMetaDataConverter

  extended by project35.metaData.DocumentMetaDataConverter

public class DocumentMetaDataConverter
extends java.lang.Object

converts Project35's native meta data structures into a record tree that can be written out with one of Project35's normal writers. So instead of having DocumentMetaData, RecordMetaData and OntologyTermProvenance, the data are recast as RecordModel objects with record class name "project35_meta_data", "record", "field", "ontology_term" etc. all of this is done so that it can be read out and marshalled using Project35's existing IO classes.

Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.

Kevin Garwood (

Constructor Summary
DocumentMetaDataConverter(Project35FormContext metaDataFormContext)
Method Summary
 RecordModel convertToProject35DataStructures(DocumentMetaData documentMetaData, RecordModel rootDataLayerRecordModel)
 DocumentMetaData convertToProject35MetaDataStructures(java.lang.String fileName, RecordModel project35MetaData)
 RecordModel createOntologyTermRecord(OntologyTermProvenance ontologyTermProvenance)
 void populateOntologyTermRecords(OntologyTermProvenanceManager ontologyTermProvenanceManager, java.lang.String recordClassName, RecordModel fieldMetaData)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DocumentMetaDataConverter(Project35FormContext metaDataFormContext)
Method Detail


public RecordModel convertToProject35DataStructures(DocumentMetaData documentMetaData,
                                                    RecordModel rootDataLayerRecordModel)


public DocumentMetaData convertToProject35MetaDataStructures(java.lang.String fileName,
                                                             RecordModel project35MetaData)


public RecordModel createOntologyTermRecord(OntologyTermProvenance ontologyTermProvenance)


public void populateOntologyTermRecords(OntologyTermProvenanceManager ontologyTermProvenanceManager,
                                        java.lang.String recordClassName,
                                        RecordModel fieldMetaData)