noraui.application.model.DemosModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noraui Show documentation
Show all versions of noraui Show documentation
Non-Regression Automation for User Interfaces
package noraui.application.model;
import java.util.ArrayList;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import noraui.model.ModelList;
public abstract class DemosModel extends ArrayList implements ModelList {
/**
*
*/
private static final long serialVersionUID = 257533336402277981L;
protected DemosModel() {
super();
}
protected DemosModel(DemosModel inputList) {
super(inputList);
}
/**
* {@inheritDoc}
*/
@Override
public String serialize() {
final GsonBuilder builder = new GsonBuilder();
builder.excludeFieldsWithoutExposeAnnotation();
builder.disableHtmlEscaping();
final Gson gson = builder.create();
return gson.toJson(this);
}
}