17168e364106f96a31df93847598543ecea16a67
[phpeclipse.git] /
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugStringValue extends XDebugAbstractValue {
6
7         private String fDataString;
8         public XDebugStringValue(XDebugVariable variable, Node varNode,
9                         String typeName) {
10                 super(variable, varNode, typeName);
11                 fDataString=null;
12         }
13         
14         public XDebugStringValue(XDebugVariable variable, String typeName) {
15                 super(variable, typeName);
16                 fDataString=null;
17         }
18
19
20         public void setType(String typeName) {
21                 fType=XDebugAbstractValue.VALUETYPE_STRING;
22                 fTypeName=typeName;
23
24         }
25
26         public void renderValueString(String data) {
27                 fDataString=data;
28                 fValueString="\""+data+"\"";
29         }
30
31         public boolean supportsValueModification() {
32                 return true;
33         }
34
35         
36         public String toString() {
37                 return fDataString;
38         }
39
40         public boolean verifyValue(String expression) {
41                 // TODO Auto-generated method stub
42                 return true;
43         }
44
45 }