/**********************************************************************
* Copyright (c) 2009 by the President and Fellows of Harvard College
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Contact information
*
* Office for Information Systems
* Harvard University Library
* Harvard University
* Cambridge, MA 02138
* (617)495-3724
* hulois@hulmail.harvard.edu
**********************************************************************/
package edu.harvard.hul.ois.fits;
import edu.harvard.hul.ois.ots.schemas.TextMD.CharacterInfo;
import edu.harvard.hul.ois.ots.schemas.TextMD.MarkupBasis;
import edu.harvard.hul.ois.ots.schemas.TextMD.MarkupLanguage;
import edu.harvard.hul.ois.ots.schemas.TextMD.TextMD;
public class TextMDModel {
protected TextMD textMD;
protected MarkupLanguage ml;
protected MarkupBasis mb;
protected CharacterInfo ci;
protected TextMDModel () {
textMD = new TextMD ();
ml = null;
}
protected void attachMarkupLanguage () {
if (ml == null) {
ml = new MarkupLanguage ();
textMD.addMarkupLanguage(ml);
}
}
protected void attachMarkupBasis () {
if (mb == null) {
mb = new MarkupBasis ();
textMD.addMarkupBasis(mb);
}
}
protected void attachCharacterInfo () {
if (ci == null) {
ci = new CharacterInfo ();
textMD.addCharacterInfo(ci);
}
}
}