return -1;
}
- if (this.getType() != 0) { /* 0 = int type */
+ if (this.getType() != Type.INTEGER) {
throw new StateValueTypeException();
}
return (Integer) this.getValue();
return "nullValue"; //$NON-NLS-1$
}
- if (this.getType() != 1) { /* 1 = string type */
+ if (this.getType() != Type.STRING) {
throw new StateValueTypeException();
}
return (String) this.getValue();