public Element encode(Object object, Document document, Element value) throws Exception { Envelope envelope = (Envelope) object; if (envelope.isNull()) { value.appendChild(document.createElementNS(GML.NAMESPACE, GML.Null.getLocalPart())); } return null; }
/* * (non-Javadoc) * * @see org.geotools.xml.AbstractComplexBinding#encode(java.lang.Object, * org.w3c.dom.Document, org.w3c.dom.Element) */ @Override public Element encode(Object object, Document document, Element value) throws Exception { List timeSequence = (List) object; if (timeSequence == null) { value.appendChild(document.createElementNS(GML.NAMESPACE, GML.Null.getLocalPart())); } return null; }
/* * <!-- begin-user-doc --> * <!-- end-user-doc --> */ @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; }