package application.helpers.wrappers; import application.enums.EntryType; /** * This class wraps the information saved in one line of the ME File * * @author Bianca * */ public class MeSaveInfo { /** The value which should be saved **/ private String value; /** * The key to write this information. **/ private String saveKey; /** * Initializes the values. * @param entry The {@code EntryType} of this information * @param extension The name extension for the type * @param value The value of this information */ public MeSaveInfo(EntryType entry, String extension, String value) { this.value = value; this.saveKey=entry.getValue() + " "+extension; } /** * Initializes the values. * @param entry The {@code EntryType} of this information * @param value The value of this information */ public MeSaveInfo(EntryType entry, String value) { this(entry,"",value); } /** * Returns the value of this information * * @return The described value. */ public String getSaveValue() { return value; } /** * Returns the description / name of this infor (combination of the * {@link EntryType} and the extension * * @return The described value. */ public String getSaveKey() { return saveKey; } }