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 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.º 3
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.º 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(RPMIndexType), id));
 }