public class StoreDocumentDataAdapter extends StoreAnnotatedDataAdapter<ConcreteJPhyloIOEvent> implements DocumentDataAdapter
Constructor and Description |
---|
StoreDocumentDataAdapter()
Creates a new instance of this class with empty array lists for all properties.
|
StoreDocumentDataAdapter(List<JPhyloIOEvent> annotations,
OrderedMap<String,OTUListDataAdapter> otusMap,
List<MatrixDataAdapter> matrices,
List<TreeNetworkGroupDataAdapter> treeNetworkGroups) |
Modifier and Type | Method and Description |
---|---|
List<MatrixDataAdapter> |
getMatrices() |
Iterator<MatrixDataAdapter> |
getMatrixIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all matrices contained in the document
to be written.
|
OTUListDataAdapter |
getOTUList(ReadWriteParameterMap parameters,
String id)
Returns the OTU list referenced by the specified ID.
|
long |
getOTUListCount(ReadWriteParameterMap parameters)
Returns the number of OTU lists provided by this document adapter.
|
Iterator<OTUListDataAdapter> |
getOTUListIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all OTU lists contained in the document
to be written.
|
OrderedMap<String,OTUListDataAdapter> |
getOTUListsMap() |
Iterator<TreeNetworkGroupDataAdapter> |
getTreeNetworkGroupIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all trees and network groups contained in the
document to be written.
|
List<TreeNetworkGroupDataAdapter> |
getTreesNetworks() |
getAnnotations, writeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeMetadata
public StoreDocumentDataAdapter(List<JPhyloIOEvent> annotations, OrderedMap<String,OTUListDataAdapter> otusMap, List<MatrixDataAdapter> matrices, List<TreeNetworkGroupDataAdapter> treeNetworkGroups)
public StoreDocumentDataAdapter()
Using this constructor is equivalent to calling #StoreDocumentDataAdapter(List, List, List)
with only null
arguments.
public OrderedMap<String,OTUListDataAdapter> getOTUListsMap()
public List<MatrixDataAdapter> getMatrices()
public List<TreeNetworkGroupDataAdapter> getTreesNetworks()
public Iterator<OTUListDataAdapter> getOTUListIterator(ReadWriteParameterMap parameters)
DocumentDataAdapter
getOTUListIterator
in interface DocumentDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)public long getOTUListCount(ReadWriteParameterMap parameters)
DocumentDataAdapter
getOTUListCount
in interface DocumentDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestDocumentDataAdapter.getOTUListIterator(ReadWriteParameterMap)
public OTUListDataAdapter getOTUList(ReadWriteParameterMap parameters, String id) throws IllegalArgumentException
DocumentDataAdapter
getOTUList
in interface DocumentDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestid
- the ID of the OTU list to be returnedIllegalArgumentException
- if no OTU list with the specified ID is availablepublic Iterator<MatrixDataAdapter> getMatrixIterator(ReadWriteParameterMap parameters)
DocumentDataAdapter
getMatrixIterator
in interface DocumentDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)public Iterator<TreeNetworkGroupDataAdapter> getTreeNetworkGroupIterator(ReadWriteParameterMap parameters)
DocumentDataAdapter
getTreeNetworkGroupIterator
in interface DocumentDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)