XSD2Java Generator still generates EMF codes with -noEMF option on
------------------------------------------------------------------
Key: TUSCANY-933
URL: http://issues.apache.org/jira/browse/TUSCANY-933
Project: Tuscany
Issue Type: Bug
Components: Java SDO Tools
Affects Versions: Java-Mx
Reporter: Fuhwei Lwo
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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]