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/02/08 13:24:07 UTC

[jira] Resolved: (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 resolved TUSCANY-1360.
--------------------------------------

    Resolution: Fixed

1360-Amita.patch applied to rev.  619858

> 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