View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.ant;
5   
6   /**
7    * Stores LanguageVersion terse name value.
8    */
9   public class SourceLanguage {
10  	
11      private String name;
12      private String version;
13      
14      public String getVersion() {
15  		return version;
16  	}
17  
18  	public void setVersion(String version) {
19  		this.version = version;
20  	}
21  
22  	public String getName() {
23  		return name;
24  	}
25      
26  	public void setName(String name) {
27  		this.name = name;
28  	}
29  
30  	public String toString() {
31  		return "<language name=\"" + this.name + "\" version=\"" + this.version + "\" />";
32  	}
33  }