Package eu.woolplatform.utils.xml
Class BooleanValueParser
- java.lang.Object
-
- eu.woolplatform.utils.xml.BooleanValueParser
-
- All Implemented Interfaces:
XMLValueParser<Boolean>
public class BooleanValueParser extends Object implements XMLValueParser<Boolean>
Values parser for boolean values. It accepts strings "0" or "false" for false, and "1" or "true" for true. The string comparison is case-insensitive.
-
-
Constructor Summary
Constructors Constructor Description BooleanValueParser()
-
-
-
Method Detail
-
parse
public Boolean parse(String xml) throws ParseException
Description copied from interface:XMLValueParserParses the specified string value.- Specified by:
parsein interfaceXMLValueParser<Boolean>- Parameters:
xml- the string value- Returns:
- the Java object
- Throws:
ParseException- if the string value is invalid
-
-