Package eu.woolplatform.utils.xml
Class SQLDateValueParser
- java.lang.Object
-
- eu.woolplatform.utils.xml.SQLDateValueParser
-
- All Implemented Interfaces:
XMLValueParser<org.joda.time.LocalDate>
public class SQLDateValueParser extends Object implements XMLValueParser<org.joda.time.LocalDate>
Values parser for SQL date values. It accepts strings formatted as yyyy-MM-dd.
-
-
Constructor Summary
Constructors Constructor Description SQLDateValueParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.LocalDateparse(String xml)Parses the specified string value.
-
-
-
Method Detail
-
parse
public org.joda.time.LocalDate parse(String xml) throws ParseException
Description copied from interface:XMLValueParserParses the specified string value.- Specified by:
parsein interfaceXMLValueParser<org.joda.time.LocalDate>- Parameters:
xml- the string value- Returns:
- the Java object
- Throws:
ParseException- if the string value is invalid
-
-