org.apache.cocoon.components.elementprocessor.types
Class BooleanConverter
java.lang.Object
org.apache.cocoon.components.elementprocessor.types.BooleanConverter
public class BooleanConverter
- extends Object
This class knows how to convert strings into numbers, and also
knows how to check the results against certain criteria
- Version:
- CVS $Id: BooleanConverter.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Marc Johnson (marc_johnson27591@hotmail.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extractBoolean
public static BooleanResult extractBoolean(String value)
- Given a string that is expected to hold a boolean, get the
boolean value.
- Parameters:
value
- the string holding the boolean
- Returns:
- a BooleanResult object containing either the boolean
value or an exception generated if there was a problem
with the value;
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.