Initial implementation of the new Debug Plugin
[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         public XDebugStringValue(XDebugVariable variable, Node varNode,
9                         String typeName) {
10                 super(variable, varNode, typeName);
11                 fDataString=null;
12         }
13
14         public void setType(String typeName) {
15                 fType=XDebugAbstractValue.VALUETYPE_STRING;
16                 fTypeName=typeName;
17
18         }
19
20         public void renderValueString(String data) {
21                 fDataString=data;
22                 fValueString="\""+data+"\"";
23         }
24
25         public boolean supportsValueModification() {
26                 return true;
27         }
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 }