Пример #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);
        }
Пример #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)));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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)));
 }
Пример #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);
        }
Пример #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));
 }
Пример #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)));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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)));
 }