1 package org.tigris.scarab.util.build.l10nchecker; 2 3 48 49 import java.util.HashMap ; 50 import java.util.Map ; 51 52 56 public class L10nIssueTemplates 57 { 58 private static Map issueMessageTypes = null; 59 60 70 public static void setMessageType (Class _clazz, int messageType) 71 { 72 if (issueMessageTypes == null) 73 { 74 issueMessageTypes = new HashMap (); 75 } 76 issueMessageTypes.put (_clazz, new Integer (messageType)); 77 } 78 79 89 public static int getMessageType (Class _clazz) 90 { 91 if (issueMessageTypes == null || !issueMessageTypes.containsKey(_clazz)) 92 { 93 return L10nIssue.MESSAGE_IGNORE; 94 } 95 return ((Integer )issueMessageTypes.get(_clazz)).intValue(); 96 } 97 98 101 public static void reset () 102 { 103 issueMessageTypes = null; 104 } 105 } 106 | Popular Tags |