|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.Vobject
uk.ac.vamsas.objects.core.AppData
uk.ac.vamsas.objects.core.ApplicationData
Class ApplicationData.
Field Summary |
Fields inherited from class uk.ac.vamsas.client.Vobject |
__added_since_last_read, __last_hash, __stored_in_document, __updated_since_last_read, __visited, __vorba, registerable, V_parent, vorbaId |
Constructor Summary | |
ApplicationData()
|
Method Summary | |
void |
addInstance(Instance vInstance)
|
void |
addInstance(int index,
Instance vInstance)
|
void |
addUser(int index,
User vUser)
|
void |
addUser(User vUser)
|
java.util.Enumeration |
enumerateInstance()
Method enumerateInstance. |
java.util.Enumeration |
enumerateUser()
Method enumerateUser. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
Common |
getCommon()
Returns the value of field 'common'. |
Instance[] |
getInstance()
Method getInstance.Returns the contents of the collection in an Array. |
Instance |
getInstance(int index)
Method getInstance. |
java.util.Vector |
getInstanceAsReference()
Method getInstanceAsReference.Returns a reference to '_instanceList'. |
int |
getInstanceCount()
Method getInstanceCount. |
java.lang.String |
getName()
Returns the value of field 'name'. |
User[] |
getUser()
Method getUser.Returns the contents of the collection in an Array. |
User |
getUser(int index)
Method getUser. |
java.util.Vector |
getUserAsReference()
Method getUserAsReference.Returns a reference to '_userList'. |
int |
getUserCount()
Method getUserCount. |
java.lang.String |
getVersion()
Returns the value of field 'version'. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllInstance()
|
void |
removeAllUser()
|
boolean |
removeInstance(Instance vInstance)
Method removeInstance. |
Instance |
removeInstanceAt(int index)
Method removeInstanceAt. |
boolean |
removeUser(User vUser)
Method removeUser. |
User |
removeUserAt(int index)
Method removeUserAt. |
void |
setCommon(Common common)
Sets the value of field 'common'. |
void |
setInstance(Instance[] vInstanceArray)
|
void |
setInstance(int index,
Instance vInstance)
|
void |
setInstance(java.util.Vector vInstanceList)
Sets the value of '_instanceList' by copying the given Vector. |
void |
setInstanceAsReference(java.util.Vector instanceVector)
Deprecated. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setUser(int index,
User vUser)
|
void |
setUser(User[] vUserArray)
|
void |
setUser(java.util.Vector vUserList)
Sets the value of '_userList' by copying the given Vector. |
void |
setUserAsReference(java.util.Vector userVector)
Deprecated. |
void |
setVersion(java.lang.String version)
Sets the value of field 'version'. |
static AppData |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class uk.ac.vamsas.objects.core.AppData |
getChoiceValue, getData, getDataReference, setData, setDataReference |
Methods inherited from class uk.ac.vamsas.client.Vobject |
__callHash, __ensure_instance_ids, __ensure_instance_ids, __getInstanceIdField, __getLHash, __setFinalHash, __setInitHash, doHash, finalize, get__last_hash, getV_parent, getVorbaId, is__stored_in_document, isNewInDocument, isRegisterable, isRegistered, isUpdated, merge, set__added_since_last_read, set__stored_in_document, set__updated_since_last_read, setInstanceIdField, setRegisterable, setV_parent, setVorbaId |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationData()
Method Detail |
public void addInstance(Instance vInstance) throws java.lang.IndexOutOfBoundsException
vInstance
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addInstance(int index, Instance vInstance) throws java.lang.IndexOutOfBoundsException
index
- vInstance
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addUser(User vUser) throws java.lang.IndexOutOfBoundsException
vUser
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addUser(int index, User vUser) throws java.lang.IndexOutOfBoundsException
index
- vUser
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.util.Enumeration enumerateInstance()
public java.util.Enumeration enumerateUser()
public boolean equals(java.lang.Object obj)
equals
in class AppData
obj
-
public Common getCommon()
public Instance getInstance(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Instance[] getInstance()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.Vector getInstanceAsReference()
public int getInstanceCount()
public java.lang.String getName()
public User getUser(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic User[] getUser()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.Vector getUserAsReference()
public int getUserCount()
public java.lang.String getVersion()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode
in class AppData
public boolean isValid()
isValid
in class AppData
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class AppData
out
-
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class AppData
handler
-
java.io.IOException
- if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshalingpublic void removeAllInstance()
public void removeAllUser()
public boolean removeInstance(Instance vInstance)
vInstance
-
public Instance removeInstanceAt(int index)
index
-
public boolean removeUser(User vUser)
vUser
-
public User removeUserAt(int index)
index
-
public void setCommon(Common common)
common
- the value of field 'common'.public void setInstance(int index, Instance vInstance) throws java.lang.IndexOutOfBoundsException
index
- vInstance
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setInstance(Instance[] vInstanceArray)
vInstanceArray
- public void setInstance(java.util.Vector vInstanceList)
vInstanceList
- the Vector to copy.public void setInstanceAsReference(java.util.Vector instanceVector)
instanceVector
- the Vector to set.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setUser(int index, User vUser) throws java.lang.IndexOutOfBoundsException
index
- vUser
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setUser(User[] vUserArray)
vUserArray
- public void setUser(java.util.Vector vUserList)
vUserList
- the Vector to copy.public void setUserAsReference(java.util.Vector userVector)
userVector
- the Vector to set.public void setVersion(java.lang.String version)
version
- the value of field 'version'.public static AppData unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
validate
in class AppData
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schema
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |