1 /*******************************************************************************
2 * Copyhacked (H) 2012-2025.
3 * This program and the accompanying materials
4 * are made available under no term at all, use it like
5 * you want, but share and discuss it
6 * every time possible with every body.
7 *
8 * Contributors:
9 * ron190 at ymail dot com - initial implementation
10 ******************************************************************************/
11 package com.jsql.model.bean.util;
12
13 /**
14 * A request sent by the Model to the View in order to update the main window.
15 * Used with the Observer pattern.
16 */
17 public class Request {
18
19 /**
20 * Message identifier for the interaction.
21 */
22 private Interaction message;
23
24 /**
25 * List of custom parameters.
26 */
27 private Object[] parameters;
28
29
30 // Getter and setter
31
32 public Interaction getMessage() {
33 return this.message;
34 }
35
36 public Object[] getParameters() {
37 return this.parameters;
38 }
39
40 public void setMessage(Interaction message) {
41 this.message = message;
42 }
43
44 public void setParameters(Object... parameters) {
45 this.parameters = parameters;
46 }
47 }