org.joda.time.contrib.i18n
Class CLDRTerritory

java.lang.Object
  extended by org.joda.time.contrib.i18n.Territory
      extended by org.joda.time.contrib.i18n.CLDRTerritory

public class CLDRTerritory
extends Territory

Provides time data for a specific territory, typically a country.

Many pieces of data used in dates and times varies by territory. This class provides access to that data.


Method Summary
 int getBusinessWeekEnd()
          Gets the day of week that the business week ends.
 int getBusinessWeekStart()
          Gets the day of week that the business week starts.
 int getFirstDayOfWeek()
          Gets the first day of the week.
 String getID()
          Gets the territory id.
 int getWeekendEnd()
          Gets the day of week that the weekend ends.
 int getWeekendStart()
          Gets the day of week that the weekend starts.
 DateTimeZone[] getZones()
          Gets the time zones applicable for the territory.
 
Methods inherited from class org.joda.time.contrib.i18n.Territory
equals, forID, getZone, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getID

public String getID()
Description copied from class: Territory
Gets the territory id.

Specified by:
getID in class Territory
Returns:
the territory id, never null

getZones

public DateTimeZone[] getZones()
Description copied from class: Territory
Gets the time zones applicable for the territory.

Specified by:
getZones in class Territory
Returns:
the array of zones, never null

getFirstDayOfWeek

public int getFirstDayOfWeek()
Description copied from class: Territory
Gets the first day of the week. The value is expressed using ISO values (1=Mon,7=Sun).

Specified by:
getFirstDayOfWeek in class Territory
Returns:
the first day of the week

getBusinessWeekStart

public int getBusinessWeekStart()
Description copied from class: Territory
Gets the day of week that the business week starts. The value is expressed using ISO values (1=Mon,7=Sun).

Specified by:
getBusinessWeekStart in class Territory
Returns:
the day of week that the business week starts

getBusinessWeekEnd

public int getBusinessWeekEnd()
Description copied from class: Territory
Gets the day of week that the business week ends. The value is expressed using ISO values (1=Mon,7=Sun).

Specified by:
getBusinessWeekEnd in class Territory
Returns:
the day of week that the business week ends

getWeekendStart

public int getWeekendStart()
Description copied from class: Territory
Gets the day of week that the weekend starts. The value is expressed using ISO values (1=Mon,7=Sun).

Specified by:
getWeekendStart in class Territory
Returns:
the day of week that the weekend starts

getWeekendEnd

public int getWeekendEnd()
Description copied from class: Territory
Gets the day of week that the weekend ends. The value is expressed using ISO values (1=Mon,7=Sun).

Specified by:
getWeekendEnd in class Territory
Returns:
the day of week that the weekend ends


Copyright © 2006 Joda.org. All Rights Reserved.