1 package net.sourceforge.phpeclipse.xdebug.php.model;
3 import org.w3c.dom.Node;
5 public class XDebugBooleanValue extends XDebugAbstractValue {
7 public XDebugBooleanValue(XDebugVariable variable, Node varNode,
9 super(variable, varNode, typeName);
12 public XDebugBooleanValue(XDebugVariable variable,String typeName) {
13 super(variable, typeName);
17 public boolean supportsValueModification() {
21 public void setType(String typeName) {
22 fType=XDebugAbstractValue.VALUETYPE_BOOLEAN;
25 public void renderValueString(String data) {
28 value=Integer.parseInt(data);
29 } catch (NumberFormatException e) {
30 data=data.toLowerCase();
31 if (data.equals("true") || data.equals("false"))
34 fValueString="not defined";
41 fValueString="not defined";
44 public boolean verifyValue(String expression) {
47 value=Integer.parseInt(expression);
48 } catch (NumberFormatException e) {
49 expression=expression.toLowerCase();
50 if (expression.equals("true") || expression.equals("false"))
55 if ((value>=0)&& (value <=1))