View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.renderers;
5   
6   /**
7    *
8    * @author Brian Remedios
9    *
10   * @param <T>
11   */
12  public class ColumnDescriptor<T extends Object> {
13  
14  	public final String id;
15  	public final String title;
16  	public final Accessor<T> accessor;
17  
18      public interface Accessor<T extends Object> { String get(int idx, T violation, String lineSeparator); }
19  
20  	public ColumnDescriptor(String theId, String theTitle, Accessor<T> theAccessor) {
21  		id = theId;
22  		title = theTitle;
23  		accessor = theAccessor;
24  	}
25  }