Betty v1.1.0

christophedelory.betty.xml
Class UsersDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.UsersDetails
All Implemented Interfaces:
XmlRoot, Serializable

public class UsersDetails
extends Child
implements XmlRoot

A list of users.

Version:
$Revision$
Author:
Christophe Delory
See Also:
Serialized Form

Constructor Summary
UsersDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 void addUser(UserDetails user)
          Adds a user to this list.
 List<UserDetails> getUsers()
          Returns the list of users.
 
Methods inherited from class christophedelory.betty.xml.Child
getParent, getRoot, getRoot, getVersion, setParent, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface christophedelory.betty.xml.XmlRoot
getVersion, setVersion
 

Constructor Detail

UsersDetails

public UsersDetails()
Method Detail

getUsers

public List<UserDetails> getUsers()
Returns the list of users.

Returns:
a list of users. May be empty but not null.
See Also:
addUser(UserDetails)

addUser

public void addUser(UserDetails user)
Adds a user to this list.

Parameters:
user - a user. Shall not be null.
Throws:
NullPointerException - if user is null.
See Also:
getUsers()

accept

public void accept(XmlVisitor visitor)
            throws Exception
Description copied from interface: XmlRoot
Accepts the specified XML visitor.

Specified by:
accept in interface XmlRoot
Parameters:
visitor - a visitor. Shall not be null.
Throws:
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.