gov.nih.nci.cagrid.wsenum.utils
Class EnumIteratorFactory

java.lang.Object
  extended by gov.nih.nci.cagrid.wsenum.utils.EnumIteratorFactory

public class EnumIteratorFactory
extends java.lang.Object

EnumIteratorFactory Creates instances of EnumIterator implementations

Version:
$Id: EnumIteratorFactory.java,v 1.3 2007/12/17 19:18:38 dervin Exp $
Author:
David Ervin

Constructor Summary
EnumIteratorFactory()
           
 
Method Summary
static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType, java.util.Iterator objectIter, javax.xml.namespace.QName objectQName, java.io.InputStream wsddInput)
          Serializes a List of caCORE SDK generated objects to a temp file on the local disk, then creates an EnumIterator which can return those objects.
static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType, java.util.Iterator objectIter, javax.xml.namespace.QName objectQName, java.io.InputStream wsddInput, java.lang.String tempFilename)
          Serializes a List of caCORE SDK generated objects to a specified file on the local disk, then creates an EnumIterator which can return those objects.
static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType, java.util.List objects, javax.xml.namespace.QName objectQName, java.io.InputStream wsddInput)
           
static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType, java.util.List objects, javax.xml.namespace.QName objectQName, java.io.InputStream wsddInput, java.lang.String tempFilename)
          Serializes a List of caCORE SDK generated objects to a specified file on the local disk, then creates an EnumIterator which can return those objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumIteratorFactory

public EnumIteratorFactory()
Method Detail

createIterator

public static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType,
                                                                    java.util.List objects,
                                                                    javax.xml.namespace.QName objectQName,
                                                                    java.io.InputStream wsddInput)
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

createIterator

public static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType,
                                                                    java.util.Iterator objectIter,
                                                                    javax.xml.namespace.QName objectQName,
                                                                    java.io.InputStream wsddInput)
                                                             throws java.lang.Exception
Serializes a List of caCORE SDK generated objects to a temp file on the local disk, then creates an EnumIterator which can return those objects. NOTE: The temp file is created in the current user's home directory /.cagrid/SDKEnumIterator directory. For security reasons, access to this location must be controlled in a production data environment.

Parameters:
objectIter - An iterator to a collection of caCORE SDK objects to be enumerated
objectQName - The QName of the objects
wsddInput - An input stream to the WSDD configuration file
Returns:
An enum iterator instance to iterate the given objects
Throws:
java.lang.Exception

createIterator

public static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType,
                                                                    java.util.List objects,
                                                                    javax.xml.namespace.QName objectQName,
                                                                    java.io.InputStream wsddInput,
                                                                    java.lang.String tempFilename)
                                                             throws java.lang.Exception
Serializes a List of caCORE SDK generated objects to a specified file on the local disk, then creates an EnumIterator which can return those objects.

Parameters:
objects - The list of caCORE SDK objects to be enumerated
objectQName - The QName of the objects
tempFilename - The name of the file to serialize objects into. NOTE: For security reasons, access to this location must be controlled in a production data environment.
wsddInput - An input stream of the WSDD configuration file
Returns:
An enum iterator instance to iterate the given objects
Throws:
java.lang.Exception

createIterator

public static org.globus.ws.enumeration.EnumIterator createIterator(IterImplType iterType,
                                                                    java.util.Iterator objectIter,
                                                                    javax.xml.namespace.QName objectQName,
                                                                    java.io.InputStream wsddInput,
                                                                    java.lang.String tempFilename)
                                                             throws java.lang.Exception
Serializes a List of caCORE SDK generated objects to a specified file on the local disk, then creates an EnumIterator which can return those objects.

Parameters:
objectIter - An iterator to a collection of caCORE SDK objects to be enumerated
objectQName - The QName of the objects
tempFilename - The name of the file to serialize objects into. NOTE: For security reasons, access to this location must be controlled in a production data environment.
wsddInput - An input stream of the WSDD configuration file
Returns:
An enum iterator instance to iterate the given objects
Throws:
java.lang.Exception