Switch to unified view

a b/recommendation-engine/src/main/java/eu/alfred/personalization_manager/model/AttributesHelper.java
1
package eu.alfred.personalization_manager.model;
2
3
import java.lang.reflect.Field; 
4
import java.util.HashSet;
5
6
public class AttributesHelper {
7
  
8
  public HashSet<String> getUserProfileFields() {
9
      
10
      UserProfile userProfile = new UserProfile();
11
      Class<?> c = userProfile.getClass();
12
      Field[] fields = c.getDeclaredFields();
13
      HashSet<String> userProfileFields = new HashSet<String>();
14
      
15
      for(Field field : fields)           
16
          userProfileFields.add(field.getName());
17
      
18
      
19
      return userProfileFields;
20
  }
21
  
22
      
23
  
24
}