FileDocCategorySizeDatePackage
GeneratedFileInfo.javaAPI DocApache Axis 1.45922Sat Apr 22 18:57:28 BST 2006org.apache.axis.wsdl.toJava

GeneratedFileInfo

public class GeneratedFileInfo extends Object
File info available after emit to describe what exactly was created by the Emitter.
author
Tom Jordahl (tomj@macromedia.com)

Fields Summary
protected ArrayList
list
Field list
Constructors Summary
public GeneratedFileInfo()
Construct an empty file info list.

    
Methods Summary
public voidadd(java.lang.String name, java.lang.String className, java.lang.String type)
Add an entry

param
name
param
className
param
type

        list.add(new Entry(name, className, type));
    
public org.apache.axis.wsdl.toJava.GeneratedFileInfo$EntryfindClass(java.lang.String className)
Lookup an entry by class name

param
class name you want info about
param
className
return
The entry for the class specified. Null if not found


        // look at each entry for the type we want
        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry e = (Entry) i.next();

            if (e.className.equals(className)) {
                return e;
            }
        }

        return null;
    
public org.apache.axis.wsdl.toJava.GeneratedFileInfo$EntryfindName(java.lang.String fileName)
Lookup an entry by file name

param
file name you want info about
param
fileName
return
The entry for the file name specified. Null if not found


        // look at each entry for the type we want
        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry e = (Entry) i.next();

            if (e.fileName.equals(fileName)) {
                return e;
            }
        }

        return null;
    
public java.util.ListfindType(java.lang.String type)
Lookup an entry by type.
Valid type values are: stub, interface, complexType, enumType, fault, holder, skeleton, skeletonImpl, service, deploy, undeploy, testCase

param
type of objects you want info about
return
A list of org.apache.axis.wsdl.toJava.GeneratedFileInfo.Entry objects. Null if no objects found.


        // look at each entry for the type we want
        ArrayList ret = null;

        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry e = (Entry) i.next();

            if (e.type.equals(type)) {
                if (ret == null) {
                    ret = new ArrayList();
                }

                ret.add(e);
            }
        }

        return ret;
    
public java.util.ListgetClassNames()
Get the list of generated classes

return


        // is there a better way to do this?
        ArrayList ret = new ArrayList(list.size());

        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry e = (Entry) i.next();

            ret.add(e.className);
        }

        return ret;
    
public java.util.ListgetFileNames()
Get the list of generated filenames

return


        // is there a better way to do this?
        ArrayList ret = new ArrayList(list.size());

        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry e = (Entry) i.next();

            ret.add(e.fileName);
        }

        return ret;
    
public java.util.ListgetList()
Return the entire list of generated files

return

        return list;
    
public java.lang.StringtoString()
Convert all entries in the list to a string

return


        String s = "";

        for (Iterator i = list.iterator(); i.hasNext();) {
            Entry entry = (Entry) i.next();

            s += entry.toString() + "\n";
        }

        return s;