View Javadoc

1   package twcsckernel.serverKernel.utils;
2   
3   import java.util.HashSet;
4   import java.util.Set;
5   
6   /***
7    * Klasa reprezentująca zarejestrowany typ użytkownika.
8    * @author VMD Group
9    *
10   */
11  public class TypeData {
12  	
13  	private Set<String> paths = new HashSet<String>();
14  
15  	private String type;
16  
17  	public boolean addPluginPath(String path) {
18  		return paths.add(path);
19  	}
20  
21  	public String[] getPluginDirNames() {
22  		return paths.toArray(new String[0]);
23  	}
24  
25  	public void setTypeName(String type) {
26  		this.type = type;
27  	}
28  
29  	public String getTypeName() {
30  		return type;
31  	}
32  	
33  }