com.ibm.jtopenlite.components
Class ListObjects

java.lang.Object
  extended by com.ibm.jtopenlite.components.ListObjects

public class ListObjects
extends Object

Represents the information returned by the WRKOBJ command, but uses the OpenListOfObjects classes to obtain it.


Constructor Summary
ListObjects()
           
 
Method Summary
 ObjectInfo[] getObjects(CommandConnection conn, String name, String library, String type)
          Returns an array of objects, sorted by library list order and object name, the way WRKOBJ does.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListObjects

public ListObjects()
Method Detail

getObjects

public ObjectInfo[] getObjects(CommandConnection conn,
                               String name,
                               String library,
                               String type)
                        throws IOException
Returns an array of objects, sorted by library list order and object name, the way WRKOBJ does. ObjectInfo.toString() prints the fields the way WRKJOB does.

Parameters:
conn - The connection to use.
name - The object name for which to search. For example, "CRT*".
library - The library name in which to search. For example, "*LIBL".
type - The object type for which to search. For example, "*CMD".
Throws:
IOException