Joda Time API

org.joda.time.chrono
Class DelegateChronology

java.lang.Object
  |
  +--org.joda.time.Chronology
        |
        +--org.joda.time.chrono.DelegateChronology
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BuddhistChronology, ISOChronology

public abstract class DelegateChronology
extends Chronology

DelegateChronology delegates each method call to the chronology it wraps.

Since:
1.0
Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
protected DelegateChronology(Chronology chrono)
          Create a DelegateChronology for any chronology.
 
Method Summary
 DateTimeField centuryOfEra()
          Get the century of era field for this chronology.
 DateTimeField clockhourOfDay()
          Get the hour of day (offset to 1-24) field for this chronology.
 DateTimeField clockhourOfHalfday()
          Get the hour of am/pm (offset to 1-12) field for this chronology.
 DateTimeField dayOfMonth()
          Get the day of month field for this chronology.
 DateTimeField dayOfWeek()
          Get the day of week field for this chronology.
 DateTimeField dayOfYear()
          Get the day of year field for this chronology.
 DateTimeField era()
          Get the era field for this chronology.
protected  Chronology getChronology()
          Gets the wrapped chronology.
 DateTimeZone getDateTimeZone()
          Gets the time zone that this chronolog is using.
 DateTimeField halfdayOfDay()
          Get the AM(0) PM(1) field for this chronology.
 DateTimeField hourOfDay()
          Get the hour of day (0-23) field for this chronology.
 DateTimeField hourOfHalfday()
          Get the hour of am/pm (0-11) field for this chronology.
 DateTimeField millisOfDay()
          Get the millis of day field for this chronology.
 DateTimeField millisOfSecond()
          Get the millis of second field for this chronology.
 DateTimeField minuteOfDay()
          Get the minute of day field for this chronology.
 DateTimeField minuteOfHour()
          Get the minute of hour field for this chronology.
 DateTimeField monthOfYear()
          Get the month of year field for this chronology.
 DateTimeField secondOfDay()
          Get the second of day field for this chronology.
 DateTimeField secondOfMinute()
          Get the second of minute field for this chronology.
 DateTimeField weekOfWeekyear()
          Get the week of a week based year field for this chronology.
 DateTimeField weekyear()
          Get the year of a week based year field for this chronology.
abstract  Chronology withDateTimeZone(DateTimeZone zone)
          Get the Chronology in the any time zone.
abstract  Chronology withUTC()
          Get the Chronology in the UTC time zone.
 DateTimeField year()
          Get the year field for this chronology.
 DateTimeField yearOfCentury()
          Get the year field for this chronology.
 DateTimeField yearOfEra()
          Get the year of era field for this chronology.
 
Methods inherited from class org.joda.time.Chronology
getDateOnlyMillis, getTimeOnlyMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateChronology

protected DelegateChronology(Chronology chrono)
Create a DelegateChronology for any chronology.

Parameters:
chrono - the chronology
Throws:
java.lang.IllegalArgumentException - if chronology is null
Method Detail

getChronology

protected Chronology getChronology()
Gets the wrapped chronology.

Returns:
the wrapped Chronology

withUTC

public abstract Chronology withUTC()
Get the Chronology in the UTC time zone.

Specified by:
withUTC in class Chronology
Returns:
Chronology in UTC

withDateTimeZone

public abstract Chronology withDateTimeZone(DateTimeZone zone)
Get the Chronology in the any time zone.

Specified by:
withDateTimeZone in class Chronology
Returns:
Chronology in ant time zone
See Also:
ZonedChronology

getDateTimeZone

public DateTimeZone getDateTimeZone()
Gets the time zone that this chronolog is using.

Specified by:
getDateTimeZone in class Chronology
Returns:
the DateTimeZone

millisOfSecond

public DateTimeField millisOfSecond()
Get the millis of second field for this chronology.

Overrides:
millisOfSecond in class Chronology
Returns:
DateTimeField

millisOfDay

public DateTimeField millisOfDay()
Get the millis of day field for this chronology.

Overrides:
millisOfDay in class Chronology
Returns:
DateTimeField

secondOfMinute

public DateTimeField secondOfMinute()
Get the second of minute field for this chronology.

Overrides:
secondOfMinute in class Chronology
Returns:
DateTimeField

secondOfDay

public DateTimeField secondOfDay()
Get the second of day field for this chronology.

Overrides:
secondOfDay in class Chronology
Returns:
DateTimeField

minuteOfHour

public DateTimeField minuteOfHour()
Get the minute of hour field for this chronology.

Overrides:
minuteOfHour in class Chronology
Returns:
DateTimeField

minuteOfDay

public DateTimeField minuteOfDay()
Get the minute of day field for this chronology.

Overrides:
minuteOfDay in class Chronology
Returns:
DateTimeField

hourOfDay

public DateTimeField hourOfDay()
Get the hour of day (0-23) field for this chronology.

Overrides:
hourOfDay in class Chronology
Returns:
DateTimeField

clockhourOfDay

public DateTimeField clockhourOfDay()
Get the hour of day (offset to 1-24) field for this chronology.

Overrides:
clockhourOfDay in class Chronology
Returns:
DateTimeField

hourOfHalfday

public DateTimeField hourOfHalfday()
Get the hour of am/pm (0-11) field for this chronology.

Overrides:
hourOfHalfday in class Chronology
Returns:
DateTimeField

clockhourOfHalfday

public DateTimeField clockhourOfHalfday()
Get the hour of am/pm (offset to 1-12) field for this chronology.

Overrides:
clockhourOfHalfday in class Chronology
Returns:
DateTimeField

halfdayOfDay

public DateTimeField halfdayOfDay()
Get the AM(0) PM(1) field for this chronology.

Overrides:
halfdayOfDay in class Chronology
Returns:
DateTimeField

dayOfWeek

public DateTimeField dayOfWeek()
Get the day of week field for this chronology.

Overrides:
dayOfWeek in class Chronology
Returns:
DateTimeField

dayOfMonth

public DateTimeField dayOfMonth()
Get the day of month field for this chronology.

Overrides:
dayOfMonth in class Chronology
Returns:
DateTimeField

dayOfYear

public DateTimeField dayOfYear()
Get the day of year field for this chronology.

Overrides:
dayOfYear in class Chronology
Returns:
DateTimeField

weekOfWeekyear

public DateTimeField weekOfWeekyear()
Get the week of a week based year field for this chronology.

Overrides:
weekOfWeekyear in class Chronology
Returns:
DateTimeField

weekyear

public DateTimeField weekyear()
Get the year of a week based year field for this chronology.

Overrides:
weekyear in class Chronology
Returns:
DateTimeField

monthOfYear

public DateTimeField monthOfYear()
Get the month of year field for this chronology.

Overrides:
monthOfYear in class Chronology
Returns:
DateTimeField

year

public DateTimeField year()
Get the year field for this chronology.

Overrides:
year in class Chronology
Returns:
DateTimeField

yearOfEra

public DateTimeField yearOfEra()
Get the year of era field for this chronology.

Overrides:
yearOfEra in class Chronology
Returns:
DateTimeField

yearOfCentury

public DateTimeField yearOfCentury()
Get the year field for this chronology.

Overrides:
yearOfCentury in class Chronology
Returns:
DateTimeField

centuryOfEra

public DateTimeField centuryOfEra()
Get the century of era field for this chronology.

Overrides:
centuryOfEra in class Chronology
Returns:
DateTimeField

era

public DateTimeField era()
Get the era field for this chronology.

Overrides:
era in class Chronology
Returns:
DateTimeField

Joda Time API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.