public static NativeType unadapt(Native nativ) { NativeType n = WfsFactory.eINSTANCE.createNativeType(); n.setSafeToIgnore(nativ.isSafeToIgnore()); n.setVendorId(nativ.getVendorId()); // TODO: value return n; } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { NativeType nativ = wfsfactory.createNativeType(); // <xsd:attribute name="vendorId" type="xsd:string" use="required"> nativ.setVendorId((String) node.getAttributeValue("vendorId")); // <xsd:attribute name="safeToIgnore" type="xsd:boolean" use="required"> nativ.setSafeToIgnore(((Boolean) node.getAttributeValue("safeToIgnore")).booleanValue()); // <xsd:any processContents="lax" namespace="##other" minOccurs="0"/> if (instance.getText() != null && instance.getText().length() != 0) { nativ.setValue(instance.getText()); } return nativ; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { RollbackType rollback = wfsvFactory.createRollbackType(); if (node.hasAttribute("handle")) { rollback.setHandle((String) node.getAttributeValue("handle")); } rollback.setFilter((Filter) node.getChildValue(Filter.class)); rollback.setTypeName((QName) node.getAttributeValue("typeName")); rollback.setToFeatureVersion((String) node.getAttributeValue("toFeatureVersion")); rollback.setVendorId((String) node.getAttributeValue("vendorId")); rollback.setSafeToIgnore(((Boolean) node.getAttributeValue("safeToIgnore")).booleanValue()); rollback.setUser((String) node.getAttributeValue("user")); return rollback; } }