You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/05/14 20:35:02 UTC

svn commit: r1103180 [2/23] - in /incubator/airavata/donations/ogce-donation: ./ modules/ modules/utils/ modules/utils/schemas/ modules/utils/schemas/gfac-schema-utils/ modules/utils/schemas/gfac-schema-utils/generated/ modules/utils/schemas/gfac-schem...

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/BasicTypes.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/BasicTypes.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/BasicTypes.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/BasicTypes.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,150 @@
+<!--
+/*
+ * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the licence.
+ *
+ * $Id: BasicTypes.xsd,v 1.4.2.1 2006/06/08 15:48:54 gkandasw Exp $
+ */
+
+/**
+ * @version $Revision: 1.4.2.1 $
+ * @author Gopi Kandaswamy [mailto:gkandasw@cs.indiana.edu]
+ */
+ -->
+
+<schema targetNamespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns:gFac="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+
+    <!-- FIXME: Must be extended to include soft-state lifetime management -->
+    <complexType name="securityPolicyType">
+        <sequence>
+            <element name="groupName" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="userName" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="lifeTime" type="xsd:duration" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="nameValuePairType">
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <!-- Most basic information about some important packages. This may be
+    only used as metadata as of now -->
+    <complexType name="packageType">
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+
+            <!-- Version number for this package -->
+            <element name="version" type="xsd:string" minOccurs="0" maxOccurs="1" />
+
+            <!-- Root directory of the package on this host -->
+            <element name="home" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+
+            <!-- A short description of the package -->
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
+
+            <!-- The dependencies of this package -->
+            <element name="dependency" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded" />
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <element name="anyMetadata" type="xsd:anyType"/>
+
+    <complexType name="authorInfoType">
+        <sequence>
+            <element name="author" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="modificationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+            <element name="organization" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="address" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="contactInfo" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="documentInfoType">
+        <sequence>
+            <element name="documentName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="creationDate" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
+            <element name="documentDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+</schema>
+<!--
+/*
+ * Indiana University Extreme! Lab Software License, Version 1.2
+ *
+ * Copyright (c) 2002-2004 The Trustees of Indiana University.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * 1) All redistributions of source code must retain the above
+ *    copyright notice, the list of authors in the original source
+ *    code, this list of conditions and the disclaimer listed in this
+ *    license;
+ *
+ * 2) All redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the disclaimer
+ *    listed in this license in the documentation and/or other
+ *    materials provided with the distribution;
+ *
+ * 3) Any documentation included with all redistributions must include
+ *    the following acknowledgement:
+ *
+ *      "This product includes software developed by the Indiana
+ *      University Extreme! Lab.  For further information please visit
+ *      http://www.extreme.indiana.edu/"
+ *
+ *    Alternatively, this acknowledgment may appear in the software
+ *    itself, and wherever such third-party acknowledgments normally
+ *    appear.
+ *
+ * 4) The name "Indiana University" or "Indiana University
+ *    Extreme! Lab" shall not be used to endorse or promote
+ *    products derived from this software without prior written
+ *    permission from Indiana University.  For written permission,
+ *    please contact http://www.extreme.indiana.edu/.
+ *
+ * 5) Products derived from this software may not use "Indiana
+ *    University" name nor may "Indiana University" appear in their name,
+ *    without prior written permission of the Indiana University.
+ *
+ * Indiana University provides no reassurances that the source code
+ * provided does not infringe the patent or any other intellectual
+ * property rights of any other entity.  Indiana University disclaims any
+ * liability to any recipient for claims brought by any other entity
+ * based on infringement of intellectual property rights or otherwise.
+ *
+ * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
+ * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+ * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+ * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+ * OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+ * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+ * DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+ * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+ * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+ * SOFTWARE.
+ */
+ -->

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/HostDescription.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/HostDescription.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/HostDescription.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/HostDescription.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,159 @@
+<!--
+/*
+ * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the licence.
+ *
+ * $Id: HostDescription.xsd,v 1.5 2006/04/26 21:24:08 gkandasw Exp $
+ */
+
+/**
+ * @version $Revision: 1.5 $
+ * @author Gopi Kandaswamy [mailto:gkandasw@cs.indiana.edu]
+ */
+ -->
+
+<schema targetNamespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns:gFac="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<import namespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac" schemaLocation="BasicTypes.xsd"></import>
+
+    <element name="HostDescription" type="gFac:hostDescriptionType"/>
+
+    <complexType name="hostDescriptionType">
+        <sequence>
+            <element name="authorInfo" type="gFac:authorInfoType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="documentInfo" type="gFac:documentInfoType" minOccurs="0" maxOccurs="1"/>
+            <element name="hostName" type="xsd:string" minOccurs="1" maxOccurs="1" />
+            <element name="hostConfiguration" type="gFac:hostConfigurationType" minOccurs="1" maxOccurs="1" />
+        </sequence>
+    </complexType>
+
+    <complexType name="hostConfigurationType">
+        <sequence>
+            <!-- This is the path to the GFac installation -->
+            <element name="gFacPath" type="xsd:string" minOccurs="1" maxOccurs="1" />
+
+            <!-- Temporary directory on this host -->
+            <element name="tmpDir" type="xsd:string" minOccurs="1" maxOccurs="1" />
+
+            <!-- Port range to start the service -->
+            <element name="portRange" type="gFac:portRangeType" minOccurs="0" maxOccurs="1" />
+
+            <!-- JAVA -->
+            <element name="java" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded" />
+
+            <!-- Other packages -->
+            <element name="package" type="gFac:packageType" minOccurs="0" maxOccurs="unbounded" />
+
+            <!-- This can be used to pass env variables to the service
+            or application at startup. Unused as of now -->
+            <element name="hostEnv" type="gFac:nameValuePairType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="globusGatekeeper" type="gFac:globusGatekeeperType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="gridFTP" type="gFac:gridFTPType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="sshEnabled" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="globusGatekeeperType" >
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="endPointReference" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
+            <element name="jobmanagertype" type="gFac:globusJobManagerType" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+        <attribute name="wsGram" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="gridFTPType" >
+        <sequence>
+            <element name="name" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="endPointReference" type="xsd:anyURI" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <!-- Specifies the range of ports that can be used for starting the service. If the
+    start = end, then the service will be started on the given port -->
+    <complexType name="portRangeType">
+        <sequence>
+            <element name="start" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+            <element name="end" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <simpleType name="globusJobManagerType">
+      <restriction base="xsd:string">
+        <enumeration value="PBS"/>
+        <enumeration value="SGE"/>
+        <enumeration value="FORK"/>
+        <enumeration value="LSF"/>
+        <enumeration value="MULTI"/>
+        <enumeration value="CONDOR"/>
+        <enumeration value="SPRUCE"/>
+        <enumeration value="Loadleveler"/>        
+      </restriction>
+    </simpleType>
+
+</schema>
+
+<!--
+/*
+ * Indiana University Extreme! Lab Software License, Version 1.2
+ *
+ * Copyright (c) 2002-2004 The Trustees of Indiana University.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * 1) All redistributions of source code must retain the above
+ *    copyright notice, the list of authors in the original source
+ *    code, this list of conditions and the disclaimer listed in this
+ *    license;
+ *
+ * 2) All redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the disclaimer
+ *    listed in this license in the documentation and/or other
+ *    materials provided with the distribution;
+ *
+ * 3) Any documentation included with all redistributions must include
+ *    the following acknowledgement:
+ *
+ *      "This product includes software developed by the Indiana
+ *      University Extreme! Lab.  For further information please visit
+ *      http://www.extreme.indiana.edu/"
+ *
+ *    Alternatively, this acknowledgment may appear in the software
+ *    itself, and wherever such third-party acknowledgments normally
+ *    appear.
+ *
+ * 4) The name "Indiana University" or "Indiana University
+ *    Extreme! Lab" shall not be used to endorse or promote
+ *    products derived from this software without prior written
+ *    permission from Indiana University.  For written permission,
+ *    please contact http://www.extreme.indiana.edu/.
+ *
+ * 5) Products derived from this software may not use "Indiana
+ *    University" name nor may "Indiana University" appear in their name,
+ *    without prior written permission of the Indiana University.
+ *
+ * Indiana University provides no reassurances that the source code
+ * provided does not infringe the patent or any other intellectual
+ * property rights of any other entity.  Indiana University disclaims any
+ * liability to any recipient for claims brought by any other entity
+ * based on infringement of intellectual property rights or otherwise.
+ *
+ * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
+ * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+ * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+ * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+ * OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+ * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+ * DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+ * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+ * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+ * SOFTWARE.
+ */
+ -->

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/ServiceMap.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/ServiceMap.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/ServiceMap.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/ServiceMap.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,299 @@
+<!--
+/*
+ * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the licence.
+ *
+ * $Id: ServiceMap.xsd,v 1.44.2.6 2006/06/11 20:01:40 gkandasw Exp $
+ */
+
+/**
+ * @version $Revision: 1.44.2.6 $
+ * @author Gopi Kandaswamy [mailto:gkandasw@cs.indiana.edu]
+ */
+ -->
+
+<schema targetNamespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns:gFac="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<import namespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac" schemaLocation="gfac.xsd"/>
+	<import namespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac" schemaLocation="BasicTypes.xsd"></import>
+	
+    <element name="ServiceMap" type="gFac:serviceMapType"/>
+
+    <complexType name="serviceMapType">
+        <sequence>
+            <element name="authorInfo" type="gFac:authorInfoType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="documentInfo" type="gFac:documentInfoType" minOccurs="0" maxOccurs="1"/>
+            <element name="service" type="gFac:serviceType" minOccurs="1" maxOccurs="1" />
+            <element name="portType" type="gFac:portTypeType" minOccurs="0" maxOccurs="unbounded" />
+            <!-- Security policy for this service -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0" maxOccurs="1" />
+            <element name="lifeTime" type="gFac:lifeTimeType" minOccurs="0" maxOccurs="1"/>
+            <element name="configuration" type="gFac:ConfigurationType" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="serviceType">
+        <sequence>
+            <element name="serviceName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="serviceDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="selfReplicating" type="xsd:boolean" use="optional"/>
+        <attribute name="executeLocally" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="portTypeType">
+        <sequence>
+            <element name="portName" type="xsd:QName" minOccurs="0" maxOccurs="1"/>
+            <element name="portDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="method" type="gFac:methodType" minOccurs="1" maxOccurs="unbounded" />
+
+            <!-- Security policy for this port type -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0" maxOccurs="1" />
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="methodType">
+        <sequence>
+            <element name="methodName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="methodDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+
+            <!-- The application that will be run by this method -->
+            <element name="application" type="gFac:applicationType" minOccurs="1" maxOccurs="1" />
+            <element name="inputParameter" type="gFac:inputParameterType" minOccurs="0" maxOccurs="unbounded" />
+            <element name="outputParameter" type="gFac:outputParameterType" minOccurs="0" maxOccurs="unbounded" />
+
+            <!-- Security policy for this method -->
+            <element name="securityPolicy" type="gFac:securityPolicyType" minOccurs="0" maxOccurs="1" />
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="systemDefined" type="xsd:boolean" use="optional"/>
+        <!-- specifies that output data files be staged to the client's host -->
+        <attribute name="stageOutputDataFiles" type="xsd:boolean" use="optional"/>
+        <attribute name="forceFileStagingToWorkDir" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="applicationType">
+        <sequence>
+            <element name="applicationName" minOccurs="1" maxOccurs="1">
+                <complexType>
+                    <simpleContent>
+                        <extension base="xsd:string" >
+                            <attribute name="targetNamespace" type="xsd:string" use="required"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+            <element name="applicationDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element ref="gFac:anyMetadata" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+
+        <!-- Specifies that the application must be passed only the paramValues and
+        not paramName/paramValue pairs -->
+        <attribute name="paramValuesOnly" type="xsd:boolean" use="optional"/>
+
+        <!-- Specifies that a FORTRAN NameList file be used instead of command line arguments -->
+        <attribute name="useLEADNameListFile" type="xsd:boolean" use="optional"/>
+
+        <!-- Specifies that the FORTAN NameList file must be updated with the values
+        specified in the NameList properties file. This is passed along with the
+        SOAP header -->
+        <attribute name="useLEADNameListPropertiesFile" type="xsd:boolean" use="optional"/>
+    </complexType>
+
+    <complexType name="inputParameterType">
+        <sequence>
+            <element name="parameterName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="parameterDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="parameterValue" type="gFac:parameterValueType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="parameterType" type="gFac:inputDataType" minOccurs="1" maxOccurs="1" />
+            <element name="anyMetadata" type="xsd:anyType" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+        <!-- This attribute is used by the service to generate the input element in the HTML form
+        for this parameter. For inputDataType="RemoteFile", you must specify "File" here -->
+        <attribute name="displayAs" use="optional">
+            <simpleType>
+                <restriction base="xsd:string">
+                    <enumeration value="ListBox"/>
+                    <enumeration value="RadioButton"/>
+                </restriction>
+            </simpleType>
+        </attribute>
+    </complexType>
+
+    <complexType name="outputParameterType">
+        <sequence>
+            <element name="parameterName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="parameterDescription" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="parameterType" type="gFac:outputDataType" minOccurs="1" maxOccurs="1" />
+            <!-- The regular expression that represents the pattern of the output of the
+            application. This regular expression will be used by the service to
+            search for output of the application in its stdout -->
+            <element name="regExp" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+            <element name="anyMetadata" type="xsd:anyType" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="parameterValueType">
+        <sequence>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+
+    <!-- An enumeration of supported input data types -->
+    <simpleType name="inputDataType">
+      <restriction base="xsd:string">
+        <enumeration value="String"/>
+        <enumeration value="Integer"/>
+        <enumeration value="Float"/>
+        <enumeration value="Double"/>
+        <enumeration value="Boolean"/>
+        <enumeration value="URI"/>
+        <enumeration value="StringArray"/>
+        <enumeration value="IntegerArray"/>
+        <enumeration value="FloatArray"/>
+        <enumeration value="DoubleArray"/>
+        <enumeration value="BooleanArray"/>
+        <enumeration value="URIArray"/>
+        <enumeration value="LEADFileID"/>
+        <enumeration value="LEADFileIDArray"/>
+        <enumeration value="LEADNameListFile"/>
+        <enumeration value="LEADNameListPropertiesFile"/>
+        <enumeration value="HostName"/>
+        <enumeration value="LeadCrosscutParameters"/>
+        <enumeration value="XmlElement"/>
+	    <enumeration value="DataID"/>
+        <enumeration value="DataIDArray"/>        
+      </restriction>
+    </simpleType>
+
+    <!-- An enumeration of supported output data types -->
+    <simpleType name="outputDataType">
+      <restriction base="xsd:string">
+        <enumeration value="String"/>
+        <enumeration value="Integer"/>
+        <enumeration value="Float"/>
+        <enumeration value="Double"/>
+        <enumeration value="Boolean"/>
+        <enumeration value="URI"/>
+        <enumeration value="StringArray"/>
+        <enumeration value="IntegerArray"/>
+        <enumeration value="FloatArray"/>
+        <enumeration value="DoubleArray"/>
+        <enumeration value="BooleanArray"/>
+        <enumeration value="URIArray"/>
+        <enumeration value="LEADFileID"/>
+        <enumeration value="LEADFileIDArray"/>
+        <enumeration value="StdOut"/>
+        <enumeration value="StdErr"/>
+        <enumeration value="XmlElement"/>
+        <enumeration value="DataID"/>
+        <enumeration value="DataIDArray"/>
+      </restriction>
+    </simpleType>
+
+    <complexType name="boolFlagsType">
+        <sequence>
+            <element name="value" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="doubleFlagsType">
+        <sequence>
+            <element name="value" type="xsd:double" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="stringFlagsType">
+        <sequence>
+            <element name="value" type="xsd:string" minOccurs="1" maxOccurs="1"/>
+            <element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="lifeTimeType">
+        <sequence>
+            <element name="notAfterInactiveMinutes" type="xsd:int" minOccurs="1" maxOccurs="1"/>
+        </sequence>
+    </complexType>
+
+</schema>
+
+
+<!--
+/*
+ * Indiana University Extreme! Lab Software License, Version 1.2
+ *
+ * Copyright (c) 2002-2004 The Trustees of Indiana University.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * 1) All redistributions of source code must retain the above
+ *    copyright notice, the list of authors in the original source
+ *    code, this list of conditions and the disclaimer listed in this
+ *    license;
+ *
+ * 2) All redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the disclaimer
+ *    listed in this license in the documentation and/or other
+ *    materials provided with the distribution;
+ *
+ * 3) Any documentation included with all redistributions must include
+ *    the following acknowledgement:
+ *
+ *      "This product includes software developed by the Indiana
+ *      University Extreme! Lab.  For further information please visit
+ *      http://www.extreme.indiana.edu/"
+ *
+ *    Alternatively, this acknowledgment may appear in the software
+ *    itself, and wherever such third-party acknowledgments normally
+ *    appear.
+ *
+ * 4) The name "Indiana University" or "Indiana University
+ *    Extreme! Lab" shall not be used to endorse or promote
+ *    products derived from this software without prior written
+ *    permission from Indiana University.  For written permission,
+ *    please contact http://www.extreme.indiana.edu/.
+ *
+ * 5) Products derived from this software may not use "Indiana
+ *    University" name nor may "Indiana University" appear in their name,
+ *    without prior written permission of the Indiana University.
+ *
+ * Indiana University provides no reassurances that the source code
+ * provided does not infringe the patent or any other intellectual
+ * property rights of any other entity.  Indiana University disclaims any
+ * liability to any recipient for claims brought by any other entity
+ * based on infringement of intellectual property rights or otherwise.
+ *
+ * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
+ * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+ * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+ * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+ * OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+ * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+ * DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+ * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+ * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+ * SOFTWARE.
+ */
+ -->

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/error.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/error.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/error.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/error.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,83 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+
+<schema xmlns = "http://www.w3.org/2001/XMLSchema"
+        targetNamespace = "http://inca.sdsc.edu/dataModel/application1.0"
+        xmlns:app = "http://inca.sdsc.edu/dataModel/application1.0"
+        xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
+        elementFormDefault = "unqualified">
+
+  <!-- Represents an action in an application/workflow that succeeded or
+       failed.  -->
+  <element name = "action">
+    <complexType>
+      <sequence>
+        <!-- Some identifier unique to identify the action - e.g.,
+             workflow id -->
+        <element name = "id" type = "string"/>
+
+        <!-- Type of application (for Inca).  E.g., LEAD -->
+        <element name = "application" type = "string" minOccurs = "0"/>
+
+        <!-- Name of API/tool used. E.g., CoG 1.2 -->
+        <element name = "api" type = "string"/>
+
+        <!-- type of action -->
+        <choice maxOccurs = "unbounded">
+          <element name = "dataTransfer" type="app:dataTransfer"/>
+          <element name = "fileSystem" type="app:fileSystem"/>
+          <element name = "job" type = "app:job"/>
+          <element name = "cmdapplication" type = "app:Application"/>
+        </choice>
+
+        <!-- For jobs, startTime and endTime are probably useful
+             For data transfers, maybe just startTime or endTime -->
+        <element name = "startTime" type = "string" minOccurs = "0"/>
+        <element name = "endTime" type = "string" minOccurs = "0"/>
+      </sequence>
+    </complexType>
+  </element>
+  
+  <complexType  name = "dataTransfer">
+    <sequence>
+      <!-- Set if 3rd party transfer -->
+      <element name = "origHost" type = "string" minOccurs = "0"/>
+      <!-- GridFTP URL -->
+      <element name = "source" type = "string"/>
+      <!-- GridFTP URL -->
+      <element name = "dest" type = "string"/>
+      <!-- Flags -->
+      <element name = "options" type = "string"/>
+    </sequence>
+  </complexType>
+
+  <complexType name = "fileSystem">
+    <sequence>
+      <!-- Command and arguments.  E.g., mkdir someDir -->
+      <element name = "command" type = "string"/>
+      <!-- GridFTP URL -->
+      <element name = "contact" type = "string"/>
+    </sequence>
+  </complexType>
+
+  <complexType name = "job">
+    <sequence>
+      <!-- hostname -->
+      <element name = "submitHost" type = "string"/>
+      <!-- Full GRAM contact string -->
+      <element name = "contact" type = "string"/>
+      <!-- RSL string - is this XML now? -->
+      <element name = "rsl" type = "string"/>
+    </sequence>
+  </complexType>
+  
+  <complexType name = "Application">
+    <sequence>
+      <element name = "appHost" type = "string"/>
+      <element name = "appWorkDir" type = "string"/>
+      <element name = "execuatable" type = "string"/>
+      <element name = "serviceHost" type = "string"/>
+      <element name = "appStdoutAsStr" type = "string"/>
+    </sequence>
+  </complexType>
+
+</schema>

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-schemas.xsdconfig
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-schemas.xsdconfig?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-schemas.xsdconfig (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-schemas.xsdconfig Sat May 14 18:34:50 2011
@@ -0,0 +1,15 @@
+<xb:config  xmlns:xb="http://www.bea.com/2002/09/xbean/config">
+
+    <xb:namespace uri="http://www.extreme.indiana.edu/namespaces/2004/01/gFac">
+        <xb:package>org.ogce.schemas.gfac.documents</xb:package>
+    </xb:namespace>
+    
+    <xb:namespace uri="http://www.extreme.indiana.edu/lead/xsd">
+        <xb:package>org.ogce.schemas.gfac.types</xb:package>
+    </xb:namespace>
+
+   <xb:namespace uri="http://inca.sdsc.edu/dataModel/application1.0">
+        <xb:package>org.ogce.schemas.gfac.inca.faults</xb:package>
+    </xb:namespace>
+    
+</xb:config>
\ No newline at end of file

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-simple-types.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-simple-types.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-simple-types.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac-simple-types.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,64 @@
+ <xsd:schema elementFormDefault="unqualified" targetNamespace="http://www.extreme.indiana.edu/lead/xsd" 
+ 	xmlns="http://www.w3.org/2001/XMLSchema" 
+ 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ 	xmlns:gfac="http://www.extreme.indiana.edu/lead/xsd">
+      <xsd:simpleType name="LEADFileIDType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="LEADNameListFileType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="LEADNameListPropertiesFileType">
+        <xsd:restriction base="xsd:anyURI" />
+      </xsd:simpleType>
+      <xsd:simpleType name="HostNameType">
+        <xsd:restriction base="xsd:string" />
+      </xsd:simpleType>
+      <xsd:complexType name="DataIDType">
+        <xsd:simpleContent>
+          <xsd:extension base="xsd:anyURI">
+            <xsd:attribute name="location" type="xsd:string" use="optional" />
+          </xsd:extension>
+        </xsd:simpleContent>
+      </xsd:complexType>
+      <xsd:complexType name="LEADFileIDArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:anyURI" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="StringArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:string" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="IntegerArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:int" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="FloatArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:float" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="DoubleArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:double" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="BooleanArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:boolean" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="URIArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="xsd:anyURI" />
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="DataIDArrayType">
+        <xsd:sequence>
+          <xsd:element maxOccurs="unbounded" minOccurs="0" name="value" type="gfac:DataIDType" />
+        </xsd:sequence>
+      </xsd:complexType>
+    </xsd:schema>
\ No newline at end of file

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac.xsd?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac.xsd (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/schemas/gfac.xsd Sat May 14 18:34:50 2011
@@ -0,0 +1,122 @@
+<!--
+/*
+ * Copyright (c) 2002-2004 Extreme! Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the licence.
+ *
+ * $Id: BasicTypes.xsd,v 1.4.2.1 2006/06/08 15:48:54 gkandasw Exp $
+ */
+
+/**
+ * @version $Revision: 1.4.2.1 $
+ * @author Srinath Perera [mailto:gkandasw@cs.indiana.edu]
+ */
+ -->
+
+<schema targetNamespace="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns:gFac="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified">
+	<element name="configuration" type="gFac:ConfigurationType"/>
+    <complexType name="ConfigurationType">
+        <sequence>
+            <element name="parameter" type="gFac:ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+            <element name="extension" type="gFac:ExtensionType" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+    </complexType>
+
+    <complexType name="ParameterType">
+    	<complexContent>
+            <extension base="xsd:anyType">
+                    <attribute name="name" type="xsd:string"/>
+			        <attribute name="value" type="xsd:string" use="optional"/>
+            </extension>
+         </complexContent>
+    </complexType>
+
+    <!-- Most basic information about some important packages. This may be
+    only used as metadata as of now -->
+    <complexType name="ExtensionType">
+        <sequence>
+            <element name="parameter" type="gFac:ParameterType" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="className" type="xsd:string" use="optional"/>
+        <attribute name="ref" type="xsd:string" use="optional"/>
+        <attribute name="type" type="gFac:ETypeType" use="optional"/>
+        <attribute name="pipe" type="gFac:PipeType" use="optional"/>
+    </complexType>
+    
+    <simpleType name="ETypeType">
+      <restriction base="xsd:string">
+        <enumeration value="static"/>
+        <enumeration value="dynamic"/>
+      </restriction>
+    </simpleType>
+    <simpleType name="PipeType">
+      <restriction base="xsd:string">
+        <enumeration value="IN"/>
+        <enumeration value="OUT"/>
+      </restriction>
+    </simpleType>
+</schema>
+<!--
+/*
+ * Indiana University Extreme! Lab Software License, Version 1.2
+ *
+ * Copyright (c) 2002-2004 The Trustees of Indiana University.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * 1) All redistributions of source code must retain the above
+ *    copyright notice, the list of authors in the original source
+ *    code, this list of conditions and the disclaimer listed in this
+ *    license;
+ *
+ * 2) All redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the disclaimer
+ *    listed in this license in the documentation and/or other
+ *    materials provided with the distribution;
+ *
+ * 3) Any documentation included with all redistributions must include
+ *    the following acknowledgement:
+ *
+ *      "This product includes software developed by the Indiana
+ *      University Extreme! Lab.  For further information please visit
+ *      http://www.extreme.indiana.edu/"
+ *
+ *    Alternatively, this acknowledgment may appear in the software
+ *    itself, and wherever such third-party acknowledgments normally
+ *    appear.
+ *
+ * 4) The name "Indiana University" or "Indiana University
+ *    Extreme! Lab" shall not be used to endorse or promote
+ *    products derived from this software without prior written
+ *    permission from Indiana University.  For written permission,
+ *    please contact http://www.extreme.indiana.edu/.
+ *
+ * 5) Products derived from this software may not use "Indiana
+ *    University" name nor may "Indiana University" appear in their name,
+ *    without prior written permission of the Indiana University.
+ *
+ * Indiana University provides no reassurances that the source code
+ * provided does not infringe the patent or any other intellectual
+ * property rights of any other entity.  Indiana University disclaims any
+ * liability to any recipient for claims brought by any other entity
+ * based on infringement of intellectual property rights or otherwise.
+ *
+ * LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
+ * NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+ * UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+ * SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+ * OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+ * SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+ * DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+ * RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+ * AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+ * SOFTWARE.
+ */
+ -->

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ApplicationBean.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ApplicationBean.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ApplicationBean.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ApplicationBean.java Sat May 14 18:34:50 2011
@@ -0,0 +1,358 @@
+/*
+// * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans;
+
+import java.io.Serializable;
+import java.util.List;
+
+import org.ogce.schemas.gfac.utils.GFacConstants;
+
+/**
+ * @author Ye Fan
+ */
+public class ApplicationBean implements Serializable {
+
+	/**
+	 * serialVersionUID
+	 */
+	private static final long serialVersionUID = -1135736626312086898L;
+
+	private String applicationName;
+	
+	private String hostName;
+
+	private String executable;
+
+	private String workDir = "/tmp";
+
+	private String tmpDir = "/tmp";
+
+	private String jobType;
+
+	private String queue;
+
+	private Integer maxWallTime;
+
+	private Integer pcount;
+
+	private String leadNameListFile;
+
+	private String projectName;
+
+	private Integer minMemory;
+
+	private Integer hostCount;
+
+	private String rslparmName;
+
+	private String rslparmValue;
+
+	private List<String> options;
+
+	private List<String> projectNameItems;
+	
+	private String objectNamespace = GFacConstants.GFAC_NAMESPACE;
+	/**
+	 * @return the objectNamespace
+	 */
+	public String getObjectNamespace() {
+		return objectNamespace;
+	}
+
+	/**
+	 * @param objectNamespace the objectNamespace to set
+	 */
+	public void setObjectNamespace(String objectNamespace) {
+		this.objectNamespace = objectNamespace;
+	}
+
+	/**
+	 * Constructs a ApplicationBean.
+	 *
+	 */
+	public ApplicationBean() {
+	}
+	
+	/**
+	 * Returns the hostName.
+	 * 
+	 * @return The hostName
+	 */
+	public String getHostName() {
+		return this.hostName;
+	}
+
+	/**
+	 * Sets hostName.
+	 * 
+	 * @param hostName
+	 *            The hostName to set.
+	 */
+	public void setHostName(String hostName) {
+		this.hostName = hostName;
+	}
+
+	/**
+	 * Returns the applicationName.
+	 * 
+	 * @return The applicationName
+	 */
+	public String getApplicationName() {
+		return this.applicationName;
+	}
+
+	/**
+	 * Sets applicationName.
+	 * 
+	 * @param applicationName
+	 *            The applicationName to set.
+	 */
+	public void setApplicationName(String applicationName) {
+		this.applicationName = applicationName;
+	}
+
+	
+	/**
+	 * Returns the executable.
+	 * 
+	 * @return The executable
+	 */
+	public String getExecutable() {
+		return this.executable;
+	}
+
+	/**
+	 * Sets executable.
+	 * 
+	 * @param executable
+	 *            The executable to set.
+	 */
+	public void setExecutable(String executable) {
+		this.executable = executable;
+	}
+
+	/**
+	 * Returns the workDir.
+	 * 
+	 * @return The workDir
+	 */
+	public String getWorkDir() {
+		return this.workDir;
+	}
+
+	/**
+	 * Sets workDir.
+	 * 
+	 * @param workDir
+	 *            The workDir to set.
+	 */
+	public void setWorkDir(String workDir) {
+		this.workDir = workDir;
+	}
+
+	/**
+	 * Returns the tmpDir.
+	 * 
+	 * @return The tmpDir
+	 */
+	public String getTmpDir() {
+		return this.tmpDir;
+	}
+
+	/**
+	 * Sets tmpDir.
+	 * 
+	 * @param tmpDir
+	 *            The tmpDir to set.
+	 */
+	public void setTmpDir(String tmpDir) {
+		this.tmpDir = tmpDir;
+	}
+
+	/**
+	 * Returns the jobType.
+	 * 
+	 * @return The jobType
+	 */
+	public String getJobType() {
+		return this.jobType;
+	}
+
+	/**
+	 * Sets jobType.
+	 * 
+	 * @param jobType
+	 *            The jobType to set.
+	 */
+	public void setJobType(String jobType) {
+		this.jobType = jobType;
+	}
+
+	/**
+	 * Returns the queue.
+	 * 
+	 * @return The queue
+	 */
+	public String getQueue() {
+		return this.queue;
+	}
+
+	/**
+	 * Sets queue.
+	 * 
+	 * @param queue
+	 *            The queue to set.
+	 */
+	public void setQueue(String queue) {
+		this.queue = queue;
+	}
+
+	/**
+	 * Returns the leadNameListFile.
+	 * 
+	 * @return The leadNameListFile
+	 */
+	public String getLeadNameListFile() {
+		return this.leadNameListFile;
+	}
+
+	/**
+	 * Sets leadNameListFile.
+	 * 
+	 * @param leadNameListFile
+	 *            The leadNameListFile to set.
+	 */
+	public void setLeadNameListFile(String leadNameListFile) {
+		this.leadNameListFile = leadNameListFile;
+	}
+
+	/**
+	 * Returns the projectName.
+	 * 
+	 * @return The projectName
+	 */
+	public String getProjectName() {
+		return this.projectName;
+	}
+
+	/**
+	 * Sets projectName.
+	 * 
+	 * @param projectName
+	 *            The projectName to set.
+	 */
+	public void setProjectName(String projectName) {
+		this.projectName = projectName;
+	}
+	
+	/**
+	 * @return the options
+	 */
+	public List<String> getOptions() {
+		return options;
+	}
+
+	/**
+	 * Sets options.
+	 * 
+	 * @param options The options to set.
+	 */
+	public void setOptions(List<String> options) {
+		this.options = options;
+	}
+	
+	/**
+	 * @return the rslparmName
+	 */
+	public String getRslparmName() {
+		return rslparmName;
+	}
+	/**
+	 * @param rslparmName the rslparmName to set
+	 */
+	public void setRslparmName(String rslparmName) {
+		this.rslparmName = rslparmName;
+	}
+	/**
+	 * @return the rslparmValue
+	 */
+	public String getRslparmValue() {
+		return rslparmValue;
+	}
+	/**
+	 * @param rslparmValue the rslparmValue to set
+	 */
+	public void setRslparmValue(String rslparmValue) {
+		this.rslparmValue = rslparmValue;
+	}
+	/**
+	 * @return the maxWallTime
+	 */
+	public Integer getMaxWallTime() {
+		return maxWallTime;
+	}
+	/**
+	 * @param maxWallTime the maxWallTime to set
+	 */
+	public void setMaxWallTime(Integer maxWallTime) {
+		this.maxWallTime = maxWallTime;
+	}
+	/**
+	 * @return the pcount
+	 */
+	public Integer getPcount() {
+		return pcount;
+	}
+	/**
+	 * @param pcount the pcount to set
+	 */
+	public void setPcount(Integer pcount) {
+		this.pcount = pcount;
+	}
+	/**
+	 * @return the minMemory
+	 */
+	public Integer getMinMemory() {
+		return minMemory;
+	}
+	/**
+	 * @param minMemory the minMemory to set
+	 */
+	public void setMinMemory(Integer minMemory) {
+		this.minMemory = minMemory;
+	}
+	/**
+	 * @return the hostCount
+	 */
+	public Integer getHostCount() {
+		return hostCount;
+	}
+	/**
+	 * @param hostCount the hostCount to set
+	 */
+	public void setHostCount(Integer hostCount) {
+		this.hostCount = hostCount;
+	}
+	
+	/**
+	 * 
+	 * @param projectNameItems
+	 */
+	public void setProjectNameItems(List<String> projectNameItems) {
+		this.projectNameItems = projectNameItems;
+	}
+	
+	/**
+	 * 
+	 * @return projectNameItems
+	 */
+	public List<String> getProjectNameItems() {
+		return projectNameItems;
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/HostBean.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/HostBean.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/HostBean.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/HostBean.java Sat May 14 18:34:50 2011
@@ -0,0 +1,339 @@
+/*
+ * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author Ye Fan
+ */
+public class HostBean implements Serializable {
+	/**
+	 * serialVersionUID
+	 */
+	private static final long serialVersionUID = 7173720848242950441L;	
+
+	private String hostName=null;
+
+	private String gFacPath="";
+
+	private String jdkName="jdk1.5";
+
+	private String jdkPath="";
+
+	private int portRangeStart=12000;
+
+	private int portRangeEnd=12500;
+
+	private String hostEnv="";
+
+	private String tmpDir = "/tmp";
+
+	private String gateKeeperJobManager="";
+
+	private String gateKeeperName="";
+
+	private String gateKeeperendPointReference="";
+
+	private String gateKeeperendPointReferenceItems="";
+
+	private boolean wsGram = false;
+
+	private String gridFtpName="";
+
+	private String gridFtpendPointReference="";
+
+	private boolean sshEnabled = false;
+
+	private String gridFtpEndpointItems="";
+
+	private String serviceTypeItems="";
+
+	private List<String> serviceType = new ArrayList<String>();
+
+	private String hostNameItems;
+
+
+	/**
+	 * Constructs a HostBean.
+	 *
+	 */
+	public HostBean() {
+	}
+	
+	/**
+	 * @return the gFacPath
+	 */
+	public String getgFacPath() {
+		return gFacPath;
+	}
+
+
+	/**
+	 * @param gFacPath the gFacPath to set
+	 */
+	public void setgFacPath(String gFacPath) {
+		this.gFacPath = gFacPath;
+	}
+
+
+	/**
+	 * @return the hostName
+	 */
+	public String getHostName() {
+		return hostName;
+	}
+
+	/**
+	 * @param hostName the hostName to set
+	 */
+	public void setHostName(String hostName) {
+		this.hostName = hostName;
+	}
+
+	/**
+	 * @return the gFacPath
+	 */
+	public String getGFacPath() {
+		return gFacPath;
+	}
+
+	/**
+	 * @param facPath the gFacPath to set
+	 */
+	public void setGFacPath(String facPath) {
+		gFacPath = facPath;
+	}
+
+	/**
+	 * @return the jdkName
+	 */
+	public String getJdkName() {
+		return jdkName;
+	}
+
+	/**
+	 * @param jdkName the jdkName to set
+	 */
+	public void setJdkName(String jdkName) {
+		this.jdkName = jdkName;
+	}
+
+	/**
+	 * @return the jdkPath
+	 */
+	public String getJdkPath() {
+		return jdkPath;
+	}
+
+	/**
+	 * @param jdkPath the jdkPath to set
+	 */
+	public void setJdkPath(String jdkPath) {
+		this.jdkPath = jdkPath;
+	}
+
+	/**
+	 * @return the portRangeStart
+	 */
+	public int getPortRangeStart() {
+		return portRangeStart;
+	}
+
+	/**
+	 * @param portRangeStart the portRangeStart to set
+	 */
+	public void setPortRangeStart(int portRangeStart) {
+		this.portRangeStart = portRangeStart;
+	}
+
+	/**
+	 * @return the portRangeEnd
+	 */
+	public int getPortRangeEnd() {
+		return portRangeEnd;
+	}
+
+	/**
+	 * @param portRangeEnd the portRangeEnd to set
+	 */
+	public void setPortRangeEnd(int portRangeEnd) {
+		this.portRangeEnd = portRangeEnd;
+	}
+
+	/**
+	 * @return the hostEnv
+	 */
+	public String getHostEnv() {
+		return hostEnv;
+	}
+
+	/**
+	 * @param hostEnv the hostEnv to set
+	 */
+	public void setHostEnv(String hostEnv) {
+		this.hostEnv = hostEnv;
+	}
+
+	/**
+	 * @return the tmpDir
+	 */
+	public String getTmpDir() {
+		return tmpDir;
+	}
+
+	/**
+	 * @param tmpDir the tmpDir to set
+	 */
+	public void setTmpDir(String tmpDir) {
+		this.tmpDir = tmpDir;
+	}
+	/**
+	 * @return the gateKeeperName
+	 */
+	public String getGateKeeperName() {
+		return gateKeeperName;
+	}
+	/**
+	 * @param gateKeeperName the gateKeeperName to set
+	 */
+	public void setGateKeeperName(String gateKeeperName) {
+		this.gateKeeperName = gateKeeperName;
+	}
+	/**
+	 * @return the gateKeeperendPointReference
+	 */
+	public String getGateKeeperendPointReference() {
+		return gateKeeperendPointReference;
+	}
+	/**
+	 * @param gateKeeperendPointReference the gateKeeperendPointReference to set
+	 */
+	public void setGateKeeperendPointReference(String gateKeeperendPointReference) {
+		this.gateKeeperendPointReference = gateKeeperendPointReference;
+	}
+	/**
+	 * @return the wsGram
+	 */
+	public boolean isWsGram() {
+		return wsGram;
+	}
+	/**
+	 * @param wsGram the wsGram to set
+	 */
+	public void setWsGram(boolean wsGram) {
+		this.wsGram = wsGram;
+	}
+	/**
+	 * @return the gridFtpName
+	 */
+	public String getGridFtpName() {
+		return gridFtpName;
+	}
+	/**
+	 * @param gridFtpName the gridFtpName to set
+	 */
+	public void setGridFtpName(String gridFtpName) {
+		this.gridFtpName = gridFtpName;
+	}
+	/**
+	 * @return the gridFtpendPointReference
+	 */
+	public String getGridFtpendPointReference() {
+		return gridFtpendPointReference;
+	}
+	/**
+	 * @param gridFtpendPointReference the gridFtpendPointReference to set
+	 */
+	public void setGridFtpendPointReference(String gridFtpendPointReference) {
+		this.gridFtpendPointReference = gridFtpendPointReference;
+	}
+	/**
+	 * @return the sshEnabled
+	 */
+	public boolean isSshEnabled() {
+		return sshEnabled;
+	}
+	/**
+	 * @param sshEnabled the sshEnabled to set
+	 */
+	public void setSshEnabled(boolean sshEnabled) {
+		this.sshEnabled = sshEnabled;
+	}
+	/**
+	 * @return the gateKeeperJobManager
+	 */
+	public String getGateKeeperJobManager() {
+		return gateKeeperJobManager;
+	}
+	/**
+	 * @param gateKeeperJobManager the gateKeeperJobManager to set
+	 */
+	public void setGateKeeperJobManager(String gateKeeperJobManager) {
+		this.gateKeeperJobManager = gateKeeperJobManager;
+	}
+
+	/**
+	 * @param gridFtpEndpointItems
+	 */
+	public void setGridFtpEndpointItems(String gridFtpEndpointItems) {
+		this.gridFtpEndpointItems = gridFtpEndpointItems;
+	}
+	/**
+	 * @return the gridFtpEndpointItems
+	 */
+	public String getGridFtpEndpointItems() {
+		return gridFtpEndpointItems;
+	}
+	/**
+	 * @param serviceTypeItems
+	 */
+	public void setServiceTypeItems(String serviceTypeItems) {
+		this.serviceTypeItems = serviceTypeItems;
+	}
+	/**
+	 * @return the serviceTypeItems
+	 */
+	public String getServiceTypeItems() {
+		return this.serviceTypeItems;
+	}
+	/**
+	 * @param serviceType
+	 */
+	public void setServiceType(List<String> serviceType) {
+		this.serviceType = serviceType;
+	}
+	/**
+	 * @return the serviceType
+	 */
+	public List<String> getServiceType() {
+		return this.serviceType;
+	}
+	/**
+	 * @param gateKeeperendPointReferenceItems
+	 */
+	public void setGateKeeperendPointReferenceItems(
+			String gateKeeperendPointReferenceItems) {
+		this.gateKeeperendPointReferenceItems = gateKeeperendPointReferenceItems;
+	}
+	/**
+	 * @return the gateKeeperendPointReferenceItems
+	 */
+	public String getGateKeeperendPointReferenceItems() {
+		return gateKeeperendPointReferenceItems;
+	}
+	public void setHostNameItems(String hostNameItems) {
+		this.hostNameItems = hostNameItems;
+	}
+	public String getHostNameItems() {
+		return hostNameItems;
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/MethodBean.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/MethodBean.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/MethodBean.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/MethodBean.java Sat May 14 18:34:50 2011
@@ -0,0 +1,238 @@
+/*
+// * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collections;
+
+import org.ogce.schemas.gfac.beans.utils.ParamObject;
+
+/**
+ * @author Ye Fan
+ */
+public class MethodBean implements Serializable {
+
+	/**
+	 * serialVersionUID
+	 */
+	private static final long serialVersionUID = 2060690776455167203L;
+	private String methodName;
+	private String methodDescription;
+	private boolean stageOutputDataFiles;
+	private boolean forceFileStagingToWorkDir;
+	private boolean useLEADNameListFile;
+	private boolean useLEADNameListPropertiesFile;
+	private boolean systemDefined;
+	private boolean paramValuesOnly;
+
+	private ArrayList<ParamObject> inputParms = new ArrayList<ParamObject>();
+	private ArrayList<ParamObject> outputParms = new ArrayList<ParamObject>();
+
+	public MethodBean() {
+	}
+
+	public MethodBean(String methodName, String methodDescription,
+			boolean stageOutputDataFiles, boolean forceFileStagingToWorkDir,
+			boolean useLEADNameListFile, boolean useLEADNameListPropertiesFile) {
+
+		this.methodName = methodName;
+		this.methodDescription = methodDescription;
+		this.stageOutputDataFiles = stageOutputDataFiles;
+		this.forceFileStagingToWorkDir = forceFileStagingToWorkDir;
+		this.useLEADNameListFile = useLEADNameListFile;
+		this.useLEADNameListPropertiesFile = useLEADNameListPropertiesFile;
+	}
+
+	/**
+	 * Returns the methodName.
+	 * 
+	 * @return The methodName
+	 */
+	public String getMethodName() {
+		return this.methodName;
+	}
+
+	/**
+	 * Sets methodName.
+	 * 
+	 * @param methodName
+	 *            The methodName to set.
+	 */
+	public void setMethodName(String methodName) {
+		this.methodName = methodName;
+	}
+
+	/**
+	 * Returns the methodDescription.
+	 * 
+	 * @return The methodDescription
+	 */
+	public String getMethodDescription() {
+		return this.methodDescription;
+	}
+
+	/**
+	 * Sets methodDescription.
+	 * 
+	 * @param methodDescription
+	 *            The methodDescription to set.
+	 */
+	public void setMethodDescription(String methodDescription) {
+		this.methodDescription = methodDescription;
+	}
+
+	/**
+	 * Returns the stageOutputDataFiles.
+	 * 
+	 * @return The stageOutputDataFiles
+	 */
+	public boolean isStageOutputDataFiles() {
+		return this.stageOutputDataFiles;
+	}
+
+	/**
+	 * Sets stageOutputDataFiles.
+	 * 
+	 * @param stageOutputDataFiles
+	 *            The stageOutputDataFiles to set.
+	 */
+	public void setStageOutputDataFiles(boolean stageOutputDataFiles) {
+		this.stageOutputDataFiles = stageOutputDataFiles;
+	}
+
+	/**
+	 * Returns the forceFileStagingToWorkDir.
+	 * 
+	 * @return The forceFileStagingToWorkDir
+	 */
+	public boolean isForceFileStagingToWorkDir() {
+		return this.forceFileStagingToWorkDir;
+	}
+
+	/**
+	 * Sets forceFileStagingToWorkDir.
+	 * 
+	 * @param forceFileStagingToWorkDir
+	 *            The forceFileStagingToWorkDir to set.
+	 */
+	public void setForceFileStagingToWorkDir(boolean forceFileStagingToWorkDir) {
+		this.forceFileStagingToWorkDir = forceFileStagingToWorkDir;
+	}
+
+	/**
+	 * Returns the useLEADNameListFile.
+	 * 
+	 * @return The useLEADNameListFile
+	 */
+	public boolean isUseLEADNameListFile() {
+		return this.useLEADNameListFile;
+	}
+
+	/**
+	 * Sets useLEADNameListFile.
+	 * 
+	 * @param useLEADNameListFile
+	 *            The useLEADNameListFile to set.
+	 */
+	public void setUseLEADNameListFile(boolean useLEADNameListFile) {
+		this.useLEADNameListFile = useLEADNameListFile;
+	}
+
+	/**
+	 * Returns the useLEADNameListPropertiesFile.
+	 * 
+	 * @return The useLEADNameListPropertiesFile
+	 */
+	public boolean isUseLEADNameListPropertiesFile() {
+		return this.useLEADNameListPropertiesFile;
+	}
+
+	/**
+	 * Sets useLEADNameListPropertiesFile.
+	 * 
+	 * @param useLEADNameListPropertiesFile
+	 *            The useLEADNameListPropertiesFile to set.
+	 */
+	public void setUseLEADNameListPropertiesFile(
+			boolean useLEADNameListPropertiesFile) {
+		this.useLEADNameListPropertiesFile = useLEADNameListPropertiesFile;
+	}
+
+	/**
+	 * @return the systemDefined
+	 */
+	public boolean isSystemDefined() {
+		return systemDefined;
+	}
+
+	/**
+	 * @param systemDefined
+	 *            the systemDefined to set
+	 */
+	public void setSystemDefined(boolean systemDefined) {
+		this.systemDefined = systemDefined;
+	}
+
+	/**
+	 * @return the paramValuesOnly
+	 */
+	public boolean isParamValuesOnly() {
+		return paramValuesOnly;
+	}
+
+	/**
+	 * @param paramValuesOnly
+	 *            the paramValuesOnly to set
+	 */
+	public void setParamValuesOnly(boolean paramValuesOnly) {
+		this.paramValuesOnly = paramValuesOnly;
+	}
+
+	/**
+	 * Returns the inputParms.
+	 * 
+	 * @return The inputParms
+	 */
+	public ArrayList<ParamObject> getInputParms() {
+		return this.inputParms;
+	}
+
+	/**
+	 * 
+	 * @param inputParam
+	 *            object
+	 */
+	public void addInputParms(ParamObject inputParam) {
+		this.inputParms.add(inputParam);
+	}
+
+	/**
+	 * Returns the outputParms.
+	 * 
+	 * @return The outputParms
+	 */
+	public ArrayList<ParamObject> getOutputParms() {
+		return this.outputParms;
+	}
+
+	/**
+	 * 
+	 * @param outputParam
+	 *            object
+	 */
+	public void addOutputParms(ParamObject outputParam) {
+		this.outputParms.add(outputParam);
+	}
+
+	public void sortParams() {
+		Collections.sort(inputParms);
+		Collections.sort(outputParms);
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ServiceBean.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ServiceBean.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ServiceBean.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/ServiceBean.java Sat May 14 18:34:50 2011
@@ -0,0 +1,174 @@
+/*
+// * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans;
+
+import java.io.Serializable;
+
+import org.ogce.schemas.gfac.documents.InputParameterType;
+import org.ogce.schemas.gfac.documents.OutputParameterType;
+import org.ogce.schemas.gfac.utils.GFacConstants;
+
+/**
+ * @author Ye Fan
+ */
+public class ServiceBean implements Serializable {
+
+	/**
+	 * serialVersionUID
+	 */
+	private static final long serialVersionUID = -8503351239625654889L;
+	private String serviceName;
+	private String applicationName;
+	private String serviceDescription;
+	private int notAfterInactiveMinutes = 15;
+	
+	private InputParameterType[] inputParam;
+	private OutputParameterType[] outputParam;
+
+	private MethodBean methodBean;
+	
+	
+	private String objectNamespace = GFacConstants.GFAC_NAMESPACE;
+	
+	/**
+	 * Constructs a ServiceBean.
+	 * 
+	 */
+	public ServiceBean() {
+		// intend to be blank
+	}
+
+	/**
+	 * @return the objectNamespace
+	 */
+	public String getObjectNamespace() {
+		return objectNamespace;
+	}
+
+	/**
+	 * @param objectNamespace the objectNamespace to set
+	 */
+	public void setObjectNamespace(String objectNamespace) {
+		this.objectNamespace = objectNamespace;
+	}
+
+	/**
+	 * Returns the serviceName. 0
+	 * 
+	 * @return The serviceName
+	 */
+	public String getServiceName() {
+		return this.serviceName;
+	}
+
+	/**
+	 * Sets serviceName.
+	 * 
+	 * @param serviceName
+	 *            The serviceName to set.
+	 */
+	public void setServiceName(String serviceName) {
+		this.serviceName = serviceName;
+	}
+
+	/**
+	 * Returns the notAfterInactiveMinutes.
+	 * 
+	 * @return The notAfterInactiveMinutes
+	 */
+	public int getNotAfterInactiveMinutes() {
+		return this.notAfterInactiveMinutes;
+	}
+
+	/**
+	 * Sets notAfterInactiveMinutes.
+	 * 
+	 * @param notAfterInactiveMinutes
+	 *            The notAfterInactiveMinutes to set.
+	 */
+	public void setNotAfterInactiveMinutes(int notAfterInactiveMinutes) {
+		this.notAfterInactiveMinutes = notAfterInactiveMinutes;
+	}
+
+	/**
+	 * Sets applicationName.
+	 * 
+	 * @param applicationName
+	 *            The applicationName to set.
+	 */
+	public void setApplicationName(String applicationName) {
+		this.applicationName = applicationName;
+	}
+
+	/**
+	 * Returns the applicationName.
+	 * 
+	 * @return The applicationName
+	 */
+	public String getApplicationName() {
+		return this.applicationName;
+	}
+
+	/**
+	 * @return the methodBean
+	 */
+	public MethodBean getMethodBean() {
+		return methodBean;
+	}
+
+	/**
+	 * @param methodBean the methodBean to set
+	 */
+	public void setMethodBean(MethodBean methodBean) {
+		this.methodBean = methodBean;
+	}
+
+	/**
+	 * @return the serviceDescription
+	 */
+	public String getServiceDescription() {
+		return serviceDescription;
+	}
+
+	/**
+	 * @param serviceDescription the serviceDescription to set
+	 */
+	public void setServiceDescription(String serviceDescription) {
+		this.serviceDescription = serviceDescription;
+	}
+
+	/**
+	 * @return the inputParam
+	 */
+	public InputParameterType[] getInputParam() {
+		return inputParam;
+	}
+
+	/**
+	 * @param inputParam the inputParam to set
+	 */
+	public void setInputParam(InputParameterType[] inputParam) {
+		this.inputParam = inputParam;
+	}
+
+	/**
+	 * @return the outputParam
+	 */
+	public OutputParameterType[] getOutputParam() {
+		return outputParam;
+	}
+
+	/**
+	 * @param outputParam the outputParam to set
+	 */
+	public void setOutputParam(OutputParameterType[] outputParam) {
+		this.outputParam = outputParam;
+	}
+
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ApplicationUtils.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ApplicationUtils.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ApplicationUtils.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ApplicationUtils.java Sat May 14 18:34:50 2011
@@ -0,0 +1,158 @@
+/*
+ * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans.utils;
+
+import org.apache.xmlbeans.XmlException;
+import org.ogce.schemas.gfac.beans.ApplicationBean;
+import org.ogce.schemas.gfac.documents.ApplicationDescriptionDocument;
+import org.ogce.schemas.gfac.documents.ApplicationDescriptionType;
+import org.ogce.schemas.gfac.documents.DeploymentDescriptionType;
+import org.ogce.schemas.gfac.documents.JobTypeType.Enum;
+import org.ogce.schemas.gfac.documents.RSLParmType;
+import org.ogce.schemas.gfac.documents.ApplicationDescriptionType.ApplicationName;
+import org.ogce.schemas.gfac.validator.SchemaValidator;
+
+/**
+ * @author Ye Fan
+ */
+public class ApplicationUtils {
+
+	public static ApplicationBean simpleApplicationBeanRequest(String appDescStr)
+			throws XmlException {
+
+		ApplicationDescriptionType applicationDescriptionType = ApplicationDescriptionDocument.Factory
+				.parse(appDescStr).getApplicationDescription();
+
+		ApplicationBean appBean = new ApplicationBean();
+
+		appBean.setHostName(applicationDescriptionType
+				.getDeploymentDescription().getHostName());
+		ApplicationName appXbeanName = applicationDescriptionType
+				.getApplicationName();
+
+		appBean.setApplicationName(appXbeanName.getStringValue());
+
+		appBean.setObjectNamespace(appXbeanName.getTargetNamespace());
+		appBean.setExecutable(applicationDescriptionType
+				.getDeploymentDescription().getExecutable());
+		appBean.setWorkDir(applicationDescriptionType
+				.getDeploymentDescription().getWorkDir());
+		appBean.setTmpDir(applicationDescriptionType.getDeploymentDescription()
+				.getTmpDir());
+		if (applicationDescriptionType.isSetProject()) {
+			appBean.setProjectName(applicationDescriptionType.getProject()
+					.getProjectName());
+
+		}
+		if (applicationDescriptionType.getJobType() != null) {
+			appBean.setJobType(applicationDescriptionType.getJobType()
+					.toString());
+		}
+
+		if (applicationDescriptionType.getQueue() != null) {
+			appBean.setQueue(applicationDescriptionType.getQueue()
+					.getQueueName());
+		}
+
+		if (applicationDescriptionType.isSetCount()) {
+			appBean.setPcount(applicationDescriptionType.getCount());
+		}
+
+		if (applicationDescriptionType.isSetMaxWallTime()) {
+			appBean.setMaxWallTime(applicationDescriptionType.getMaxWallTime());
+		}
+		if (applicationDescriptionType.isSetMinMemory()) {
+			appBean.setMinMemory(applicationDescriptionType.getMinMemory());
+		}
+		if (applicationDescriptionType.getHostCount() > 0) {
+			appBean.setHostCount(applicationDescriptionType.getHostCount());
+		}
+		if (applicationDescriptionType.getRslparmArray() != null) {
+			RSLParmType[] rslParmType = applicationDescriptionType
+					.getRslparmArray();
+			for (RSLParmType rslParmType2 : rslParmType) {
+				appBean.setRslparmName(rslParmType2.getName());
+				appBean.setRslparmValue(rslParmType2.getStringValue());
+			}
+		}
+		if (applicationDescriptionType.getDeploymentDescription()
+				.getLeadNameListFile() != null) {
+			appBean.setLeadNameListFile(applicationDescriptionType
+					.getDeploymentDescription().getLeadNameListFile());
+		}
+
+		return appBean;
+	}
+
+	public static String simpleAppXMLRequest(ApplicationBean appInfo) throws GFacSchemaException {
+
+		ApplicationDescriptionDocument appDescDoc = ApplicationDescriptionDocument.Factory
+				.newInstance();
+
+		ApplicationDescriptionType appType = appDescDoc
+				.addNewApplicationDescription();
+
+		ApplicationName appName = appType.addNewApplicationName();
+
+		appName.setStringValue(appInfo.getApplicationName().trim());
+		appName.setTargetNamespace(appInfo.getObjectNamespace());
+		DeploymentDescriptionType deployment = appType
+				.getDeploymentDescription();
+		if (deployment == null) {
+			deployment = appType.addNewDeploymentDescription();
+		}
+		deployment.setHostName(appInfo.getHostName().trim());
+		deployment.setExecutable(appInfo.getExecutable());
+		if (appInfo.getWorkDir() != null) {
+			deployment.setWorkDir(appInfo.getWorkDir());
+		}
+		if (appInfo.getTmpDir() != null) {
+			deployment.setTmpDir(appInfo.getTmpDir());
+		}
+		if (appInfo.getJobType() != null) {
+			appType.setJobType(Enum.forString(appInfo.getJobType()));
+		}
+		if (appInfo.getLeadNameListFile() != null) {
+			deployment.setLeadNameListFile(appInfo.getLeadNameListFile());
+		}
+
+		if (appInfo.getMaxWallTime() != null) {
+			appType.setMaxWallTime(Integer.valueOf(appInfo.getMaxWallTime()));
+		}
+
+		if (appInfo.getPcount() != null) {
+			appType.setCount(Integer.valueOf(appInfo.getPcount()));
+		}
+
+		if (appInfo.getQueue() != null) {
+			appType.addNewQueue().setQueueName(appInfo.getQueue());
+		}
+		if (appInfo.getProjectName() != null) {
+			appType.addNewProject().setProjectName(appInfo.getProjectName());
+		}
+		if (appInfo.getRslparmName() != null
+				&& appInfo.getRslparmValue() != null
+				&& appInfo.getRslparmName() != "") {
+			RSLParmType rslParmType = appType.addNewRslparm();
+			rslParmType.setName(appInfo.getRslparmName());
+			rslParmType.setStringValue(appInfo.getRslparmValue());
+		}
+		if (appInfo.getMinMemory() != null) {
+			appType.setMinMemory(appInfo.getMinMemory());
+		}
+		if (appInfo.getHostCount() != null) {
+			appType.setHostCount(appInfo.getHostCount());
+		}
+		
+		SchemaValidator validator = new SchemaValidator(appType);
+		validator.validate();
+
+		return appDescDoc.xmlText();
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/GFacSchemaException.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/GFacSchemaException.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/GFacSchemaException.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/GFacSchemaException.java Sat May 14 18:34:50 2011
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans.utils;
+
+/**
+ * @author Ye Fan
+ */
+public class GFacSchemaException extends Exception {
+
+	/**
+	 * serialVersionUID
+	 */
+	private static final long serialVersionUID = 3146697337237463348L;
+
+	public GFacSchemaException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    public GFacSchemaException(String message) {
+        super(message);
+    }
+
+    public GFacSchemaException(Throwable cause) {
+        super(cause);
+    }
+    
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/HostUtils.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/HostUtils.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/HostUtils.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/HostUtils.java Sat May 14 18:34:50 2011
@@ -0,0 +1,222 @@
+/*
+ * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans.utils;
+
+import java.util.HashMap;
+import java.util.StringTokenizer;
+
+import org.apache.xmlbeans.XmlException;
+import org.ogce.schemas.gfac.beans.HostBean;
+import org.ogce.schemas.gfac.documents.GlobusGatekeeperType;
+import org.ogce.schemas.gfac.documents.GlobusJobManagerType;
+import org.ogce.schemas.gfac.documents.GridFTPType;
+import org.ogce.schemas.gfac.documents.HostConfigurationType;
+import org.ogce.schemas.gfac.documents.HostDescriptionDocument;
+import org.ogce.schemas.gfac.documents.HostDescriptionType;
+import org.ogce.schemas.gfac.documents.NameValuePairType;
+import org.ogce.schemas.gfac.documents.PackageType;
+import org.ogce.schemas.gfac.documents.PortRangeType;
+import org.ogce.schemas.gfac.validator.SchemaValidator;
+
+/**
+ * @author Ye Fan
+ */
+public class HostUtils {
+
+	public static HostBean simpleHostBeanRequest(String hostDescStr)
+			throws XmlException {
+		HostDescriptionType hostDesc = HostDescriptionDocument.Factory.parse(
+				hostDescStr).getHostDescription();
+
+		HostBean hostBean = new HostBean();
+
+		hostBean.setHostName(hostDesc.getHostName());
+		hostBean.setGFacPath(hostDesc.getHostConfiguration().getGFacPath());
+
+		PortRangeType portRange = hostDesc.getHostConfiguration()
+				.getPortRange();
+		if (portRange != null) {
+			hostBean.setPortRangeStart(portRange.getStart());
+			hostBean.setPortRangeEnd(portRange.getEnd());
+		}
+		PackageType[] java = hostDesc.getHostConfiguration().getJavaArray();
+		if (java.length > 0) {
+			hostBean.setJdkPath(java[0].getHome());
+		}
+		hostBean.setTmpDir(hostDesc.getHostConfiguration().getTmpDir());
+		NameValuePairType[] hostEnvs = hostDesc.getHostConfiguration()
+				.getHostEnvArray();
+		if (hostEnvs.length > 0) {
+			StringBuffer buf = new StringBuffer();
+			String prefix = "";
+			for (NameValuePairType envVal : hostEnvs) {
+				buf.append(prefix);
+				buf.append(envVal.getName()).append("=").append(
+						envVal.getValue());
+				prefix = ",";
+			}
+			hostBean.setHostEnv(buf.toString());
+		}
+		hostBean.setSshEnabled(hostDesc.getHostConfiguration().getSshEnabled());
+		if (hostDesc.getHostConfiguration().getGlobusGatekeeperArray().length > 0) {
+			hostBean
+					.setGateKeeperJobManager(hostDesc.getHostConfiguration()
+							.getGlobusGatekeeperArray(0).getJobmanagertype()
+							.toString());
+			// We are taking 1st value for now
+			hostBean.setGateKeeperendPointReference(hostDesc
+					.getHostConfiguration().getGlobusGatekeeperArray(0)
+					.getEndPointReference().toString());
+			hostBean.setGateKeeperName(hostDesc.getHostConfiguration()
+					.getGlobusGatekeeperArray(0).getName());
+			hostBean.setWsGram(hostDesc.getHostConfiguration()
+					.getGlobusGatekeeperArray(0).getWsGram());
+		}
+		if (hostDesc.getHostConfiguration().getGridFTPArray().length > 0) {
+			hostBean.setGridFtpName(hostDesc.getHostConfiguration()
+					.getGridFTPArray(0).getName());
+			hostBean.setGridFtpendPointReference(hostDesc
+					.getHostConfiguration().getGridFTPArray(0)
+					.getEndPointReference());
+		}
+
+		return hostBean;
+	}
+
+	public static String simpleHostXMLRequest(HostBean host)
+			throws GFacSchemaException {
+
+		HostDescriptionDocument hostDescDoc = HostDescriptionDocument.Factory.newInstance();
+		HostDescriptionType hostDesc = hostDescDoc.addNewHostDescription();
+		
+		hostDesc.setHostName(host.getHostName().trim());
+		HostConfigurationType hostConf = hostDesc.getHostConfiguration();
+		if (hostConf == null) {
+			hostConf = hostDesc.addNewHostConfiguration();
+		}
+		// Added to support extra fields
+		if (!host.getGateKeeperendPointReference().isEmpty()) {
+			GlobusGatekeeperType gatekeeperType;
+			if (hostConf.sizeOfGlobusGatekeeperArray() == 0) {
+				gatekeeperType = hostConf.addNewGlobusGatekeeper();
+			} else {
+				gatekeeperType = hostConf.getGlobusGatekeeperArray(0);
+			}
+			gatekeeperType.setEndPointReference(host
+					.getGateKeeperendPointReference());
+			gatekeeperType.setWsGram(host.isWsGram());
+			gatekeeperType.setName(host.getGateKeeperName());
+			if (host.getGateKeeperJobManager() != null) {
+				String jobmanager = host.getGateKeeperJobManager();
+				if (jobmanager.equals(GlobusJobManagerType.CONDOR.toString())) {
+					gatekeeperType
+							.setJobmanagertype(GlobusJobManagerType.CONDOR);
+				} else if (jobmanager.equals(GlobusJobManagerType.FORK
+						.toString())) {
+					gatekeeperType.setJobmanagertype(GlobusJobManagerType.SGE);
+				} else if (jobmanager.equals(GlobusJobManagerType.SGE
+						.toString())) {
+					gatekeeperType
+							.setJobmanagertype(GlobusJobManagerType.LOADLEVELER);
+				} else if (jobmanager.equals(GlobusJobManagerType.LOADLEVELER
+						.toString())) {
+					gatekeeperType
+							.setJobmanagertype(GlobusJobManagerType.LOADLEVELER);
+				} else if (jobmanager.equals(GlobusJobManagerType.LSF
+						.toString())) {
+					gatekeeperType.setJobmanagertype(GlobusJobManagerType.LSF);
+				} else if (jobmanager.equals(GlobusJobManagerType.MULTI
+						.toString())) {
+					gatekeeperType
+							.setJobmanagertype(GlobusJobManagerType.MULTI);
+				} else if (jobmanager.equals(GlobusJobManagerType.PBS
+						.toString())) {
+					gatekeeperType.setJobmanagertype(GlobusJobManagerType.PBS);
+				} else if (jobmanager.equals(GlobusJobManagerType.SPRUCE
+						.toString())) {
+					gatekeeperType
+							.setJobmanagertype(GlobusJobManagerType.SPRUCE);
+				}
+
+			}
+		}
+		if (!host.getGridFtpendPointReference().isEmpty()) {
+			GridFTPType gridFTPType;
+			if (hostConf.sizeOfGridFTPArray() == 0) {
+				gridFTPType = hostConf.addNewGridFTP();
+			} else {
+				gridFTPType = hostConf.getGridFTPArray(0);
+			}
+			gridFTPType
+					.setEndPointReference(host.getGridFtpendPointReference());
+			gridFTPType.setName(host.getGridFtpName());
+		}
+
+		hostConf.setGFacPath(host.getGFacPath());
+		hostConf.setTmpDir(host.getTmpDir());
+
+		PortRangeType portRangeType = hostConf.getPortRange();
+		if (portRangeType == null) {
+			portRangeType = hostConf.addNewPortRange();
+		}
+		if (host.getPortRangeStart() > 0 && host.getPortRangeEnd() > 0) {
+			portRangeType.setStart(Integer.valueOf(host.getPortRangeStart()));
+			portRangeType.setEnd(Integer.valueOf(host.getPortRangeEnd()));
+		}
+
+		PackageType javaInstallation;
+		if (hostConf.getJavaArray() != null
+				&& hostConf.getJavaArray().length > 0) {
+			javaInstallation = hostConf.getJavaArray(0);
+		} else {
+			javaInstallation = hostConf.addNewJava();
+		}
+		String jdkName = host.getJdkName();
+		javaInstallation.setName(jdkName);
+		javaInstallation.setHome(host.getJdkPath());
+		// FIXME: hostBean should not be needed
+		javaInstallation.setVersion(jdkName.replaceAll("java", ""));
+
+		if (host.getHostEnv() != null) {
+			HashMap<String, NameValuePairType> envMap = new HashMap<String, NameValuePairType>();
+			if (hostConf.getHostEnvArray() != null) {
+				for (NameValuePairType pair : hostConf.getHostEnvArray()) {
+					envMap.put(pair.getName(), pair);
+				}
+			}
+
+			StringTokenizer tokernizer = new StringTokenizer(host.getHostEnv(),
+					";");
+			while (tokernizer.hasMoreTokens()) {
+				String nameVal = tokernizer.nextToken();
+
+				int index = nameVal.indexOf('=');
+				if (index <= 0) {
+					throw new GFacSchemaException("Illegal Name value Pairs "
+							+ host.getHostEnv() + " at parsing " + nameVal);
+				}
+				String name = nameVal.substring(0, index);
+				NameValuePairType nmPair = envMap.get(name);
+				if (nmPair == null) {
+					nmPair = hostConf.addNewHostEnv();
+				}
+				nmPair.setName(name);
+				nmPair.setValue(nameVal.substring(index + 1));
+			}
+		}
+		if (host.isSshEnabled()) {
+			hostDesc.getHostConfiguration().setSshEnabled(true);
+		}
+		
+		SchemaValidator validator = new SchemaValidator(hostDesc);
+		validator.validate();
+
+		return hostDescDoc.xmlText();
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ParamObject.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ParamObject.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ParamObject.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/utils/schemas/gfac-schema-utils/src/main/java/org/ogce/schemas/gfac/beans/utils/ParamObject.java Sat May 14 18:34:50 2011
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2009 Pervasive Lab, Indiana University. All rights reserved.
+ *
+ * This software is open source. See the bottom of this file for the license.
+ *
+ * $Id: $
+ */
+
+package org.ogce.schemas.gfac.beans.utils;
+
+/**
+ * @author Raminderjeet Singh
+ */
+public class ParamObject implements Comparable<Object> {
+	private int index;
+	private String name;
+	private String desc;
+	private String type;
+	private String regExp;
+
+	public String getName() {
+		return name;
+	}
+
+	public String getType() {
+		return type;
+	}
+
+	public ParamObject(String name, String type, int index, String desc) {
+		this.name = name;
+		this.type = type;
+		this.index = index;
+		this.setDesc(desc);
+	}
+
+	public ParamObject(String name, String type, int index, String regExp,
+			String desc) {
+		this.name = name;
+		this.type = type;
+		this.index = index;
+		this.regExp = regExp;
+		this.setDesc(desc);
+	}
+
+	public int getIndex() {
+		return index;
+	}
+
+	/**
+	 * @param regExp
+	 *            the regExp to set
+	 */
+	public void setRegExp(String regExp) {
+		this.regExp = regExp;
+	}
+
+	/**
+	 * @return the regExp
+	 */
+	public String getRegExp() {
+		return regExp;
+	}
+
+	public int compareTo(Object o) {
+		ParamObject pram = (ParamObject) o;
+		if (pram.index < index) {
+			return +1;
+		} else if (pram.index == index) {
+			return 0;
+		} else {
+			return -1;
+		}
+	}
+
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+
+}