org.sonar.plugins.utils
Class CollectorUtils
java.lang.Object
org.sonar.plugins.utils.CollectorUtils
public class CollectorUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectorUtils
public CollectorUtils()
parseNumber
public static double parseNumber(java.lang.String number,
java.util.Locale locale)
throws java.text.ParseException
- Throws:
java.text.ParseException
parseNumber
public static double parseNumber(java.lang.String number)
throws java.text.ParseException
- Throws:
java.text.ParseException
scaleValue
public static double scaleValue(double value)
scaleValue
public static double scaleValue(double value,
int decimals)
loadAndParseXmlReport
public static XmlReportParser loadAndParseXmlReport(java.io.File xmlFile)
findFileFromBuildDirectory
public static java.io.File findFileFromBuildDirectory(org.apache.maven.project.MavenProject project,
java.lang.String filename)
getDirectoryAndFile
public static java.lang.String[] getDirectoryAndFile(java.lang.String absoluteFilename,
java.lang.String sourceDir)
getDirectoryAndFile
public static java.lang.String[] getDirectoryAndFile(java.lang.String absoluteFilename,
java.util.List<java.lang.String> sourceDirs)
getJavaPackageAndClass
public static java.lang.String[] getJavaPackageAndClass(java.lang.String absoluteFilename,
java.util.List<java.lang.String> sourceDirs)
Copyright © 2007-2008 hortis. All Rights Reserved.