uk.ac.ebi.jmzidml.xml.jaxb.adapters
Class AbstractResolvingAdapter<ValueType,BoundType>

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
      extended by uk.ac.ebi.jmzidml.xml.jaxb.adapters.AbstractResolvingAdapter<ValueType,BoundType>
Direct Known Subclasses:
AnalysisSoftwareAdapter, CvAdapter, DBSequenceAdapter, MassTableAdapter, MeasureAdapter, OrganizationAdapter, PeptideAdapter, PeptideEvidenceAdapter, ProteinDetectionListAdapter, ProteinDetectionProtocolAdapter, SampleAdapter, SearchDatabaseAdapter, SpectraDataAdapter, SpectrumIdentificationListAdapter, SpectrumIdentificationProtocolAdapter, TranslationTableAdapter

public abstract class AbstractResolvingAdapter<ValueType,BoundType>
extends javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>


Field Summary
protected  AdapterObjectCache cache
           
protected  MzIdentMLIndexer index
           
protected static org.apache.log4j.Logger logger
           
protected  boolean useSpectrumCache
           
 
Constructor Summary
protected AbstractResolvingAdapter(MzIdentMLIndexer index, AdapterObjectCache cache)
          the presence of a constructor forces all subclasses to provide a valid indexer for reference resolving.
protected AbstractResolvingAdapter(MzIdentMLIndexer index, AdapterObjectCache cache, boolean aUseSpectrumCache)
           
 
Method Summary
<BoundType>
BoundType
unmarshal(String refId, Constants.ReferencedType refType)
           
 
Methods inherited from class javax.xml.bind.annotation.adapters.XmlAdapter
marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

index

protected MzIdentMLIndexer index

cache

protected AdapterObjectCache cache

useSpectrumCache

protected boolean useSpectrumCache
Constructor Detail

AbstractResolvingAdapter

protected AbstractResolvingAdapter(MzIdentMLIndexer index,
                                   AdapterObjectCache cache)
the presence of a constructor forces all subclasses to provide a valid indexer for reference resolving. This will also prevent jaxb from using the no-argument constructor versions of these Adapters.

Parameters:
index -

AbstractResolvingAdapter

protected AbstractResolvingAdapter(MzIdentMLIndexer index,
                                   AdapterObjectCache cache,
                                   boolean aUseSpectrumCache)
Method Detail

unmarshal

public <BoundType> BoundType unmarshal(String refId,
                                       Constants.ReferencedType refType)


Copyright © 2012. All Rights Reserved.