001package org.hl7.fhir.r5.context;
002
003public class BaseLogger {
004
005  private int id = 0;
006  private String lastId;
007
008  
009  public String getLastId() {
010    return lastId;
011  }
012
013  protected String nextId() {
014    id++;
015    lastId = Integer.toString(id);
016    return lastId;
017  }
018  
019  public void clearLastId() {
020    lastId = null;    
021  }
022  
023}