KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > repository > query > EvaluationContext


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.outerj.daisy.repository.query;
17
18 import org.outerj.daisy.repository.Document;
19 import org.outerj.daisy.repository.Version;
20
21 public class EvaluationContext {
22     private Document document;
23     private Version version;
24     private Long JavaDoc userId;
25
26     public Document getContextDocument() {
27         return document;
28     }
29
30     public Version getContextVersion() {
31         return version;
32     }
33
34     public void setContextDocument(Document document, Version version) {
35         this.document = document;
36         this.version = version;
37     }
38
39     public void setUserId(long userId) {
40         this.userId = new Long JavaDoc(userId);
41     }
42
43     public void setUserId(Long JavaDoc userId) {
44         this.userId = userId;
45     }
46
47     public Long JavaDoc getUserId() {
48         return userId;
49     }
50 }
51
Popular Tags