1 package org.apache.slide.projector; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 9 10 public abstract class AbstractContext implements Context { 11 private List informations = new ArrayList (); 12 private int informationNumber = 0; 13 private URI process; 14 private String 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 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 step) { 37 this.step = step; 38 } 39 40 public String getStep() { 41 return step; 42 } 43 } | Popular Tags |