org.sonar.plugins.utils
Class CollectorUtils

java.lang.Object
  extended by org.sonar.plugins.utils.CollectorUtils

public class CollectorUtils
extends java.lang.Object


Constructor Summary
CollectorUtils()
           
 
Method Summary
static java.io.File findFileFromBuildDirectory(org.apache.maven.project.MavenProject project, java.lang.String filename)
           
static java.lang.String[] getDirectoryAndFile(java.lang.String absoluteFilename, java.util.List<java.lang.String> sourceDirs)
           
static java.lang.String[] getDirectoryAndFile(java.lang.String absoluteFilename, java.lang.String sourceDir)
           
static java.lang.String[] getJavaPackageAndClass(java.lang.String absoluteFilename, java.util.List<java.lang.String> sourceDirs)
           
static XmlReportParser loadAndParseXmlReport(java.io.File xmlFile)
           
static double parseNumber(java.lang.String number)
           
static double parseNumber(java.lang.String number, java.util.Locale locale)
           
static double scaleValue(double value)
           
static double scaleValue(double value, int decimals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectorUtils

public CollectorUtils()
Method Detail

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.