org.tigris.scarab.util.build.l10nchecker
Class L10nIssueTemplates

java.lang.Object
  extended byorg.tigris.scarab.util.build.l10nchecker.L10nIssueTemplates

public class L10nIssueTemplates
extends java.lang.Object

Static utility class to hold the issue message types as defined by the task


Constructor Summary
L10nIssueTemplates()
           
 
Method Summary
static int getMessageType(java.lang.Class _clazz)
          Retrive the message type of the class representing this issue.
static void reset()
          Clear all definitions
static void setMessageType(java.lang.Class _clazz, int messageType)
          Set the severity of an issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

L10nIssueTemplates

public L10nIssueTemplates()
Method Detail

setMessageType

public static void setMessageType(java.lang.Class _clazz,
                                  int messageType)
Set the severity of an issue. In case this function is called the first time, issueMessageTypes is initialized.

Parameters:
_clazz - The class to set the severity for.
messageType - The new severity

getMessageType

public static int getMessageType(java.lang.Class _clazz)
Retrive the message type of the class representing this issue.

Parameters:
_clazz - The class representing the issue (usually one of org.tigris.scarab.util.build.l10nchecker.issues.*Issue
Returns:
The message type (see L10nIssue for details. In case the class is not represented in issueMessageTypes, the function returns null.

reset

public static void reset()
Clear all definitions



Copyright © 2000-2004 Tigris.org. All Rights Reserved.