1 package org.jahia.engines; 2 3 4 12 13 public class EngineMessage { 14 15 private String key; 16 private Object [] values; 17 18 public EngineMessage () { 19 this (null, null); 20 } 21 22 public EngineMessage (String key) { 23 this (key, null); 24 } 25 26 public EngineMessage (String key, Object value) { 27 this.key = key; 28 Object [] objectArray = new Object [1]; 29 objectArray[0] = value; 30 this.values = objectArray; 31 } 32 33 public EngineMessage (String key, Object value1, Object value2) { 34 this.key = key; 35 Object [] objectArray = new Object [2]; 36 objectArray[0] = value1; 37 objectArray[1] = value2; 38 this.values = objectArray; 39 } 40 41 public EngineMessage (String key, Object [] values) { 42 this.key = key; 43 this.values = values; 44 } 45 46 public String getKey () { 47 return key; 48 } 49 50 public Object [] getValues () { 51 return values; 52 } 53 } | Popular Tags |