hudson.plugins.analysis.util
Class PackageDetectors

java.lang.Object
  extended by hudson.plugins.analysis.util.PackageDetectors

public final class PackageDetectors
extends Object

Provides convenient methods to determine the package or namespace names of a file.

Author:
Ulli Hafner

Field Summary
static String UNDEFINED_PACKAGE
          If no package could be assigned this value is used as package name.
 
Method Summary
static String detectPackageName(String fileName)
          Detects the package name of the specified file based on several detector strategies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_PACKAGE

public static final String UNDEFINED_PACKAGE
If no package could be assigned this value is used as package name.

See Also:
Constant Field Values
Method Detail

detectPackageName

public static String detectPackageName(String fileName)
Detects the package name of the specified file based on several detector strategies.

Parameters:
fileName - the filename of the file to scan
Returns:
the package name or an empty string


Copyright © 2004-2012 Hudson. All Rights Reserved.