You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "David T. Adcox (JIRA)" <tu...@ws.apache.org> on 2006/12/13 06:01:22 UTC

[jira] Updated: (TUSCANY-933) XSD2Java Generator still generates EMF codes with -noEMF option on

     [ http://issues.apache.org/jira/browse/TUSCANY-933?page=all ]

David T. Adcox updated TUSCANY-933:
-----------------------------------

    Attachment: Tuscany933.zip

I've added support for Base64Binary type in the attached zip file.  Inside is a diff file and a new sdoModelExtended.xsd file that extends the base sdoModel.  Using this new 'extended' model, I've added the Base64Binary support.  Then, using that schema, regened the model and model impl packages.  The differences are captured in the enclosed diff file.  An additional test point was added to the TypeRoundTripTestCase to validate the behavior of this new function.

> 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
>         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.
-
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org