/* * Copyright (c) 2014. The Trustees of Indiana University. * * This version of the code is licensed under the MPL 2.0 Open Source license with additional * healthcare disclaimer. If the user is an entity intending to commercialize any application * that uses this code in a for-profit venture, please contact the copyright holder. */ package com.muzima.model; import java.io.Serializable; public abstract class BaseForm implements Serializable { protected String name; protected String description; protected String discriminator; protected String formUuid; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getDiscriminator() { return discriminator; } public void setDiscriminator(final String discriminator) { this.discriminator = discriminator; } public String getFormUuid() { return formUuid; } public void setFormUuid(String formUuid) { this.formUuid = formUuid; } public boolean hasData() { return this instanceof FormWithData; } }