Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1360

New SDOUtil: Getting the enumeration facet

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Java-SDO-1.1
    • Java SDO Tools
    • None
    • Patch Available

    Description

      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)

      Attachments

        1. 1360-Amita.patch
          7 kB
          Amita Vadhavkar
        2. 1360-Frank.patch
          6 kB
          Amita Vadhavkar

        Activity

          People

            amitav Amita Vadhavkar
            chrlandbo Christian Landbo Frederiksen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: