synchronized with last schema revision.
[vamsas.git] / src / org / vamsas / objects / core / ApplicationData.java
index b9adb94..bb0c99e 100644 (file)
@@ -15,8 +15,6 @@ import java.io.IOException;
 import java.io.Reader;
 import java.io.Serializable;
 import java.io.Writer;
-import java.util.Enumeration;
-import java.util.Vector;
 import org.exolab.castor.xml.MarshalException;
 import org.exolab.castor.xml.Marshaller;
 import org.exolab.castor.xml.Unmarshaller;
@@ -28,7 +26,7 @@ import org.xml.sax.ContentHandler;
  * 
  * @version $Revision$ $Date$
  */
-public class ApplicationData extends org.vamsas.client.object 
+public class ApplicationData extends org.vamsas.objects.core.AppData 
 implements java.io.Serializable
 {
 
@@ -38,9 +36,19 @@ implements java.io.Serializable
     //--------------------------/
 
     /**
-     * Field _applicationList
+     * Field _version
      */
-    private java.util.Vector _applicationList;
+    private java.lang.String _version;
+
+    /**
+     * Field _name
+     */
+    private java.lang.String _name;
+
+    /**
+     * Field _urn
+     */
+    private java.lang.String _urn;
 
 
       //----------------/
@@ -50,7 +58,6 @@ implements java.io.Serializable
     public ApplicationData() 
      {
         super();
-        _applicationList = new Vector();
     } //-- org.vamsas.objects.core.ApplicationData()
 
 
@@ -59,45 +66,6 @@ implements java.io.Serializable
     //-----------/
 
     /**
-     * Method addApplication
-     * 
-     * 
-     * 
-     * @param vApplication
-     */
-    public void addApplication(org.vamsas.objects.core.Application vApplication)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _applicationList.addElement(vApplication);
-    } //-- void addApplication(org.vamsas.objects.core.Application) 
-
-    /**
-     * Method addApplication
-     * 
-     * 
-     * 
-     * @param index
-     * @param vApplication
-     */
-    public void addApplication(int index, org.vamsas.objects.core.Application vApplication)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _applicationList.insertElementAt(vApplication, index);
-    } //-- void addApplication(int, org.vamsas.objects.core.Application) 
-
-    /**
-     * Method enumerateApplication
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateApplication()
-    {
-        return _applicationList.elements();
-    } //-- java.util.Enumeration enumerateApplication() 
-
-    /**
      * Note: hashCode() has not been overriden
      * 
      * @param obj
@@ -114,12 +82,26 @@ implements java.io.Serializable
         if (obj instanceof ApplicationData) {
         
             ApplicationData temp = (ApplicationData)obj;
-            if (this._applicationList != null) {
-                if (temp._applicationList == null) return false;
-                else if (!(this._applicationList.equals(temp._applicationList))) 
+            if (this._version != null) {
+                if (temp._version == null) return false;
+                else if (!(this._version.equals(temp._version))) 
                     return false;
             }
-            else if (temp._applicationList != null)
+            else if (temp._version != null)
+                return false;
+            if (this._name != null) {
+                if (temp._name == null) return false;
+                else if (!(this._name.equals(temp._name))) 
+                    return false;
+            }
+            else if (temp._name != null)
+                return false;
+            if (this._urn != null) {
+                if (temp._urn == null) return false;
+                else if (!(this._urn.equals(temp._urn))) 
+                    return false;
+            }
+            else if (temp._urn != null)
                 return false;
             return true;
         }
@@ -127,52 +109,37 @@ implements java.io.Serializable
     } //-- boolean equals(java.lang.Object) 
 
     /**
-     * Method getApplication
-     * 
-     * 
+     * Returns the value of field 'name'.
      * 
-     * @param index
-     * @return Application
+     * @return String
+     * @return the value of field 'name'.
      */
-    public org.vamsas.objects.core.Application getApplication(int index)
-        throws java.lang.IndexOutOfBoundsException
+    public java.lang.String getName()
     {
-        //-- check bounds for index
-        if ((index < 0) || (index > _applicationList.size())) {
-            throw new IndexOutOfBoundsException("getApplication: Index value '"+index+"' not in range [0.."+_applicationList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Application) _applicationList.elementAt(index);
-    } //-- org.vamsas.objects.core.Application getApplication(int) 
+        return this._name;
+    } //-- java.lang.String getName() 
 
     /**
-     * Method getApplication
-     * 
-     * 
+     * Returns the value of field 'urn'.
      * 
-     * @return Application
+     * @return String
+     * @return the value of field 'urn'.
      */
-    public org.vamsas.objects.core.Application[] getApplication()
+    public java.lang.String getUrn()
     {
-        int size = _applicationList.size();
-        org.vamsas.objects.core.Application[] mArray = new org.vamsas.objects.core.Application[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Application) _applicationList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Application[] getApplication() 
+        return this._urn;
+    } //-- java.lang.String getUrn() 
 
     /**
-     * Method getApplicationCount
-     * 
-     * 
+     * Returns the value of field 'version'.
      * 
-     * @return int
+     * @return String
+     * @return the value of field 'version'.
      */
-    public int getApplicationCount()
+    public java.lang.String getVersion()
     {
-        return _applicationList.size();
-    } //-- int getApplicationCount() 
+        return this._version;
+    } //-- java.lang.String getVersion() 
 
     /**
      * Method isValid
@@ -221,62 +188,34 @@ implements java.io.Serializable
     } //-- void marshal(org.xml.sax.ContentHandler) 
 
     /**
-     * Method removeAllApplication
+     * Sets the value of field 'name'.
      * 
+     * @param name the value of field 'name'.
      */
-    public void removeAllApplication()
+    public void setName(java.lang.String name)
     {
-        _applicationList.removeAllElements();
-    } //-- void removeAllApplication() 
+        this._name = name;
+    } //-- void setName(java.lang.String) 
 
     /**
-     * Method removeApplication
+     * Sets the value of field 'urn'.
      * 
-     * 
-     * 
-     * @param index
-     * @return Application
+     * @param urn the value of field 'urn'.
      */
-    public org.vamsas.objects.core.Application removeApplication(int index)
+    public void setUrn(java.lang.String urn)
     {
-        java.lang.Object obj = _applicationList.elementAt(index);
-        _applicationList.removeElementAt(index);
-        return (org.vamsas.objects.core.Application) obj;
-    } //-- org.vamsas.objects.core.Application removeApplication(int) 
+        this._urn = urn;
+    } //-- void setUrn(java.lang.String) 
 
     /**
-     * Method setApplication
-     * 
-     * 
+     * Sets the value of field 'version'.
      * 
-     * @param index
-     * @param vApplication
+     * @param version the value of field 'version'.
      */
-    public void setApplication(int index, org.vamsas.objects.core.Application vApplication)
-        throws java.lang.IndexOutOfBoundsException
+    public void setVersion(java.lang.String version)
     {
-        //-- check bounds for index
-        if ((index < 0) || (index > _applicationList.size())) {
-            throw new IndexOutOfBoundsException("setApplication: Index value '"+index+"' not in range [0.."+_applicationList.size()+ "]");
-        }
-        _applicationList.setElementAt(vApplication, index);
-    } //-- void setApplication(int, org.vamsas.objects.core.Application) 
-
-    /**
-     * Method setApplication
-     * 
-     * 
-     * 
-     * @param applicationArray
-     */
-    public void setApplication(org.vamsas.objects.core.Application[] applicationArray)
-    {
-        //-- copy array
-        _applicationList.removeAllElements();
-        for (int i = 0; i < applicationArray.length; i++) {
-            _applicationList.addElement(applicationArray[i]);
-        }
-    } //-- void setApplication(org.vamsas.objects.core.Application) 
+        this._version = version;
+    } //-- void setVersion(java.lang.String) 
 
     /**
      * Method unmarshal
@@ -284,13 +223,13 @@ implements java.io.Serializable
      * 
      * 
      * @param reader
-     * @return ApplicationData
+     * @return AppData
      */
-    public static org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader reader)
+    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
     {
         return (org.vamsas.objects.core.ApplicationData) Unmarshaller.unmarshal(org.vamsas.objects.core.ApplicationData.class, reader);
-    } //-- org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader) 
+    } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader) 
 
     /**
      * Method validate