Categorize2Real extends Categorize<RealParameter, RealLiteral> implements RealParameter { @Override public Double getValue(ResultSet rs, long fid) throws ParameterException{ if (rs == null){ throw new ParameterException("No feature"); } return getParameter(rs, fid).getValue(rs, fid); } Categorize2Real(RealParameter initialClass, RealLiteral fallback, RealParameter lookupValue);  Categorize2Real(CategorizeType expr); @Override Double getValue(ResultSet rs, long fid); @Override Double getValue(Map<String,Object> map); @Override void setValue(int i, RealParameter value); @Override void setFallbackValue(RealLiteral l); @Override void setContext(RealParameterContext ctx); @Override String toString(); @Override RealParameterContext getContext(); @Override int compareTo(Object o);  }
@Test public void testFromJAXB() throws Exception { Categorize2Real c2r = getCategorize(); assertTrue(c2r.get(0).getValue(null, 0) == 0.3); assertTrue(c2r.get(1).getValue(null, 0) == 0.4); assertTrue(c2r.get(2).getValue(null, 0) == 0.45); assertTrue(c2r.get(3).getValue(null, 0) == 0.5); assertTrue(c2r.get(4).getValue(null, 0) == 0.55); assertTrue(c2r.get(5).getValue(null, 0) == 0.6); assertTrue(c2r.get(6).getValue(null, 0) == 0.7); assertTrue(c2r.get(7).getValue(null, 0) == 0.8); }