package application.helpers.wrappers; /** * This class is needed for the {@link WriteHandler}. It wraps a StringBuilder for a * nested attribute together with its sub attribute names. * @author Bianca * */ public class AttributeDataInfoTuple { /** The StringBuilder which will contain the sub attribute values **/ private StringBuilder text; /** The names of the sub attributes**/ private String[] attributeList; /** * Initializes the attributes. Creates a new StringBuilder for the values * @param attributeList Names of the sub attributes */ public AttributeDataInfoTuple( String[] attributeList) { this.text=new StringBuilder(); this.attributeList=attributeList; } /** * Returns the Builder which contains the sub attribute values * @return The described value. */ public StringBuilder getBuilder() { return text; } /** * Returns the sub attribute names * @return The described value. */ public String[] getSubAttributes() { return attributeList; } }