Package net.sf.basedb.util.extensions
Class ExtensionsUtil
- java.lang.Object
-
- net.sf.basedb.util.extensions.ExtensionsUtil
-
public class ExtensionsUtil extends Object
Utility class collecting some useful functions related to extensions.- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
-
Constructor Summary
Constructors Constructor Description ExtensionsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getName(Extension<?> ext)
Get the name of the extension.
-
-
-
Method Detail
-
getName
public static String getName(Extension<?> ext)
Get the name of the extension. This will first check ifExtension.getAbout()
contains a name and use that. Otherwise, the id is used as the name.- Parameters:
ext
- An extension- Returns:
- The name or id of the extension
-
-