ome.services.export
Class ExporterStepFactory

java.lang.Object
  extended by ome.services.export.ExporterStepFactory
All Implemented Interfaces:
GraphStepFactory

public class ExporterStepFactory
extends Object
implements GraphStepFactory

Counter which can be passed into the GraphState constructor and later used during export. As calls to create(int, List, GraphSpec, GraphEntry, long[]) are made, the factory keeps links to several object types. After GraphState initialization, the other methods on the factory can be used to load the objects based on their index.

Since:
Beta4.2.3
Author:
Josh Moore, josh at glencoesoftware.com

Constructor Summary
ExporterStepFactory(Executor ex, Principal p)
           
 
Method Summary
 GraphStep create(int idx, List<GraphStep> stack, GraphSpec spec, GraphEntry entry, long[] ids)
           
 int getCount(String name)
           
<T extends ome.model.IObject>
T
getObject(String name, int order)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExporterStepFactory

public ExporterStepFactory(Executor ex,
                           Principal p)
Method Detail

create

public GraphStep create(int idx,
                        List<GraphStep> stack,
                        GraphSpec spec,
                        GraphEntry entry,
                        long[] ids)
                 throws GraphException
Specified by:
create in interface GraphStepFactory
Parameters:
idx - Index which is being assigned to this step.
stack - Non-null stack of other steps which precede this one in the graph.
spec - Non-null GraphSpec which was used to define this step.
entry - Non-null GraphEntry which was used to define this step.
ids - Non-null, non-empty array of ids which were found for this GraphStep
Returns:
some specific GraphStep implementation which will permit arbitrary operations on all the nodes of the graph.
Throws:
GraphException

getCount

public int getCount(String name)

getObject

public <T extends ome.model.IObject> T getObject(String name,
                                                 int order)
                                      throws GraphException
Throws:
GraphException


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.