KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > ejb > query > ObjectNode


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.ejb.query;
13
14 /**
15  * OBJECT(identification_variable).
16  */

17 public class ObjectNode extends Node {
18
19     private String JavaDoc identifier;
20
21     private NavBase navBase;
22
23     public ObjectNode(String JavaDoc identifier) {
24         this.identifier = identifier;
25     }
26
27     public Object JavaDoc arrive(NodeVisitor v, Object JavaDoc msg) {
28         return v.arriveObjectNode(this, msg);
29     }
30
31     public String JavaDoc toStringImp() {
32         return "OBJECT(" + identifier + ")";
33     }
34
35     public NavBase getNavBase() {
36         return navBase;
37     }
38
39     public void resolve(ResolveContext rc) {
40         navBase = rc.checkIdVarExists(identifier, this);
41     }
42
43 }
44
45
Popular Tags