public interface DocumentDataAdapter extends AnnotatedDataAdapter
JPhyloIOEventWriter
s. Implementations model a document
containing phylogenetic data, consisting of taxon lists, character matrices and trees or networks.
Application developers need to implement this and one or more of the references interfaces with an adapter
class, that allows JPhyloIOEventWriter
s to access the business model of their application.
(Alternatively the business model classes of the application may also implement these interfaces directly,
if suitable.)
JPhyloIO offers a set of default implementations in
info.bioinfweb.jphyloio.dataadapters.implementations
that could be used as superclasses of
application adapter implementations, which may reduce the workload in application development.
ListBasedDocumentDataAdapter
,
JPhyloIOEventWriter
,
OTUListDataAdapter
,
MatrixDataAdapter
,
TreeNetworkDataAdapter
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<MatrixDataAdapter> |
getMatrixIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all matrices contained in the document
to be written.
|
OTUListDataAdapter |
getOTUList(ReadWriteParameterMap parameters,
java.lang.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.
|
java.util.Iterator<OTUListDataAdapter> |
getOTUListIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all OTU lists contained in the document
to be written.
|
java.util.Iterator<TreeNetworkGroupDataAdapter> |
getTreeNetworkGroupIterator(ReadWriteParameterMap parameters)
Returns an iterator providing access to all trees and network groups contained in the
document to be written.
|
writeMetadata
java.util.Iterator<OTUListDataAdapter> getOTUListIterator(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)long getOTUListCount(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requestgetOTUListIterator(ReadWriteParameterMap)
OTUListDataAdapter getOTUList(ReadWriteParameterMap parameters, java.lang.String id) throws java.lang.IllegalArgumentException
parameters
- the parameter map of the calling writer that provides context information for the data requestid
- the ID of the OTU list to be returnedjava.lang.IllegalArgumentException
- if no OTU list with the specified ID is availablejava.util.Iterator<MatrixDataAdapter> getMatrixIterator(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)java.util.Iterator<TreeNetworkGroupDataAdapter> getTreeNetworkGroupIterator(ReadWriteParameterMap parameters)
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)