Esempio n. 1
0
        /**
         * Get a enum by id
         *
         * @param id The id of the enum
         * @return The enum object
         */
        public static EnumIf getEnumById(long id)
        {
            EnumIf result = EnumDelegate.getEnumById(typeof(LeadType), id);

            if (null == result)
            {
                switch (id)
                {
                case _BINARY:
                    result = LeadType.BINARY;
                    break;

                case _SOURCE:
                    result = LeadType.SOURCE;
                    break;

                default:
                    result = LeadType.UNKNOWN;
                    break;
                }
            }
            return(result);
        }
Esempio n. 2
0
 /**
  * Get all defined enums of this class
  *
  * @return An array of all defined enum objects
  */
 public static String[] getEnumNames()
 {
     return(EnumDelegate.getEnumNames(typeof(LeadOS)));
 }
Esempio n. 3
0
 /**
  * Get a enum by name
  *
  * @param name The name of the enum
  * @return The enum object
  */
 public static EnumIf getEnumByName(String name)
 {
     return(EnumDelegate.getEnumByName(typeof(LeadOS), name));
 }
Esempio n. 4
0
 /**
  * Get a enum by id
  *
  * @param id The id of the enum
  * @return The enum object
  */
 public static EnumIf getEnumById(long id)
 {
     return(EnumDelegate.getEnumById(typeof(LeadOS), id));
 }
Esempio n. 5
0
 /**
  * Check if this enum class contains a enum of a specified id
  *
  * @param id The id of the enum
  * @return TRUE if the enum is defined in this class
  */
 public static bool containsEnumId(java.lang.Long id)
 {
     return(EnumDelegate.containsEnumId(typeof(LeadOS), id));
 }
Esempio n. 6
0
 /**
  * Get all defined enums of this class
  *
  * @return An array of all defined enum objects
  */
 public static String[] getEnumNames()
 {
     return(EnumDelegate.getEnumNames(typeof(RPMHeaderTag)));
 }
Esempio n. 7
0
        /**
         * Get a enum by name
         *
         * @param name
         *                The name of the enum
         * @return The enum object
         */
        public static EnumIf getEnumByName(String name)
        {
            EnumIf result = EnumDelegate.getEnumByName(typeof(RPMHeaderTag), name);

            return(result);
        }
Esempio n. 8
0
 /**
  * Get a enum by id
  *
  * @param id
  *                The id of the enum
  * @return The enum object
  */
 public static EnumIf getEnumById(long id)
 {
     return(EnumDelegate.getEnumById(typeof(RPMHeaderTag), id));
 }
Esempio n. 9
0
 /**
  * Get all defined enums of this class
  *
  * @return An array of all defined enum objects
  */
 public static String[] getEnumNames()
 {
     return(EnumDelegate.getEnumNames(typeof(RPMIndexType)));
 }
Esempio n. 10
0
 /**
  * Get a enum by name
  *
  * @param name The name of the enum
  * @return The enum object
  */
 public static EnumIf getEnumByName(String name)
 {
     return(EnumDelegate.getEnumByName(typeof(RPMIndexType), name));
 }
Esempio n. 11
0
 /**
  * Get a enum by id
  *
  * @param id The id of the enum
  * @return The enum object
  */
 public static EnumIf getEnumById(long id)
 {
     return(EnumDelegate.getEnumById(typeof(RPMIndexType), id));
 }
Esempio n. 12
0
 /**
  * Check if this enum class contains a enum of a specified id
  *
  * @param id The id of the enum
  * @return TRUE if the enum is defined in this class
  */
 public static bool containsEnumId(java.lang.Long id)
 {
     return(EnumDelegate.containsEnumId(typeof(RPMIndexType), id));
 }
Esempio n. 13
0
 /**
  * Get all defined enums of this class
  *
  * @return An array of all defined enum objects
  */
 public static String[] getEnumNames()
 {
     return(EnumDelegate.getEnumNames(typeof(LeadArchitecture)));
 }