1 package net.sourceforge.phpeclipse.xdebug.php.model;
3 import org.eclipse.debug.core.DebugException;
4 import org.w3c.dom.Node;
6 public class XDebugBooleanValue extends XDebugAbstractValue {
7 public XDebugBooleanValue(XDebugStackFrame variable, Node value) throws DebugException {
8 super(variable, value);
11 public boolean supportsValueModification() {
15 public void renderValueString(String data) {
18 value=Integer.parseInt(data);
19 } catch (NumberFormatException e) {
20 data=data.toLowerCase();
21 if (data.equals("true") || data.equals("false"))
24 fValueString="not defined";
31 fValueString="not defined";
34 public boolean verifyValue(String expression) {
37 value=Integer.parseInt(expression);
38 } catch (NumberFormatException e) {
39 expression=expression.toLowerCase();
40 if (expression.equals("true") || expression.equals("false"))
45 if ((value>=0)&& (value <=1))