You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org> on 2006/12/14 15:32:22 UTC

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

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

Kelvin Goodson resolved TUSCANY-933.
------------------------------------

    Resolution: Fixed

patch applied

> 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