public class HijrahDateConverter extends AbstractSingleValueConverter
HijrahDate
to a string.Constructor and Description |
---|
HijrahDateConverter()
Constructs a HijrahDateConverter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type.
|
protected ChronoLocalDate |
chronoLocalDateOf(HijrahEra era,
int prolepticYear,
int month,
int dayOfMonth) |
protected HijrahEra |
eraOf(String id) |
Object |
fromString(String str)
Unmarshals an Object from its single value representation.
|
protected ChronoLocalDate |
parseChronoLocalDate(String str,
String dateTypeName,
Set<Chronology> chronologies) |
toString
public HijrahDateConverter()
public boolean canConvert(Class type)
ConverterMatcher
canConvert
in interface ConverterMatcher
canConvert
in class AbstractSingleValueConverter
type
- the Class representing the object type to be convertedpublic Object fromString(String str)
SingleValueConverter
fromString
in interface SingleValueConverter
fromString
in class AbstractSingleValueConverter
str
- the String with the single value of the Objectprotected ChronoLocalDate chronoLocalDateOf(HijrahEra era, int prolepticYear, int month, int dayOfMonth)
protected ChronoLocalDate parseChronoLocalDate(String str, String dateTypeName, Set<Chronology> chronologies)
Copyright © 2004–2017 XStream. All rights reserved.