hudson.plugins.pmd.util.model
Class WorkspaceFile

java.lang.Object
  extended by hudson.plugins.pmd.util.model.AnnotationContainer
      extended by hudson.plugins.pmd.util.model.WorkspaceFile
All Implemented Interfaces:
AnnotationProvider, java.io.Serializable

public class WorkspaceFile
extends AnnotationContainer

A serializable Java Bean class representing a file in the Hudson workspace.

Author:
Ulli Hafner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.pmd.util.model.AnnotationContainer
AnnotationContainer.Hierarchy
 
Constructor Summary
WorkspaceFile(java.lang.String fileName)
          Creates a new instance of WorkspaceFile.
 
Method Summary
 java.lang.String getShortName()
          Returns a readable name of this workspace file without path prefix.
 java.lang.String getTempName()
          Returns a file name for a temporary file that will hold the contents of the source.
 
Methods inherited from class hudson.plugins.pmd.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, containsCategory, containsFile, containsModule, containsPackage, containsType, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getCategories, getCategory, getContainer, getFile, getFile, getFiles, getHighAnnotations, getHighPriority, getLowAnnotations, getLowPriority, getModule, getModules, getName, getNormalAnnotations, getNormalPriority, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackage, getPackageCategoryName, getPackages, getToolTip, getType, getTypes, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceFile

public WorkspaceFile(java.lang.String fileName)
Creates a new instance of WorkspaceFile.

Parameters:
fileName - absolute path of this file
Method Detail

getShortName

public java.lang.String getShortName()
Returns a readable name of this workspace file without path prefix.

Returns:
a readable name of this workspace file.

getTempName

public java.lang.String getTempName()
Returns a file name for a temporary file that will hold the contents of the source.

Returns:
the temporary name


Copyright © 2008. All Rights Reserved.