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 boolean supportsValueModification() {
16 public void setType(String typeName) {
17 fType=XDebugAbstractValue.VALUETYPE_BOOLEAN;
20 public void renderValueString(String data) {
23 value=Integer.parseInt(data);
24 } catch (NumberFormatException e) {
25 data=data.toLowerCase();
26 if (data.equals("true") || data.equals("false"))
29 fValueString="not defined";
36 fValueString="not defined";
39 public boolean verifyValue(String expression) {
42 value=Integer.parseInt(expression);
43 } catch (NumberFormatException e) {
44 expression=expression.toLowerCase();
45 if (expression.equals("true") || expression.equals("false"))
50 if ((value>=0)&& (value <=1))