+ /**
+ * Check whether a string is a valid {@code localName}.
+ *
+ * @param str String to check
+ * @return True if the string usable as a local name, false otherwise
+ */
+ public static final boolean isValidLocalName(final @Nullable String str) {
+ return str != null && !str.isEmpty() && checkContent(str);
+ }
+