Package ipsk.db.speech.utils
Class BooleanValue
- java.lang.Object
-
- ipsk.db.speech.utils.BooleanValue
-
public class BooleanValue extends java.lang.Object
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Constructor Summary
Constructors Constructor Description BooleanValue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
parseExtendedBoolean(java.lang.String str)
Return boolean value of a string.static java.lang.Boolean
parseExtendedBoolean(org.w3c.dom.Attr attr)
Return boolean value of a string.
-
-
-
Method Detail
-
parseExtendedBoolean
public static boolean parseExtendedBoolean(java.lang.String str)
Return boolean value of a string. UnlikeBoolean.valueOf(String)
this method includes "yes" and "no" as valid input values.- Parameters:
str
- String to parse- Returns:
- true if str is "yes", false if str is "no", return value of Boolean.valueOf otherwise
-
parseExtendedBoolean
public static java.lang.Boolean parseExtendedBoolean(org.w3c.dom.Attr attr)
Return boolean value of a string. UnlikeBoolean.valueOf(String)
this method includes "yes" and "no" as valid input values.- Parameters:
attr
- DOM attribute to parse- Returns:
- true if attribute value is "yes", false if it is "no", return value of Boolean.valueOf otherwise
-
-