public class EmptyObjectListDataAdapter<E extends JPhyloIOEvent> extends java.lang.Object implements ObjectListDataAdapter<E>
ObjectListDataAdapter. Can be used by applications
that do not model any of the according objects.| Modifier and Type | Field and Description |
|---|---|
static EmptyObjectListDataAdapter |
SHARED_EMPTY_OBJECT_LIST_ADAPTER |
| Constructor and Description |
|---|
EmptyObjectListDataAdapter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount(ReadWriteParameterMap parameters)
This default implementation always returns 0.
|
java.util.Iterator<java.lang.String> |
getIDIterator(ReadWriteParameterMap parameters)
This default implementation always returns an empty iterator.
|
E |
getObjectStartEvent(ReadWriteParameterMap parameters,
java.lang.String id)
Returns the start event of an object determined by the specified object ID.
|
void |
writeContentData(ReadWriteParameterMap parameters,
JPhyloIOEventReceiver receiver,
java.lang.String id)
Always throws an
IllegalArgumentException, since this default implementation does not contain
any objects. |
public static final EmptyObjectListDataAdapter SHARED_EMPTY_OBJECT_LIST_ADAPTER
public EmptyObjectListDataAdapter()
public E getObjectStartEvent(ReadWriteParameterMap parameters, java.lang.String id) throws java.lang.IllegalArgumentException
ObjectListDataAdaptergetObjectStartEvent in interface ObjectListDataAdapter<E extends JPhyloIOEvent>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)
getCount in interface ObjectListDataAdapter<E extends JPhyloIOEvent>parameters - the parameter map of the calling writer that provides context information for the data requestObjectListDataAdapter.getCount(ReadWriteParameterMap)public java.util.Iterator<java.lang.String> getIDIterator(ReadWriteParameterMap parameters)
getIDIterator in interface ObjectListDataAdapter<E extends JPhyloIOEvent>parameters - the parameter map of the calling writer that provides context information for the data requestObjectListDataAdapter.getIDIterator(ReadWriteParameterMap)public void writeContentData(ReadWriteParameterMap parameters, JPhyloIOEventReceiver receiver, java.lang.String id) throws java.io.IOException, java.lang.IllegalArgumentException
IllegalArgumentException, since this default implementation does not contain
any objects.writeContentData in interface ObjectListDataAdapter<E extends JPhyloIOEvent>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 specifiedObjectListDataAdapter.writeContentData(ReadWriteParameterMap, info.bioinfweb.jphyloio.dataadapters.JPhyloIOEventReceiver, java.lang.String)