How can custom properties be accessed via the StarTeam SDK?

0 Likes

Problem:

How can custom properties be accessed via the StarTeam SDK?

Resolution:


  • Product Name: StarTeam
  • Product Version: ALL
  • Product Component: SDK
  • Platform/OS Version: ALL

Custom properties can be retrieved and set using the Java API "Item.get" and "Item.put" methods respectively, e.g. the following can be used to print the value of a custom enumerated field:

System.out.println("Usr_public: " CRs.getEnumDisplayName("Usr_public", Integer.parseInt(CRs.get("Usr_public").toString())));

For further information on the use of the Item class and the methods used for working with custom properties, please refer to the StarTeam JAVA API Reference.


Old KB# 29975
Comment List
Related
Recommended