
package eu.scape_project.planning.model.values;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;


@Entity
@DiscriminatorValue("S")
public class FreeStringValue extends Value implements IOrdinalValue {

    private static final long serialVersionUID = 1L;

    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    
    public String toString() {
        if (value == null) {
            return "";
        }
        return value;
    }
    
    @Override
    public String getFormattedValue() {
        return value;
    }
    @Override
    public void parse(String text) {
        setValue(text);        
    }
    
}
