hudson.plugins.covcomplplot.util
Class QDUtil

java.lang.Object
  extended by hudson.plugins.covcomplplot.util.QDUtil

public class QDUtil
extends java.lang.Object


Field Summary
static org.dom4j.DocumentFactory factory
           
static java.util.Map<java.lang.String,java.text.MessageFormat> templateCache
           
 
Constructor Summary
QDUtil()
           
 
Method Summary
static int compareVersion(java.lang.String v1, java.lang.String v2)
           
static hudson.FilePath[] findFile(hudson.FilePath basePath, java.lang.String pattern)
           
static java.lang.String getClassResourcePath(java.lang.Class<?> clazz, java.lang.String extension)
           
static java.lang.String getIcons(java.lang.String iconName)
           
static java.lang.String getPlugInDir()
           
static java.text.MessageFormat getTemplate(java.lang.String location)
           
static org.dom4j.Document getXmlFileDocument(java.io.InputStream stream)
           
static org.dom4j.Document getXmlFileDocument(java.io.InputStream stream, org.dom4j.DocumentFactory factory)
           
static org.dom4j.Element getXPathNode(org.dom4j.Node node, java.lang.String xpathStr)
           
static java.util.List<org.dom4j.Element> getXPathNodeList(org.dom4j.Node node, java.lang.String xpathStr)
           
static java.lang.String getXPathNodeText(org.dom4j.Node node, java.lang.String xpathStr)
           
static boolean isKlocworkRecognizedFile(java.lang.String file)
           
static java.lang.String normalisedVersion(java.lang.String version)
           
static java.lang.String normalisedVersion(java.lang.String version, java.lang.String sep, int maxWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public static org.dom4j.DocumentFactory factory

templateCache

public static java.util.Map<java.lang.String,java.text.MessageFormat> templateCache
Constructor Detail

QDUtil

public QDUtil()
Method Detail

isKlocworkRecognizedFile

public static boolean isKlocworkRecognizedFile(java.lang.String file)

getXPathNodeText

public static java.lang.String getXPathNodeText(org.dom4j.Node node,
                                                java.lang.String xpathStr)
                                         throws NoXPathContentException
Throws:
NoXPathContentException

getXPathNodeList

public static java.util.List<org.dom4j.Element> getXPathNodeList(org.dom4j.Node node,
                                                                 java.lang.String xpathStr)

compareVersion

public static int compareVersion(java.lang.String v1,
                                 java.lang.String v2)

normalisedVersion

public static java.lang.String normalisedVersion(java.lang.String version)

normalisedVersion

public static java.lang.String normalisedVersion(java.lang.String version,
                                                 java.lang.String sep,
                                                 int maxWidth)

getClassResourcePath

public static java.lang.String getClassResourcePath(java.lang.Class<?> clazz,
                                                    java.lang.String extension)

getTemplate

public static java.text.MessageFormat getTemplate(java.lang.String location)

getXPathNode

public static org.dom4j.Element getXPathNode(org.dom4j.Node node,
                                             java.lang.String xpathStr)
                                      throws NoXPathContentException
Throws:
NoXPathContentException

getXmlFileDocument

public static org.dom4j.Document getXmlFileDocument(java.io.InputStream stream,
                                                    org.dom4j.DocumentFactory factory)
                                             throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

getXmlFileDocument

public static org.dom4j.Document getXmlFileDocument(java.io.InputStream stream)
                                             throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException

findFile

public static hudson.FilePath[] findFile(hudson.FilePath basePath,
                                         java.lang.String pattern)

getIcons

public static java.lang.String getIcons(java.lang.String iconName)

getPlugInDir

public static java.lang.String getPlugInDir()


Copyright © 2010. All Rights Reserved.