Class ParserUtil


  • public class ParserUtil
    extends Object
    Author:
    Fabian Ritzmann
    • Method Detail

      • parseBooleanValue

        public static boolean parseBooleanValue​(String value)
                                         throws javax.xml.ws.WebServiceException
        Return true if the value is "true" or "1". Return false if the value is "false" or "0". Throw an exception otherwise. The test is case sensitive.
        Parameters:
        value - The String representation of the value. Must not be null.
        Returns:
        True if the value is "true" or "1". False if the value is "false" or "0".
        Throws:
        PolicyException - If the value is not "true", "false", "0" or "1".
        javax.xml.ws.WebServiceException