spok
Class JcampToCMLSpectrumMapper

java.lang.Object
  extended by spok.JcampToCMLSpectrumMapper

public class JcampToCMLSpectrumMapper
extends java.lang.Object

Maps a JCamp spectrum to a CMLSpectrum. N.B. This class was lifted from bioclipse 2007-04-24. This is regrettable, but the spok functionality now has no existence independent of bioclipse, which drags in far too many dependencies.

Author:
Tobias Helmus

Constructor Summary
JcampToCMLSpectrumMapper()
           
 
Method Summary
 org.xmlcml.cml.element.CMLSpectrum mapJcampToCMLSpectrum(org.jcamp.spectrum.Spectrum spectrum)
          Main method, responsible for calling the mapping methods and setting general settings
 java.lang.String sanitize(java.lang.String key)
          Ensures the output has the pattern "[A-Za-z][A-Za-z0-9_\.\-]*".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcampToCMLSpectrumMapper

public JcampToCMLSpectrumMapper()
Method Detail

mapJcampToCMLSpectrum

public org.xmlcml.cml.element.CMLSpectrum mapJcampToCMLSpectrum(org.jcamp.spectrum.Spectrum spectrum)
Main method, responsible for calling the mapping methods and setting general settings

Parameters:
spectrum - the JCamp spectrum
Returns:
the CMLSpectrum element

sanitize

public java.lang.String sanitize(java.lang.String key)
Ensures the output has the pattern "[A-Za-z][A-Za-z0-9_\.\-]*".

Parameters:
key -
Returns:


Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.