@Override public NumberStatistics newInstance( final Class<NumberStatistics> type, final InputElement xml) throws XMLStreamException { final Statistics stats = Statistics.XML.newInstance(Statistics.class, xml); final Float64 fitnessMean = xml.get(FITNESS_MEAN); final Float64 fitnessVariance = xml.get(FITNESS_VARIANCE); final Float64 errorOfMean = xml.get(ERROR_OF_MEAN); final Builder builder = new Builder().statistics(stats); builder.fitnessMean(fitnessMean.doubleValue()); builder.fitnessVariance(fitnessVariance.doubleValue()); builder.standardError(errorOfMean.doubleValue()); return builder.build(); }
public void read(InputElement xml, TestCapSsfConfigurationData srv) throws XMLStreamException { String cpv = (String) xml.get(CAP_APPLICATION_CONTEXT, String.class); srv.capApplicationContext = CapApplicationContextSsf.createInstance(cpv); }