Package de.pangaea.metadataportal.utils
Class BooleanParser
- java.lang.Object
-
- de.pangaea.metadataportal.utils.BooleanParser
-
public final class BooleanParser extends Object
BooleanParser
is a simple static class supplying a method to parse booleans.- Author:
- Uwe Schindler
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
parseBoolean(String v)
Parses a boolean value expressed as String
-
-
-
Method Detail
-
parseBoolean
public static boolean parseBoolean(String v)
Parses a boolean value expressed as String- Throws:
IllegalArgumentException
- if uppercasev
is not "TRUE", "YES", "ON", "FALSE", "NO", "OFF"
-
-