package pt.utl.ist.fenix.tools.resources; import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.commons.lang.StringUtils; public class LabelFormatter implements Serializable { public final static String ENUMERATION_RESOURCES = "enum"; public final static String APPLICATION_RESOURCES = "application"; private static class Label implements Serializable { private String key; private String bundle; private String[] args; public Label(String bundle, String key, String... args) { super(); this.bundle = bundle; this.key = key; this.args = args; } public String getBundle() { return bundle; } public void setBundle(String bundle) { this.bundle = bundle; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public boolean isUseBundle() { return !StringUtils.isEmpty(this.bundle); } public String[] getArgs() { return this.args; } } private List