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

Constructor Summary
WorkspaceFile(java.lang.String fileName)
          Creates a new instance of WorkspaceFile.
 
Method Summary
 java.lang.String getName()
          Returns the filename name of this file.
 java.lang.String getShortName()
          Returns a readable name of this workspace file without path prefix.
 
Methods inherited from class hudson.plugins.pmd.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, annotationAdded, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackageCategoryName, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildPriorities
 
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

getName

public java.lang.String getName()
Returns the filename name of this file.

Returns:
the name

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.


Copyright © 2008. All Rights Reserved.