You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sh...@apache.org on 2015/06/03 23:24:58 UTC
[5/8] airavata git commit: Resolve compilation issues in gfac module
after module refactoring
http://git-wip-us.apache.org/repos/asf/airavata/blob/19afc7e0/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/InputListImpl.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/InputListImpl.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/InputListImpl.java
new file mode 100644
index 0000000..73ae2bb
--- /dev/null
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/InputListImpl.java
@@ -0,0 +1,235 @@
+/*
+ * XML Type: inputList
+ * Namespace: http://airavata.apache.org/gfac/core/2012/12
+ * Java type: org.apache.airavata.gfac.core.x2012.x12.InputList
+ *
+ * Automatically generated - do not modify.
+ */
+package org.apache.airavata.gfac.core.x2012.x12.impl;
+/**
+ * An XML inputList(@http://airavata.apache.org/gfac/core/2012/12).
+ *
+ * This is a complex type.
+ */
+public class InputListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.airavata.gfac.core.x2012.x12.InputList
+{
+ private static final long serialVersionUID = 1L;
+
+ public InputListImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName INPUT$0 =
+ new javax.xml.namespace.QName("http://airavata.apache.org/gfac/core/2012/12", "input");
+
+
+ /**
+ * Gets array of all "input" elements
+ */
+ public java.lang.String[] getInputArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(INPUT$0, targetList);
+ java.lang.String[] result = new java.lang.String[targetList.size()];
+ for (int i = 0, len = targetList.size() ; i < len ; i++)
+ result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
+ return result;
+ }
+ }
+
+ /**
+ * Gets ith "input" element
+ */
+ public java.lang.String getInputArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUT$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) array of all "input" elements
+ */
+ public org.apache.xmlbeans.XmlString[] xgetInputArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(INPUT$0, targetList);
+ org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets (as xml) ith "input" element
+ */
+ public org.apache.xmlbeans.XmlString xgetInputArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INPUT$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return (org.apache.xmlbeans.XmlString)target;
+ }
+ }
+
+ /**
+ * Returns number of "input" element
+ */
+ public int sizeOfInputArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(INPUT$0);
+ }
+ }
+
+ /**
+ * Sets array of all "input" element
+ */
+ public void setInputArray(java.lang.String[] inputArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(inputArray, INPUT$0);
+ }
+ }
+
+ /**
+ * Sets ith "input" element
+ */
+ public void setInputArray(int i, java.lang.String input)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUT$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.setStringValue(input);
+ }
+ }
+
+ /**
+ * Sets (as xml) array of all "input" element
+ */
+ public void xsetInputArray(org.apache.xmlbeans.XmlString[]inputArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(inputArray, INPUT$0);
+ }
+ }
+
+ /**
+ * Sets (as xml) ith "input" element
+ */
+ public void xsetInputArray(int i, org.apache.xmlbeans.XmlString input)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INPUT$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(input);
+ }
+ }
+
+ /**
+ * Inserts the value as the ith "input" element
+ */
+ public void insertInput(int i, java.lang.String input)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target =
+ (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(INPUT$0, i);
+ target.setStringValue(input);
+ }
+ }
+
+ /**
+ * Appends the value as the last "input" element
+ */
+ public void addInput(java.lang.String input)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INPUT$0);
+ target.setStringValue(input);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "input" element
+ */
+ public org.apache.xmlbeans.XmlString insertNewInput(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(INPUT$0, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "input" element
+ */
+ public org.apache.xmlbeans.XmlString addNewInput()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(INPUT$0);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "input" element
+ */
+ public void removeInput(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(INPUT$0, i);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/airavata/blob/19afc7e0/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/JobDescriptorDocumentImpl.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/JobDescriptorDocumentImpl.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/JobDescriptorDocumentImpl.java
new file mode 100644
index 0000000..98d1650
--- /dev/null
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/JobDescriptorDocumentImpl.java
@@ -0,0 +1,77 @@
+/*
+ * An XML document type.
+ * Localname: JobDescriptor
+ * Namespace: http://airavata.apache.org/gfac/core/2012/12
+ * Java type: org.apache.airavata.gfac.core.x2012.x12.JobDescriptorDocument
+ *
+ * Automatically generated - do not modify.
+ */
+package org.apache.airavata.gfac.core.x2012.x12.impl;
+/**
+ * A document containing one JobDescriptor(@http://airavata.apache.org/gfac/core/2012/12) element.
+ *
+ * This is a complex type.
+ */
+public class JobDescriptorDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.airavata.gfac.core.x2012.x12.JobDescriptorDocument
+{
+ private static final long serialVersionUID = 1L;
+
+ public JobDescriptorDocumentImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName JOBDESCRIPTOR$0 =
+ new javax.xml.namespace.QName("http://airavata.apache.org/gfac/core/2012/12", "JobDescriptor");
+
+
+ /**
+ * Gets the "JobDescriptor" element
+ */
+ public org.apache.airavata.gfac.core.x2012.x12.PbsParams getJobDescriptor()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.airavata.gfac.core.x2012.x12.PbsParams target = null;
+ target = (org.apache.airavata.gfac.core.x2012.x12.PbsParams)get_store().find_element_user(JOBDESCRIPTOR$0, 0);
+ if (target == null)
+ {
+ return null;
+ }
+ return target;
+ }
+ }
+
+ /**
+ * Sets the "JobDescriptor" element
+ */
+ public void setJobDescriptor(org.apache.airavata.gfac.core.x2012.x12.PbsParams jobDescriptor)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.airavata.gfac.core.x2012.x12.PbsParams target = null;
+ target = (org.apache.airavata.gfac.core.x2012.x12.PbsParams)get_store().find_element_user(JOBDESCRIPTOR$0, 0);
+ if (target == null)
+ {
+ target = (org.apache.airavata.gfac.core.x2012.x12.PbsParams)get_store().add_element_user(JOBDESCRIPTOR$0);
+ }
+ target.set(jobDescriptor);
+ }
+ }
+
+ /**
+ * Appends and returns a new empty "JobDescriptor" element
+ */
+ public org.apache.airavata.gfac.core.x2012.x12.PbsParams addNewJobDescriptor()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.airavata.gfac.core.x2012.x12.PbsParams target = null;
+ target = (org.apache.airavata.gfac.core.x2012.x12.PbsParams)get_store().add_element_user(JOBDESCRIPTOR$0);
+ return target;
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/airavata/blob/19afc7e0/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/ModuleLoadCommandsImpl.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/ModuleLoadCommandsImpl.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/ModuleLoadCommandsImpl.java
new file mode 100644
index 0000000..1611ebf
--- /dev/null
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/x2012/x12/impl/ModuleLoadCommandsImpl.java
@@ -0,0 +1,235 @@
+/*
+ * XML Type: moduleLoadCommands
+ * Namespace: http://airavata.apache.org/gfac/core/2012/12
+ * Java type: org.apache.airavata.gfac.core.x2012.x12.ModuleLoadCommands
+ *
+ * Automatically generated - do not modify.
+ */
+package org.apache.airavata.gfac.core.x2012.x12.impl;
+/**
+ * An XML moduleLoadCommands(@http://airavata.apache.org/gfac/core/2012/12).
+ *
+ * This is a complex type.
+ */
+public class ModuleLoadCommandsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.airavata.gfac.core.x2012.x12.ModuleLoadCommands
+{
+ private static final long serialVersionUID = 1L;
+
+ public ModuleLoadCommandsImpl(org.apache.xmlbeans.SchemaType sType)
+ {
+ super(sType);
+ }
+
+ private static final javax.xml.namespace.QName COMMAND$0 =
+ new javax.xml.namespace.QName("http://airavata.apache.org/gfac/core/2012/12", "command");
+
+
+ /**
+ * Gets array of all "command" elements
+ */
+ public java.lang.String[] getCommandArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(COMMAND$0, targetList);
+ java.lang.String[] result = new java.lang.String[targetList.size()];
+ for (int i = 0, len = targetList.size() ; i < len ; i++)
+ result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
+ return result;
+ }
+ }
+
+ /**
+ * Gets ith "command" element
+ */
+ public java.lang.String getCommandArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMAND$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) array of all "command" elements
+ */
+ public org.apache.xmlbeans.XmlString[] xgetCommandArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ java.util.List targetList = new java.util.ArrayList();
+ get_store().find_all_element_users(COMMAND$0, targetList);
+ org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
+ targetList.toArray(result);
+ return result;
+ }
+ }
+
+ /**
+ * Gets (as xml) ith "command" element
+ */
+ public org.apache.xmlbeans.XmlString xgetCommandArray(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMAND$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ return (org.apache.xmlbeans.XmlString)target;
+ }
+ }
+
+ /**
+ * Returns number of "command" element
+ */
+ public int sizeOfCommandArray()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().count_elements(COMMAND$0);
+ }
+ }
+
+ /**
+ * Sets array of all "command" element
+ */
+ public void setCommandArray(java.lang.String[] commandArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(commandArray, COMMAND$0);
+ }
+ }
+
+ /**
+ * Sets ith "command" element
+ */
+ public void setCommandArray(int i, java.lang.String command)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMAND$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.setStringValue(command);
+ }
+ }
+
+ /**
+ * Sets (as xml) array of all "command" element
+ */
+ public void xsetCommandArray(org.apache.xmlbeans.XmlString[]commandArray)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ arraySetterHelper(commandArray, COMMAND$0);
+ }
+ }
+
+ /**
+ * Sets (as xml) ith "command" element
+ */
+ public void xsetCommandArray(int i, org.apache.xmlbeans.XmlString command)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COMMAND$0, i);
+ if (target == null)
+ {
+ throw new IndexOutOfBoundsException();
+ }
+ target.set(command);
+ }
+ }
+
+ /**
+ * Inserts the value as the ith "command" element
+ */
+ public void insertCommand(int i, java.lang.String command)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target =
+ (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(COMMAND$0, i);
+ target.setStringValue(command);
+ }
+ }
+
+ /**
+ * Appends the value as the last "command" element
+ */
+ public void addCommand(java.lang.String command)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMMAND$0);
+ target.setStringValue(command);
+ }
+ }
+
+ /**
+ * Inserts and returns a new empty value (as xml) as the ith "command" element
+ */
+ public org.apache.xmlbeans.XmlString insertNewCommand(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(COMMAND$0, i);
+ return target;
+ }
+ }
+
+ /**
+ * Appends and returns a new empty value (as xml) as the last "command" element
+ */
+ public org.apache.xmlbeans.XmlString addNewCommand()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlString target = null;
+ target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(COMMAND$0);
+ return target;
+ }
+ }
+
+ /**
+ * Removes the ith "command" element
+ */
+ public void removeCommand(int i)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_element(COMMAND$0, i);
+ }
+ }
+}