public class StoreOTUListDataAdapter extends StoreAnnotatedDataAdapter<LabeledIDEvent> implements OTUListDataAdapter
Constructor and Description |
---|
StoreOTUListDataAdapter(LabeledIDEvent listStartEvent,
java.util.List<JPhyloIOEvent> annotations) |
Modifier and Type | Method and Description |
---|---|
long |
getCount(ReadWriteParameterMap parameters)
Returns the number of objects to be returned by
ObjectListDataAdapter.getIDIterator(ReadWriteParameterMap) . |
java.util.Iterator<java.lang.String> |
getIDIterator(ReadWriteParameterMap parameters)
Returns an iterator returning the IDs of all objects contained in the list modeled by this instance.
|
LabeledIDEvent |
getObjectStartEvent(ReadWriteParameterMap parameters,
java.lang.String id)
Returns the start event of an object determined by the specified object ID.
|
StoreObjectListDataAdapter<LabeledIDEvent> |
getOtus() |
StoreObjectListDataAdapter<LinkedLabeledIDEvent> |
getOTUSets(ReadWriteParameterMap parameters)
Returns a list of OTU sets defined for the OTU list modeled by this instance.
|
LabeledIDEvent |
getStartEvent(ReadWriteParameterMap parameters)
Returns the start event of this data element.
|
void |
setListStartEvent(LabeledIDEvent listStartEvent) |
void |
writeContentData(ReadWriteParameterMap parameters,
JPhyloIOEventReceiver receiver,
java.lang.String id)
Writes the nested events in the specified object describing its contents.
|
getAnnotations, writeMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeMetadata
public StoreOTUListDataAdapter(LabeledIDEvent listStartEvent, java.util.List<JPhyloIOEvent> annotations)
public LabeledIDEvent getStartEvent(ReadWriteParameterMap parameters)
ElementDataAdapter
getStartEvent
in interface ElementDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestpublic void setListStartEvent(LabeledIDEvent listStartEvent)
public StoreObjectListDataAdapter<LabeledIDEvent> getOtus()
public LabeledIDEvent getObjectStartEvent(ReadWriteParameterMap parameters, java.lang.String id) throws java.lang.IllegalArgumentException
ObjectListDataAdapter
getObjectStartEvent
in interface ObjectListDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestid
- the ID of the requested objectjava.lang.IllegalArgumentException
- if no to object for the specified ID is presentpublic long getCount(ReadWriteParameterMap parameters)
ObjectListDataAdapter
ObjectListDataAdapter.getIDIterator(ReadWriteParameterMap)
.getCount
in interface ObjectListDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestpublic java.util.Iterator<java.lang.String> getIDIterator(ReadWriteParameterMap parameters)
ObjectListDataAdapter
getIDIterator
in interface ObjectListDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestnull
.)public void writeContentData(ReadWriteParameterMap parameters, JPhyloIOEventReceiver receiver, java.lang.String id) throws java.io.IOException, java.lang.IllegalArgumentException
ObjectListDataAdapter
writeContentData
in interface ObjectListDataAdapter<LabeledIDEvent>
parameters
- the parameter map of the calling writer that provides context information for the data requestreceiver
- the receiver for the eventsjava.io.IOException
- if a I/O error occurs while writing the datajava.lang.IllegalArgumentException
- if an unknown ID was specifiedpublic StoreObjectListDataAdapter<LinkedLabeledIDEvent> getOTUSets(ReadWriteParameterMap parameters)
OTUListDataAdapter
getOTUSets
in interface OTUListDataAdapter
parameters
- the parameter map of the calling writer that provides context information for the data request