com.izforge.izpack.installer.util
Class PackHelper

java.lang.Object
  extended by com.izforge.izpack.installer.util.PackHelper

public class PackHelper
extends Object

Pack helper methods.

Author:
Tim Anderson

Constructor Summary
PackHelper()
           
 
Method Summary
static String getPackDescription(Pack pack, Messages messages)
          Returns a localised description for a pack.
static String getPackName(Pack pack, Messages messages)
          Returns a localised name for a pack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackHelper

public PackHelper()
Method Detail

getPackName

public static String getPackName(Pack pack,
                                 Messages messages)
Returns a localised name for a pack.

This uses Pack.getLangPackId() to locate the localised name for the pack.

If no localised name exists, Pack.getName() will be returned.

Parameters:
pack - the pack
messages - the messages. May be null
Returns:
the pack name

getPackDescription

public static String getPackDescription(Pack pack,
                                        Messages messages)
Returns a localised description for a pack.

This uses "<langPackId>.description" to locate the localised name for the pack.

If no localised description exists, Pack.getDescription() wil be returned.

Parameters:
pack - the pack
messages - the messages. May be null
Returns:
the pack description. May be null


Copyright © 2018. All rights reserved.