|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.users.Users
public class Users
Class Users.
| Constructor Summary | |
|---|---|
Users()
|
|
| Method Summary | |
|---|---|
void |
addUser(int index,
User vUser)
|
void |
addUser(User vUser)
|
Enumeration<User> |
enumerateUser()
Method enumerateUser. |
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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Users()
| Method Detail |
|---|
public void addUser(User vUser)
throws IndexOutOfBoundsException
vUser -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
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 | ||||||||