Ejemplo 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);
        }
Ejemplo 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)));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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)));
 }
Ejemplo 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);
        }
Ejemplo 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));
 }
Ejemplo 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)));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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)));
 }