public class Users extends Object implements Serializable
| Constructor and Description | 
|---|
| Users() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addUser(int index,
       User vUser) | 
| void | addUser(User vUser) | 
| Enumeration<User> | enumerateUser()Method enumerateUser. | 
| boolean | equals(Object obj)Overrides the java.lang.Object.equals method. | 
| User[] | getUser()Method getUser.Returns the contents of the collection in an
 Array. | 
| User | getUser(int index)Method getUser. | 
| List<User> | getUserCollection()Method getUserCollection.Returns a reference to '_userList'. | 
| int | getUserCount()Method getUserCount. | 
| int | hashCode()Overrides the java.lang.Object.hashCode method. | 
| boolean | isValid()Method isValid. | 
| Iterator<User> | iterateUser()Method iterateUser. | 
| void | marshal(ContentHandler handler) | 
| void | marshal(Writer out) | 
| void | removeAllUser() | 
| boolean | removeUser(User vUser)Method removeUser. | 
| User | removeUserAt(int index)Method removeUserAt. | 
| void | setUser(int index,
       User vUser) | 
| void | setUser(List<User> vUserList)Sets the value of '_userList' by copying the given Vector. | 
| void | setUser(User[] vUserArray) | 
| void | setUserCollection(List<User> userList)Deprecated.   | 
| static Users | unmarshal(Reader reader)Method unmarshal. | 
| void | validate() | 
public void addUser(User vUser) throws IndexOutOfBoundsException
vUser - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic void addUser(int index,
                    User vUser)
             throws IndexOutOfBoundsException
index - vUser - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic Enumeration<User> enumerateUser()
public boolean equals(Object obj)
public User getUser(int index) throws IndexOutOfBoundsException
index - 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 List<User> getUserCollection()
public int getUserCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<User> iterateUser()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out - org.exolab.castor.xml.MarshalException - if object is
 null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException - if this
 object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler - IOException - if an IOException occurs during
 marshalingorg.exolab.castor.xml.ValidationException - if this
 object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException - if object is
 null or if any SAXException is thrown during marshalingpublic void removeAllUser()
public boolean removeUser(User vUser)
vUser - public User removeUserAt(int index)
index - public void setUser(int index,
                    User vUser)
             throws IndexOutOfBoundsException
index - vUser - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic void setUser(User[] vUserArray)
vUserArray - public void setUser(List<User> vUserList)
vUserList - the Vector to copy.public void setUserCollection(List<User> userList)
userList - the Vector to set.public static Users unmarshal(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 marshalingorg.exolab.castor.xml.ValidationException - if this
 object is an invalid instance according to the schemapublic void validate()
              throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
 object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.