hudson.plugins.dumpinfo
Class MessagesUtils

java.lang.Object
  extended by hudson.plugins.dumpinfo.MessagesUtils

public final class MessagesUtils
extends java.lang.Object

Various utility functions for working with localized Messages.

Since:
1.0
Author:
Jesse Farinacci

Method Summary
static java.lang.String format(hudson.model.Computer computer)
          Format a Computer instance for output.
static java.lang.String format(hudson.model.Hudson hudson)
          Format a Hudson instance for output.
static java.lang.String format(hudson.model.JDK jdk)
          Format a JDK instance for output.
static java.lang.String format(hudson.PluginWrapper pluginWrapper)
          Format a PluginWrapper instance for output.
static java.lang.String formatEnvironmentVariable(java.lang.String key, java.lang.String value)
          Format a system environment variable.
static java.lang.String formatSystemProperty(java.lang.String key, java.lang.String value)
          Format a system property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

format

public static java.lang.String format(hudson.model.Computer computer)
Format a Computer instance for output.

Parameters:
computer - the computer instance to format
Returns:
the formatted string
See Also:
Messages.DumpInfo_Computer_Offline(Object, Object, Object), Messages.DumpInfo_Computer_Online(Object, Object, Object)

format

public static java.lang.String format(hudson.model.Hudson hudson)
Format a Hudson instance for output.

Parameters:
hudson - the Hudson instance to format
Returns:
the formatted computer string
See Also:
Messages.DumpInfo_Hudson(Object, Object)

format

public static java.lang.String format(hudson.model.JDK jdk)
Format a JDK instance for output.

Parameters:
jdk - the JDK instance to format
Returns:
the formatted string
See Also:
Messages.DumpInfo_Tool_JDK(Object, Object)

format

public static java.lang.String format(hudson.PluginWrapper pluginWrapper)
Format a PluginWrapper instance for output.

Parameters:
pluginWrapper - the plugin wrapper instance to format
Returns:
the formatted string
See Also:
Messages.DumpInfo_Plugin(Object, Object, Object)

formatEnvironmentVariable

public static java.lang.String formatEnvironmentVariable(java.lang.String key,
                                                         java.lang.String value)
Format a system environment variable.

Parameters:
key - the key from the system environment key=value pair
value - the value from the system environment key=value pair
Returns:
the formatted string
See Also:
Messages.DumpInfo_Environment_Variable(Object, Object)

formatSystemProperty

public static java.lang.String formatSystemProperty(java.lang.String key,
                                                    java.lang.String value)
Format a system property.

Parameters:
key - the key from the system property key=value pair
value - the value from the system property key=value pair
Returns:
the formatted string
See Also:
Messages.DumpInfo_Environment_Variable(Object, Object)


Copyright © 2004-2011. All Rights Reserved.