|
- package structures.basic;
-
- import java.util.HashSet;
- import java.util.Set;
-
- import utils.BasicObjectBuilders;
- import utils.StaticConfFiles;
-
- public class BetterUnit extends Unit {
-
- Set<String> keywords;
-
- public BetterUnit() {}
-
- public BetterUnit(Set<String> keywords) {
- super();
- this.keywords = keywords;
- }
-
- public Set<String> getKeywords() {
- return keywords;
- }
-
- public void setKeywords(Set<String> keywords) {
- this.keywords = keywords;
- };
-
-
- public static void main(String[] args) {
-
- BetterUnit unit = (BetterUnit)BasicObjectBuilders.loadUnit(StaticConfFiles.humanAvatar, 0, BetterUnit.class);
- Set<String> keywords = new HashSet<String>();
- keywords.add("MyKeyword");
- unit.setKeywords(keywords);
-
- System.err.println(unit.getClass());
-
- }
- }
|