| org.joda.time.convert.PartialConverter
All known Subclasses: org.joda.time.convert.LongConverter, org.joda.time.convert.NullConverter, org.joda.time.convert.StringConverter, org.joda.time.convert.ReadableInstantConverter, org.joda.time.convert.DateConverter, org.joda.time.convert.CalendarConverter, org.joda.time.convert.ReadablePartialConverter,
PartialConverter | public interface PartialConverter extends Converter(Code) | | PartialConverter defines how an object is converted to a ReadablePartial.
The two methods in this interface must be called in order, as the
getPartialValues method relies on the result of the
getChronology method being passed in.
author: Stephen Colebourne since: 1.0 |
getChronology | Chronology getChronology(Object object, DateTimeZone zone)(Code) | | Extracts the chronology from an object of this converter's type
where the time zone is specified.
Parameters: object - the object to convert Parameters: zone - the specified zone to use, null means default zone the chronology, never null throws: ClassCastException - if the object is invalid since: 1.3 |
getChronology | Chronology getChronology(Object object, Chronology chrono)(Code) | | Extracts the chronology from an object of this converter's type
where the chronology is specified.
Parameters: object - the object to convert Parameters: chrono - the chronology to use, null usually means ISO the chronology, not converted to UTC/local time zone, must be non-null valid throws: ClassCastException - if the object is invalid |
getPartialValues | int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono)(Code) | | Extracts the values of the partial from an object of this converter's type.
The chrono parameter is a hint to the converter, should it require a
chronology to aid in conversion.
Parameters: fieldSource - a partial that provides access to the fields.This partial may be incomplete and only getFieldType(int) should be used Parameters: object - the object to convert Parameters: chrono - the chronology to use, which is the non-null result of getChronology() the array of field values that match the fieldSource, must be non-null valid throws: ClassCastException - if the object is invalid |
getPartialValues | int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono, DateTimeFormatter parser)(Code) | | Extracts the values of the partial from an object of this converter's type.
The chrono parameter is a hint to the converter, should it require a
chronology to aid in conversion.
Parameters: fieldSource - a partial that provides access to the fields.This partial may be incomplete and only getFieldType(int) should be used Parameters: object - the object to convert Parameters: chrono - the chronology to use, which is the non-null result of getChronology() Parameters: parser - if converting from a String, the given parser is preferred the array of field values that match the fieldSource, must be non-null valid throws: ClassCastException - if the object is invalid since: 1.3 |
|
|