Betty v1.1.0

christophedelory.betty.xml
Class LocationsDetails

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

public class LocationsDetails
extends Child
implements XmlRoot

A list of locations.

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

Constructor Summary
LocationsDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 void addLocation(LocationDetails location)
          Adds a location to this list.
 LocationDetails findLocation(String locationId)
          Returns the location with the specified identifier in this locations list.
 List<LocationDetails> getLocations()
          Returns the list of locations.
 
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

LocationsDetails

public LocationsDetails()
Method Detail

getLocations

public List<LocationDetails> getLocations()
Returns the list of locations.

Returns:
a list of locations. May be empty but not null.
See Also:
addLocation(LocationDetails)

addLocation

public void addLocation(LocationDetails location)
Adds a location to this list.

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

findLocation

public LocationDetails findLocation(String locationId)
Returns the location with the specified identifier in this locations list.

Parameters:
locationId - a location identifier. May be null.
Returns:
a location, or null if none could be found.
Since:
1.0.0

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.