project35.metaData
Class DocumentMetaDataConverter
java.lang.Object
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.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentMetaDataConverter
public DocumentMetaDataConverter(Project35FormContext metaDataFormContext)
convertToProject35DataStructures
public RecordModel convertToProject35DataStructures(DocumentMetaData documentMetaData,
RecordModel rootDataLayerRecordModel)
convertToProject35MetaDataStructures
public DocumentMetaData convertToProject35MetaDataStructures(java.lang.String fileName,
RecordModel project35MetaData)
createOntologyTermRecord
public RecordModel createOntologyTermRecord(OntologyTermProvenance ontologyTermProvenance)
populateOntologyTermRecords
public void populateOntologyTermRecords(OntologyTermProvenanceManager ontologyTermProvenanceManager,
java.lang.String recordClassName,
RecordModel fieldMetaData)