//--------------------------/
/**
- * Field _version
+ * Version string describing the application specific data
+ * storage version used
*/
private java.lang.String _version;
/**
- * Field _name
+ * Canonical name of application
+ *
*/
private java.lang.String _name;
/**
- * Field _urn
+ * Field _userList
*/
- private java.lang.String _urn;
+ private java.util.Vector _userList;
/**
- * Field _userList
+ * Field _common
*/
- private java.util.Vector _userList;
+ private org.vamsas.objects.core.Common _common;
+
+ /**
+ * Field _instanceList
+ */
+ private java.util.Vector _instanceList;
//----------------/
{
super();
_userList = new Vector();
+ _instanceList = new Vector();
} //-- org.vamsas.objects.core.ApplicationData()
//-----------/
/**
+ * Method addInstance
+ *
+ *
+ *
+ * @param vInstance
+ */
+ public void addInstance(org.vamsas.objects.core.Instance vInstance)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ _instanceList.addElement(vInstance);
+ } //-- void addInstance(org.vamsas.objects.core.Instance)
+
+ /**
+ * Method addInstance
+ *
+ *
+ *
+ * @param index
+ * @param vInstance
+ */
+ public void addInstance(int index, org.vamsas.objects.core.Instance vInstance)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ _instanceList.insertElementAt(vInstance, index);
+ } //-- void addInstance(int, org.vamsas.objects.core.Instance)
+
+ /**
* Method addUser
*
*
} //-- void addUser(int, org.vamsas.objects.core.User)
/**
+ * Method enumerateInstance
+ *
+ *
+ *
+ * @return Enumeration
+ */
+ public java.util.Enumeration enumerateInstance()
+ {
+ return _instanceList.elements();
+ } //-- java.util.Enumeration enumerateInstance()
+
+ /**
* Method enumerateUser
*
*
}
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;
if (this._userList != null) {
if (temp._userList == null) return false;
else if (!(this._userList.equals(temp._userList)))
}
else if (temp._userList != null)
return false;
+ if (this._common != null) {
+ if (temp._common == null) return false;
+ else if (!(this._common.equals(temp._common)))
+ return false;
+ }
+ else if (temp._common != null)
+ return false;
+ if (this._instanceList != null) {
+ if (temp._instanceList == null) return false;
+ else if (!(this._instanceList.equals(temp._instanceList)))
+ return false;
+ }
+ else if (temp._instanceList != null)
+ return false;
return true;
}
return false;
} //-- boolean equals(java.lang.Object)
/**
- * Returns the value of field 'name'.
+ * Returns the value of field 'common'.
*
- * @return String
- * @return the value of field 'name'.
+ * @return Common
+ * @return the value of field 'common'.
*/
- public java.lang.String getName()
+ public org.vamsas.objects.core.Common getCommon()
{
- return this._name;
- } //-- java.lang.String getName()
+ return this._common;
+ } //-- org.vamsas.objects.core.Common getCommon()
/**
- * Returns the value of field 'urn'.
+ * Method getInstance
+ *
+ *
+ *
+ * @param index
+ * @return Instance
+ */
+ public org.vamsas.objects.core.Instance getInstance(int index)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ //-- check bounds for index
+ if ((index < 0) || (index > _instanceList.size())) {
+ throw new IndexOutOfBoundsException("getInstance: Index value '"+index+"' not in range [0.."+_instanceList.size()+ "]");
+ }
+
+ return (org.vamsas.objects.core.Instance) _instanceList.elementAt(index);
+ } //-- org.vamsas.objects.core.Instance getInstance(int)
+
+ /**
+ * Method getInstance
+ *
+ *
+ *
+ * @return Instance
+ */
+ public org.vamsas.objects.core.Instance[] getInstance()
+ {
+ int size = _instanceList.size();
+ org.vamsas.objects.core.Instance[] mArray = new org.vamsas.objects.core.Instance[size];
+ for (int index = 0; index < size; index++) {
+ mArray[index] = (org.vamsas.objects.core.Instance) _instanceList.elementAt(index);
+ }
+ return mArray;
+ } //-- org.vamsas.objects.core.Instance[] getInstance()
+
+ /**
+ * Method getInstanceCount
+ *
+ *
+ *
+ * @return int
+ */
+ public int getInstanceCount()
+ {
+ return _instanceList.size();
+ } //-- int getInstanceCount()
+
+ /**
+ * Returns the value of field 'name'. The field 'name' has the
+ * following description: Canonical name of application
+ *
*
* @return String
- * @return the value of field 'urn'.
+ * @return the value of field 'name'.
*/
- public java.lang.String getUrn()
+ public java.lang.String getName()
{
- return this._urn;
- } //-- java.lang.String getUrn()
+ return this._name;
+ } //-- java.lang.String getName()
/**
* Method getUser
} //-- int getUserCount()
/**
- * Returns the value of field 'version'.
+ * Returns the value of field 'version'. The field 'version'
+ * has the following description: Version string describing the
+ * application specific data storage version used
*
* @return String
* @return the value of field 'version'.
} //-- void marshal(org.xml.sax.ContentHandler)
/**
+ * Method removeAllInstance
+ *
+ */
+ public void removeAllInstance()
+ {
+ _instanceList.removeAllElements();
+ } //-- void removeAllInstance()
+
+ /**
* Method removeAllUser
*
*/
} //-- void removeAllUser()
/**
+ * Method removeInstance
+ *
+ *
+ *
+ * @param index
+ * @return Instance
+ */
+ public org.vamsas.objects.core.Instance removeInstance(int index)
+ {
+ java.lang.Object obj = _instanceList.elementAt(index);
+ _instanceList.removeElementAt(index);
+ return (org.vamsas.objects.core.Instance) obj;
+ } //-- org.vamsas.objects.core.Instance removeInstance(int)
+
+ /**
* Method removeUser
*
*
} //-- org.vamsas.objects.core.User removeUser(int)
/**
- * Sets the value of field 'name'.
+ * Sets the value of field 'common'.
*
- * @param name the value of field 'name'.
+ * @param common the value of field 'common'.
*/
- public void setName(java.lang.String name)
+ public void setCommon(org.vamsas.objects.core.Common common)
{
- this._name = name;
- } //-- void setName(java.lang.String)
+ this._common = common;
+ } //-- void setCommon(org.vamsas.objects.core.Common)
+
+ /**
+ * Method setInstance
+ *
+ *
+ *
+ * @param index
+ * @param vInstance
+ */
+ public void setInstance(int index, org.vamsas.objects.core.Instance vInstance)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ //-- check bounds for index
+ if ((index < 0) || (index > _instanceList.size())) {
+ throw new IndexOutOfBoundsException("setInstance: Index value '"+index+"' not in range [0.."+_instanceList.size()+ "]");
+ }
+ _instanceList.setElementAt(vInstance, index);
+ } //-- void setInstance(int, org.vamsas.objects.core.Instance)
/**
- * Sets the value of field 'urn'.
+ * Method setInstance
+ *
+ *
*
- * @param urn the value of field 'urn'.
+ * @param instanceArray
*/
- public void setUrn(java.lang.String urn)
+ public void setInstance(org.vamsas.objects.core.Instance[] instanceArray)
{
- this._urn = urn;
- } //-- void setUrn(java.lang.String)
+ //-- copy array
+ _instanceList.removeAllElements();
+ for (int i = 0; i < instanceArray.length; i++) {
+ _instanceList.addElement(instanceArray[i]);
+ }
+ } //-- void setInstance(org.vamsas.objects.core.Instance)
+
+ /**
+ * Sets the value of field 'name'. The field 'name' has the
+ * following description: Canonical name of application
+ *
+ *
+ * @param name the value of field 'name'.
+ */
+ public void setName(java.lang.String name)
+ {
+ this._name = name;
+ } //-- void setName(java.lang.String)
/**
* Method setUser
} //-- void setUser(org.vamsas.objects.core.User)
/**
- * Sets the value of field 'version'.
+ * Sets the value of field 'version'. The field 'version' has
+ * the following description: Version string describing the
+ * application specific data storage version used
*
* @param version the value of field 'version'.
*/