+
+ /**
+ * Return the enumeration member whose {@link #getName()} matches specified assigned name.
+ *
+ * @param name YANG assigned name
+ * @return corresponding «enums.name» item
+ * @throws NullPointerException if {@code name} is null
+ * @throws IllegalArgumentException if {@code name} does not match any item
+ */
+ public static «enums.importedNonNull» ofName(«STRING.importedName» name) {
+ return «CODEHELPERS.importedName».checkEnum(forName(name), name);
+ }
+
+ /**
+ * Return the enumeration member whose {@link #getIntValue()} matches specified value.
+ *
+ * @param intValue integer value
+ * @return corresponding «enums.name» item
+ * @throws IllegalArgumentException if {@code intValue} does not match any item
+ */
+ public static «enums.importedNonNull» ofValue(int intValue) {
+ return «CODEHELPERS.importedName».checkEnum(forValue(intValue), intValue);
+ }