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
45 lines
1013 B
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;
|
|
}
|
|
|
|
|
|
}
|