package pebl.result; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlIDREF; import pebl.benchmark.feature.Metric; @XmlAccessorType(XmlAccessType.NONE) public class Measurement { @XmlIDREF @XmlAttribute(required = true) private final Metric metric; @XmlAttribute(required = true) private final String value; public Measurement() { this(new Metric(), ""); } public Measurement(Metric metric, String value) { this.metric = metric; this.value = value; } public String getValue() { return value; } public Metric getMetric() { return metric; } }