|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.xml.Child
christophedelory.betty.xml.IdDetails
christophedelory.betty.xml.CountryDetails
christophedelory.betty.xml.LocationDetails
public class LocationDetails
The definition of an event's location.
LocationBean
,
Serialized FormConstructor Summary | |
---|---|
LocationDetails()
|
Method Summary | |
---|---|
void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addSubLocation(LocationDetails location)
Adds a child location to this one. |
LocationDetails |
findLocation(String locationId)
Returns the location with the specified identifier in this locations list. |
String |
getParentId()
Returns the identifier of the parent location, if any. |
List<LocationDetails> |
getSubLocations()
Returns a list of child locations. |
String |
getTimeZone()
Returns the time zone of this location. |
String |
getTimeZoneId()
Returns the identifier of the time zone of this location. |
void |
setParentId(String id)
Initializes the identifier of the parent location. |
void |
setTimeZoneId(String timeZone)
Initializes the identifier of the time zone of this location. |
Methods inherited from class christophedelory.betty.xml.CountryDetails |
---|
getCountry, getCountryBoolean, isCountry, setCountry, setCountryBoolean, setIsCountry |
Methods inherited from class christophedelory.betty.xml.IdDetails |
---|
addDescription, addLink, findDescriptionByLocale, findLinkByLocale, getDescriptions, getId, getLinks, setId |
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 |
---|
public LocationDetails()
Method Detail |
---|
public void setParentId(String id)
id
- a location identifier. May be null
.getParentId()
public String getParentId()
null
.setParentId(String)
public String getTimeZone()
null
.getTimeZoneId()
,
Child.getParent()
public void setTimeZoneId(String timeZone)
timeZone
- a time zone identifier. May be null
.getTimeZoneId()
public String getTimeZoneId()
null
.setTimeZoneId(String)
,
getTimeZone()
public List<LocationDetails> getSubLocations()
null
.addSubLocation(LocationDetails)
public void addSubLocation(LocationDetails location)
location
- a location. Shall not be null
.
NullPointerException
- if location
is null
.getSubLocations()
public LocationDetails findLocation(String locationId)
locationId
- a location identifier. May be null
.
null
if none could be found.public void accept(XmlVisitor visitor) throws Exception
IdDetails
accept
in interface XmlRoot
accept
in class IdDetails
visitor
- a visitor. Shall not be null
.
NullPointerException
- if visitor
is null
.
Exception
- if any error occurs during the visit.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |