/** * 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); }
/** * Get all defined enums of this class * * @return An array of all defined enum objects */ public static String[] getEnumNames() { return(EnumDelegate.getEnumNames(typeof(LeadOS))); }
/** * 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)); }
/** * 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)); }
/** * 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)); }
/** * Get all defined enums of this class * * @return An array of all defined enum objects */ public static String[] getEnumNames() { return(EnumDelegate.getEnumNames(typeof(RPMHeaderTag))); }
/** * 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); }
/** * 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)); }
/** * Get all defined enums of this class * * @return An array of all defined enum objects */ public static String[] getEnumNames() { return(EnumDelegate.getEnumNames(typeof(RPMIndexType))); }
/** * 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)); }
/** * 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)); }
/** * 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)); }
/** * Get all defined enums of this class * * @return An array of all defined enum objects */ public static String[] getEnumNames() { return(EnumDelegate.getEnumNames(typeof(LeadArchitecture))); }