com.sun.xml.ws.config.metro.util
Class ParserUtil

java.lang.Object
  extended by com.sun.xml.ws.config.metro.util.ParserUtil

public class ParserUtil
extends Object


Method Summary
static boolean parseBooleanValue(String value)
          Return true if the value is "true" or "1".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseBooleanValue

public static boolean parseBooleanValue(String value)
                                 throws 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".
WebServiceException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.