1 2 12 package com.versant.core.ejb.query; 13 14 17 public class SetNode extends Node { 18 19 private String identifier; 20 private String fieldName; 21 private Node value; 22 23 public SetNode(String identifier, String fieldName, Node value) { 24 this.identifier = identifier; 25 this.fieldName = fieldName; 26 this.value = value; 27 } 28 29 public String getIdentifier() { 30 return identifier; 31 } 32 33 public String getFieldName() { 34 return fieldName; 35 } 36 37 public Node getValue() { 38 return value; 39 } 40 41 public Object arrive(NodeVisitor v, Object msg) { 42 return v.arriveSetNode(this, msg); 43 } 44 45 public String toStringImp() { 46 StringBuffer s = new StringBuffer (); 47 if (identifier != null) { 48 s.append(identifier); 49 s.append('.'); 50 } 51 s.append(fieldName); 52 s.append(" = "); 53 s.append(value); 54 return s.toString(); 55 } 56 57 public void resolve(ResolveContext rc) { 58 value.resolve(rc); 59 } 60 61 } 62 63 | Popular Tags |