Repository for the HealthTool which enables Apple users to analyse their health data from the Apple health app and prepares the data for contributing it for future studies on wearable data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1013 B

3 years ago
  1. package application.helpers.wrappers;
  2. /**
  3. * This class is needed for the {@link WriteHandler}. It wraps a StringBuilder for a
  4. * nested attribute together with its sub attribute names.
  5. * @author Bianca
  6. *
  7. */
  8. public class AttributeDataInfoTuple
  9. {
  10. /** The StringBuilder which will contain the sub attribute values **/
  11. private StringBuilder text;
  12. /** The names of the sub attributes**/
  13. private String[] attributeList;
  14. /**
  15. * Initializes the attributes. Creates a new StringBuilder for the values
  16. * @param attributeList Names of the sub attributes
  17. */
  18. public AttributeDataInfoTuple( String[] attributeList)
  19. {
  20. this.text=new StringBuilder();
  21. this.attributeList=attributeList;
  22. }
  23. /**
  24. * Returns the Builder which contains the sub attribute values
  25. * @return The described value.
  26. */
  27. public StringBuilder getBuilder()
  28. {
  29. return text;
  30. }
  31. /**
  32. * Returns the sub attribute names
  33. * @return The described value.
  34. */
  35. public String[] getSubAttributes()
  36. {
  37. return attributeList;
  38. }
  39. }