insertElement.setHandle((String) node.getAttributeValue("handle"));
public static InsertElementType unadapt(Insert insert) { if (insert instanceof WFS11) { return (InsertElementType) insert.getAdaptee(); } InsertElementType ie = WfsFactory.eINSTANCE.createInsertElementType(); ie.setHandle(insert.getHandle()); ie.getFeature().addAll(insert.getFeatures()); return ie; } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { InsertElementType insertElement = wfsfactory.createInsertElementType(); // features insertElement.getFeature().addAll(node.getChildValues(SimpleFeature.class)); // handle if (node.hasAttribute("handle")) { insertElement.setHandle((String) node.getAttributeValue("handle")); } // NOTE: officially this is not supported for wfs 1.0, but we support it // here as an extension to wfs 1.0, also since its not actualy in the // schema it comes to us as a string, not a uri // <xsd:attribute name="srsName" type="xsd:anyURI" use="optional"> if (node.hasAttribute("srsName")) { String srsName = (String) node.getAttributeValue("srsName"); insertElement.setSrsName(new URI(srsName)); } return insertElement; }
insertElement.setHandle((String) node.getAttributeValue("handle"));