Hello Mike,

you are looking for:

        CsCTypeCatalog tc = md.getTypeCatalog();        
      CsCEnumNameList liste = 
tc.getEnumNameList(Integer.decode("0x11ee8").intValue());

liste contains the enumerated values.

Regards
--
Christoph Keßler                E-Mail: [email protected]
  amasol AG, Elsenheimerstraße 7, 80687 München, Germany
  Phone: +49 89 1894743-24        Fax: +49 89 1894743-99

amasol Aktiengesellschaft für Informations- und Kommunikationstechnologie
Aufsichtsrat: Prof. Dr. Stephan Kaiser (Vorsitzender)
Vorstand: Wolfgang Bachmann, Stefan Deml, Thomas Dirsch, Frank Jahn, Johann 
Maurer
Amtsgericht München HRB 128327, Sitz der Gesellschaft München


> -----Ursprüngliche Nachricht-----
> Von: Franck, Raphael [mailto:[email protected]]
> Gesendet: Montag, 14. Februar 2011 13:54
> An: spectrum
> Betreff: AW: [spectrum] How to get the Text Representation of the
> Model_Class Attribute
> 
> Hi Mike, list,
> 
> the Spectrum catalog uses enumerations for internal attributes the same
> way they are used for external (snmp MIB) attributes. The Model_Class
> example:
> 
> [user@server vnmsh]$ ./show attributes mth=0x3d0002 | grep -i
> model_class
> 0x11ee8     Model_Class                      Integer           R,W,D
> 0x12b4a     Lock_Model_Class                 Boolean           R,W,D
> [user@server vnmsh]$ ./show enumerations attr=0x11ee8 | head
> Id          String                            Value
> 0x11ee8     Unknown                           0
> 0x11ee8     Other                             1
> 0x11ee8     Switch                            2
> 0x11ee8     Router                            3
> 0x11ee8     Switch-Router                     4
> 0x11ee8     Hub                               5
> 0x11ee8     Link                              7
> 0x11ee8     Network                           8
> 
> Checking the SSORB docs, I would suspect, that the CsCEnum* classes
> provide the interface you're looking for.
> 
> Mit freundlichen Gruessen - Yours sincerely
> 
> Raphael Franck
> Senior System Engineer
> Infrastructure Services & Support
> 
> Computacenter AG & Co oHG
> Services & Solutions
> 
> Europaring 34-40, 50170 Kerpen, Germany
> E-Mail: [email protected]
> WWW: www.computacenter.de
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Mike Joost [mailto:[email protected]]
> Gesendet: Montag, 14. Februar 2011 13:17
> An: spectrum
> Betreff: [spectrum] How to get the Text Representation of the
> Model_Class Attribute
> 
> Hello guys,
> 
> I'm extracting the Model_Class attribute with the CORBA-API which is an
> integer,
> but I'd prefer to have the string representation for it.
> For example: 3 <-> Router
> Does anyone know how to convert the integer of the Model_Class
> Attribute into
> the textual Representation or where this information is stored?
> 
> Regards,
> Mike Joost
> 
> 
> 
> 
> 
> ---
> To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]
> 
> 
> -----------------------------------
> Computacenter AG & Co. oHG, mit Sitz in Kerpen (Amtsgericht Köln HRA
> 18096)
> Vertretungsberechtigte Gesellschafter:
> Computacenter Aktiengesellschaft, mit Sitz in Köln (Amtsgericht Köln
> HRB 28384)
> Vorstand: Oliver Tuszik (Vorsitzender), Dr. Karsten Freihube, Hans-
> Georg Freitag, Frank Kottmann, Reiner Louis
> Aufsichtsrat: Michael Norris (Vorsitzender)
> Computacenter Management GmbH, mit Sitz in Köln (Amtsgericht Köln HRB
> 28284)
> Geschäftsführer: Ulrich Irnich
> Visit us on the Internet: http://www.computacenter.de
> Visit our Online-Shop: https://shop.computacenter.de
> 
> This email is confidential. If you are not the intended recipient, you
> must not disclose or use the information contained in it. If you have
> received this mail in error, please tell us immediately by return email
> and delete the document.
> -----------------------------------
> 
> 
> ---
> To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to