KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > AbstractContext


1 package org.apache.slide.projector;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * @version $Revision: 1.3 $
8  */

9
10 public abstract class AbstractContext implements Context {
11     private List JavaDoc informations = new ArrayList JavaDoc();
12     private int informationNumber = 0;
13     private URI process;
14     private String JavaDoc step;
15
16     public void addInformation(Information info) {
17         if ( !informations.contains(info) ) {
18             informationNumber++;
19             info.setNumber(informationNumber);
20             informations.add(info);
21         }
22     }
23
24     public List JavaDoc getInformations() {
25         return informations;
26     }
27
28     public void setProcess(URI process) {
29         this.process = process;
30     }
31
32     public URI getProcess() {
33         return process;
34     }
35
36     public void setStep(String JavaDoc step) {
37         this.step = step;
38     }
39     
40     public String JavaDoc getStep() {
41         return step;
42     }
43 }
Popular Tags