You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Christian Landbo Frederiksen (JIRA)" <tu...@ws.apache.org> on 2007/06/20 10:07:25 UTC

[jira] Created: (TUSCANY-1360) New SDOUtil: Getting the enumeration facet

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
            Priority: Minor


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


[jira] Assigned: (TUSCANY-1360) New SDOUtil: Getting the enumeration facet

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar reassigned TUSCANY-1360:
----------------------------------------

    Assignee: Amita Vadhavkar

> 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
>
>
> 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


[jira] Resolved: (TUSCANY-1360) New SDOUtil: Getting the enumeration facet

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ 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


[jira] Updated: (TUSCANY-1360) New SDOUtil: Getting the enumeration facet

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-1360:
-------------------------------------

    Fix Version/s:     (was: Java-SDO-Next)
                   Java-SDO-1.1

> 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-1.1
>
>         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


[jira] Updated: (TUSCANY-1360) New SDOUtil: Getting the enumeration facet

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ 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