All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.smi.protege.server.update.RemoteResponse Maven / Gradle / Ivy

package edu.stanford.smi.protege.server.update;

import java.util.List;

import edu.stanford.smi.protege.model.KnowledgeBase;
import edu.stanford.smi.protege.model.Localizable;
import edu.stanford.smi.protege.util.LocalizeUtils;

public class RemoteResponse extends OntologyUpdate implements Localizable {
  private static final long serialVersionUID = 8300863164211405883L;
private X response;
  
  /**
   * 
   * @param response the response the user selected
   * @param events the latest events which the client can use to update its cache.
   */
  public RemoteResponse(X response, List updates) {
    super(updates);
    this.response = response;
  }
  /**
   * @return the response the user selected
   */
  public X getResponse() {
    return response;
  }
  
  public void localize(KnowledgeBase kb) {
    super.localize(kb);
    LocalizeUtils.localize(response, kb);
  }
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy