@XmlRootElement
@SuppressWarnings("serial")
public class ForwardingMode extends Property {
- @XmlElement
+ @XmlElement(name="value")
private final int modeValue;
public static final int REACTIVE_FORWARDING = 0;
public static final int PROACTIVE_FORWARDING = 1;
public String toString() {
return "Mode[" + modeValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return (modeValue == ForwardingMode.PROACTIVE_FORWARDING) ? "Proactive" : "Reactive";
+ }
}
\ No newline at end of file