@Override public Element encode(Object object, Document document, Element value) throws Exception { Position timePosition = (Position) object; if (timePosition == null) { value.appendChild( document.createElementNS( GML.NAMESPACE, org.geotools.gml3.GML.Null.getLocalPart())); } value.appendChild(document.createTextNode(timePosition.getDateTime().toString())); return null; }
@Override public Element encode(Object object, Document document, Element value) throws Exception { Position timePosition = (Position) object; if (timePosition == null) { value.appendChild( document.createElementNS( GML.NAMESPACE, org.geotools.gml3.GML.Null.getLocalPart())); } value.appendChild(document.createTextNode(timePosition.getDateTime().toString())); return null; }
/** Test of getDateTime method, of class DefaultPosition. */ @Test public void testGetDateTime() { InternationalString result = position1.getDateTime(); assertFalse(position2.getDateTime().equals(result)); }
DefaultInstant instant = new DefaultInstant(new DefaultPosition(cal.getTime())); t_originDate = instant.getPosition().getDateTime().toString(); } catch (ParseException e) { throw new IllegalArgumentException(e);
cal.setTime(epoch); DefaultInstant instant = new DefaultInstant(new DefaultPosition(cal.getTime())); t_originDate = instant.getPosition().getDateTime().toString(); } catch (ParseException e) { throw new IllegalArgumentException(e);
DefaultInstant instant = new DefaultInstant(new DefaultPosition(cal.getTime())); t_originDate = instant.getPosition().getDateTime().toString(); } catch (ParseException e) { throw new IllegalArgumentException(e);