Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BooleanValue

        public BooleanValue()
    • Method Detail

      • parseExtendedBoolean

        public static boolean parseExtendedBoolean​(java.lang.String str)
        Return boolean value of a string. Unlike Boolean.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. Unlike Boolean.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