
org.bidib.wizard.mvc.main.model.Flag Maven / Gradle / Ivy
package org.bidib.wizard.mvc.main.model;
import org.apache.commons.lang.StringUtils;
import org.bidib.wizard.locale.Resources;
public class Flag {
private int id;
private String label;
public Flag() {
}
public Flag(int id) {
this(id, null);
}
public Flag(int id, String label) {
this.id = id;
this.label = label;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String toString() {
String result = null;
if (!StringUtils.isBlank(label)) {
result = label;
}
else {
result = Resources.getString(getClass(), "label") + "_" + id;
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy