1 18 19 package org.apache.roller.ui.rendering.model; 20 21 import java.util.List ; 22 import java.util.Map ; 23 import org.apache.roller.RollerException; 24 import org.apache.roller.util.MessageUtilities; 25 26 27 31 public class MessageModel implements Model { 32 33 34 35 public String getModelName() { 36 return "text"; 37 } 38 39 40 41 public void init(Map initData) throws RollerException { 42 } 44 45 46 47 public String get(String key) { 48 return MessageUtilities.getString(key); 49 } 50 51 52 53 public String get(String key, List args) { 54 return MessageUtilities.getString(key, args); 55 } 56 57 } 58 | Popular Tags |