@Test public void testCreateTimeXML() { String[] input = new String[]{"2001-07-01T01:01:01Z", "2002-07-15T01:01:01Z"}; Time bean = null; try { bean = new Time(input); } catch (ParseException ex) { fail(ex.getMessage()); } String result = bean.toXML(); assertNotNull(result); }
@Override public String toXML() { String result; QNameMap qmap = new QNameMap(); qmap.setDefaultNamespace("xsd/gdptime-1.0.xsd"); qmap.setDefaultPrefix("gdp"); StaxDriver sd = new StaxDriver(qmap); XStream xstream = new XStream(sd); xstream.autodetectAnnotations(true); result = xstream.toXML(this); return result; }
Time extends Response { @Override public String toXML() { String result; QNameMap qmap = new QNameMap(); qmap.setDefaultNamespace("xsd/gdptime-1.0.xsd"); qmap.setDefaultPrefix("gdp"); StaxDriver sd = new StaxDriver(qmap); XStream xstream = new XStream(sd); xstream.autodetectAnnotations(true); result = xstream.toXML(this); return result; } }
Time extends Response { @Override public String toXML() { String result; QNameMap qmap = new QNameMap(); qmap.setDefaultNamespace("xsd/gdptime-1.0.xsd"); qmap.setDefaultPrefix("gdp"); StaxDriver sd = new StaxDriver(qmap); XStream xstream = new XStream(sd); xstream.autodetectAnnotations(true); result = xstream.toXML(this); return result; } Time();  Time(String[] dateRange); }
Time extends Response { @Override public String toXML() { String result; QNameMap qmap = new QNameMap(); qmap.setDefaultNamespace("xsd/gdptime-1.0.xsd"); qmap.setDefaultPrefix("gdp"); StaxDriver sd = new StaxDriver(qmap); XStream xstream = new XStream(sd); xstream.autodetectAnnotations(true); result = xstream.toXML(this); return result; } Time();  Time(String[] dateRange); void setTime(String[] time); String[] getTime(); void setStarttime(TimeBreakdown starttime); TimeBreakdown getStarttime(); void setEndtime(TimeBreakdown endtime); TimeBreakdown getEndtime(); @Override String toXML(); @Override String toString(); static Time buildFromCache(ResponseCache.CacheIdentifier ci); @Override boolean writeToCache(ResponseCache.CacheIdentifier ci); }
Time extends Response { @Override public String toXML() { String result; QNameMap qmap = new QNameMap(); qmap.setDefaultNamespace("xsd/gdptime-1.0.xsd"); qmap.setDefaultPrefix("gdp"); StaxDriver sd = new StaxDriver(qmap); XStream xstream = new XStream(sd); xstream.autodetectAnnotations(true); result = xstream.toXML(this); return result; } Time();  Time(String[] dateRange); void setTime(String[] time); String[] getTime(); void setStarttime(TimeBreakdown starttime); TimeBreakdown getStarttime(); void setEndtime(TimeBreakdown endtime); TimeBreakdown getEndtime(); @Override String toXML(); @Override String toString(); static Time buildFromCache(ResponseCache.CacheIdentifier ci); @Override boolean writeToCache(ResponseCache.CacheIdentifier ci);  }