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