You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org> on 2008/01/10 11:43:34 UTC
[jira] Updated: (TUSCANY-1360) New SDOUtil: Getting the enumeration
facet
[ https://issues.apache.org/jira/browse/TUSCANY-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amita Vadhavkar updated TUSCANY-1360:
-------------------------------------
Attachment: 1360-Frank.patch
1360-Amita.patch
Attaching 2 patches
1) 1360-Amita.patch - approach from http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg26426.html
(check //Amita comment)
2) 1360-Frank.patch - approach from http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg26623.html
(check //Frank comment)
Please review and see what can be the better way to provide this support. I have coded for enum and
pattern facets as both follow on similar lines.
> New SDOUtil: Getting the enumeration facet
> ------------------------------------------
>
> Key: TUSCANY-1360
> URL: https://issues.apache.org/jira/browse/TUSCANY-1360
> Project: Tuscany
> Issue Type: Wish
> Components: Java SDO Tools
> Reporter: Christian Landbo Frederiksen
> Assignee: Amita Vadhavkar
> Priority: Minor
> Fix For: Java-SDO-Next
>
> Attachments: 1360-Amita.patch, 1360-Frank.patch
>
>
> This has been discussed in the lists:
> http://www.mail-archive.com/tuscany-user@ws.apache.org/msg01095.html
> I do this:
> public static List<String> getEnumerationFacet(Type type) {
> return
> ExtendedMetaData.INSTANCE.getEnumerationFacet((EDataType)type);
> }
> Kelvin suggested another way
> I think you should be able to do
> type.getInstanceProperties() and find the Property called "enumeration".
> Then you can get the enumerations using that Property.
> (see MetaDataInstancePropertiesTestCase [2])
> Having this encapsuled by the SDOUtil would be cool (but maybe overkill - you decide)
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org