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