/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { OperationsType om = factory.createOperationsType(); for (Object ob : OperationType.VALUES) { if (node.getChild(((OperationType) ob).getName()) != null) { om.getOperation().add(ob); } } return om; } }
@Override public boolean supportsTransaction(QName typeName) { try { getFeatureTypeInfo(typeName); } catch (IllegalArgumentException e) { throw e; } if (!supportsOperation(TRANSACTION, POST)) { return false; } OperationsType operations = this.capabilities.getFeatureTypeList().getOperations(); if (operations == null) { return false; } @SuppressWarnings("unchecked") List<net.opengis.wfs.OperationType> operation = operations.getOperation(); for (net.opengis.wfs.OperationType required : Arrays.asList( net.opengis.wfs.OperationType.INSERT_LITERAL, net.opengis.wfs.OperationType.UPDATE_LITERAL, net.opengis.wfs.OperationType.DELETE_LITERAL)) { if (!operation.contains(required)) { info( "Transactions not supported since WFS didn't declare support for " + required.getName()); return false; } } return true; }
@Override public boolean supportsTransaction(QName typeName) { try { getFeatureTypeInfo(typeName); } catch (IllegalArgumentException e) { throw e; } if (!supportsOperation(TRANSACTION, POST)) { return false; } OperationsType operations = this.capabilities.getFeatureTypeList().getOperations(); if (operations == null) { return false; } @SuppressWarnings("unchecked") List<net.opengis.wfs.OperationType> operation = operations.getOperation(); for (net.opengis.wfs.OperationType required : Arrays.asList( net.opengis.wfs.OperationType.INSERT_LITERAL, net.opengis.wfs.OperationType.UPDATE_LITERAL, net.opengis.wfs.OperationType.DELETE_LITERAL)) { if (!operation.contains(required)) { info( "Transactions not supported since WFS didn't declare support for " + required.getName()); return false; } } return true; }