01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.ejb.query;
12:
13: /**
14: * OBJECT(identification_variable).
15: */
16: public class ObjectNode extends Node {
17:
18: private String identifier;
19:
20: private NavBase navBase;
21:
22: public ObjectNode(String identifier) {
23: this .identifier = identifier;
24: }
25:
26: public Object arrive(NodeVisitor v, Object msg) {
27: return v.arriveObjectNode(this , msg);
28: }
29:
30: public String toStringImp() {
31: return "OBJECT(" + identifier + ")";
32: }
33:
34: public NavBase getNavBase() {
35: return navBase;
36: }
37:
38: public void resolve(ResolveContext rc) {
39: navBase = rc.checkIdVarExists(identifier, this);
40: }
41:
42: }
|