[ https://issues.apache.org/jira/browse/TUSCANY-933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson updated TUSCANY-933: ----------------------------------- Fix Version/s: Java-SDO-M3 > XSD2Java Generator still generates EMF codes with -noEMF option on > ------------------------------------------------------------------ > > Key: TUSCANY-933 > URL: https://issues.apache.org/jira/browse/TUSCANY-933 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Tools > Affects Versions: Java-SCA-Mx > Reporter: Fuhwei Lwo > Fix For: Java-SDO-M3 > > Attachments: Tuscany933.zip > > > This problem only occurred when base64Binary type was defined in the XSD. > The codegen tool would generate codes using EMF to handle base64Binary type. > public void initializeMetaData() > { > if (isInitialized) return; > isInitialized = true; > // Obtain other dependent packages > ModelFactoryImpl theModelPackageImpl = > (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI); > XMLTypeFactoryImpl theXMLTypePackage = > (XMLTypeFactoryImpl)FactoryBase.getStaticFactory(<b>XMLTypeFactoryImpl.NAMESPACE_URI</b>); > Property property = null; > // Add supertypes to classes > // Initialize classes and features; add operations and parameters > initializeType(testTypeType, TestType.class, "TestType"); > property = (Property)testTypeType.getProperties().get(TestTypeImpl.NAME); > initializeProperty(property, theModelPackageImpl.getString(), "Name", > null, 1, 1, TestType.class, false, false, false); > property = > (Property)testTypeType.getProperties().get(TestTypeImpl.BASE64_VALUE); > initializeProperty(property, <b>theXMLTypePackage.getBase64Binary()</b>, > "Base64Value", null, 1, 1, TestType.class, false, false, false); > property = > (Property)testTypeType.getProperties().get(TestTypeImpl.HEX_VALUE); > initializeProperty(property, theModelPackageImpl.getBytes(), "HexValue", > null, 1, 1, TestType.class, false, false, false); > createXSDMetaData(theModelPackageImpl); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]