Top Description Constructors Methods
com.fasterxml.aalto.util

public final Class XmlNames

extends Object
Class Inheritance

Simple utility class used for checking validity of xml names.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int

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
findIllegalNameChar
(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)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XmlNamesback to summary
public XmlNames()

Method Detail

findIllegalNameCharback to summary
public static int findIllegalNameChar(String name, boolean xml11)

Method that can be used to verify whether given String is a valid xml name or not.

Returns:int

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

validSurrogateNameCharback to summary
private static boolean validSurrogateNameChar(char firstChar, char sec)