01b1249898c54f45c6bac578c57122609956a172
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugIntValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugIntValue extends XDebugAbstractValue {
6         public XDebugIntValue(XDebugVariable variable, Node varNode,String TypeName) {
7                 super(variable, varNode,TypeName);
8         }
9         
10         public void setType(String typeName) {
11                 fType = XDebugAbstractValue.VALUETYPE_INT;
12                 fTypeName = typeName;
13         }
14         
15         public boolean supportsValueModification() {
16                 return true;
17         }
18                 
19         public void renderValueString(String dataString) {
20                 fValueString = dataString;
21         }
22         
23         public boolean verifyValue(String expression) {
24                 try {
25                         Integer.parseInt(expression);
26                 } catch (NumberFormatException e) {
27                         return false;
28                 }
29                 return true;
30         }
31 }