E
- public class StoreObjectListDataAdapter<E extends LabeledIDEvent> extends java.lang.Object implements ObjectListDataAdapter<E>
Constructor and Description |
---|
StoreObjectListDataAdapter() |
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.
|
java.util.List<JPhyloIOEvent> |
getObjectContent(java.lang.String id) |
org.apache.commons.collections4.map.ListOrderedMap<java.lang.String,StoreObjectData<E>> |
getObjectMap() |
E |
getObjectStartEvent(ReadWriteParameterMap parameters,
java.lang.String id)
Returns the start event of an object determined by the specified object ID.
|
void |
setObjectStartEvent(E event) |
void |
writeContentData(ReadWriteParameterMap parameters,
JPhyloIOEventReceiver receiver,
java.lang.String id)
Writes the nested events in the specified object describing its contents.
|
public StoreObjectListDataAdapter()
public org.apache.commons.collections4.map.ListOrderedMap<java.lang.String,StoreObjectData<E>> getObjectMap()
public E getObjectStartEvent(ReadWriteParameterMap parameters, java.lang.String id) throws java.lang.IllegalArgumentException
ObjectListDataAdapter
getObjectStartEvent
in interface ObjectListDataAdapter<E extends 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 void setObjectStartEvent(E event) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.List<JPhyloIOEvent> getObjectContent(java.lang.String id)
public long getCount(ReadWriteParameterMap parameters)
ObjectListDataAdapter
ObjectListDataAdapter.getIDIterator(ReadWriteParameterMap)
.getCount
in interface ObjectListDataAdapter<E extends 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<E extends 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<E extends 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 specified