/** * * <!-- 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; } }