b2d0231bb3c74c52679c0b9960c574d6185a97b9
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugStringValue.java
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
9         public XDebugStringValue(XDebugVariable variable, Node varNode,
10                         String typeName) {
11                 super(variable, varNode, typeName);
12                 fDataString = null;
13         }
14
15         public void setType(String typeName) {
16                 fType = XDebugAbstractValue.VALUETYPE_STRING;
17                 fTypeName = typeName;
18
19         }
20
21         public void renderValueString(String data) {
22                 fDataString = data;
23                 fValueString = "\"" + data + "\"";
24         }
25
26         public boolean supportsValueModification() {
27                 return true;
28         }
29
30         public String toString() {
31                 return fDataString;
32         }
33
34         public boolean verifyValue(String expression) {
35                 // TODO Auto-generated method stub
36                 return true;
37         }
38
39 }