Class 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 Detail

      • SQLDateValueParser

        public SQLDateValueParser()
    • Method Detail

      • parse

        public org.joda.time.LocalDate parse​(String xml)
                                      throws ParseException
        Description copied from interface: XMLValueParser
        Parses the specified string value.
        Specified by:
        parse in interface XMLValueParser<org.joda.time.LocalDate>
        Parameters:
        xml - the string value
        Returns:
        the Java object
        Throws:
        ParseException - if the string value is invalid