Package com.fasterxml.aalto.util
Class XmlNames
- java.lang.Object
-
- com.fasterxml.aalto.util.XmlNames
-
public final class XmlNames extends java.lang.Object
Simple utility class used for checking validity of xml names.
-
-
Constructor Summary
Constructors Constructor Description XmlNames()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
findIllegalNameChar(java.lang.String name, boolean xml11)
Method that can be used to verify whether given String is a valid xml name or not.private static boolean
validSurrogateNameChar(char firstChar, char sec)
-
-
-
Method Detail
-
findIllegalNameChar
public static int findIllegalNameChar(java.lang.String name, boolean xml11)
Method that can be used to verify whether given String is a valid xml name or not.- Returns:
- Index of the first character in given String that is not a valid xml name character, if any; -1 if string is a valid xml name
-
validSurrogateNameChar
private static boolean validSurrogateNameChar(char firstChar, char sec)
-
-