public final class XML11Char extends Object
A series of convenience methods are supplied to ease the burden of the
developer. Using the character as an index into the XML11CHARS
array and applying the appropriate mask flag (e.g. MASK_VALID),
yields the same results as calling the convenience methods. There is one
exception: check the comments for the isValid method for
details.
| Modifier and Type | Field and Description |
|---|---|
static int |
MASK_XML11_NAME
XML 1.1 Name character mask.
|
static int |
MASK_XML11_NAME_START
XML 1.1 Name start character mask.
|
static int |
MASK_XML11_NCNAME
XML namespaces 1.1 NCName
|
static int |
MASK_XML11_NCNAME_START
XML namespaces 1.1 NCNameStart
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isXML11Name(int c) |
static boolean |
isXML11NameHighSurrogate(int c) |
static boolean |
isXML11NameStart(int c) |
static boolean |
isXML11NCName(int c) |
static boolean |
isXML11NCNameStart(int c) |
static boolean |
isXML11ValidName(String name)
Check to see if a string is a valid Name according to [5] in the XML 1.1
Recommendation
|
static boolean |
isXML11ValidNCName(String ncName)
Check to see if a string is a valid NCName according to [4] from the XML
Namespaces 1.1 Recommendation
|
public static final int MASK_XML11_NAME_START
public static final int MASK_XML11_NAME
public static final int MASK_XML11_NCNAME_START
public static final int MASK_XML11_NCNAME
public static boolean isXML11NameStart(int c)
c - The character to check.public static boolean isXML11Name(int c)
c - The character to check.public static boolean isXML11NCNameStart(int c)
c - The character to check.public static boolean isXML11NCName(int c)
c - The character to check.public static boolean isXML11NameHighSurrogate(int c)
c - The character to check.public static boolean isXML11ValidName(String name)
name - string to checkpublic static boolean isXML11ValidNCName(String ncName)
ncName - string to checkCopyright © 2024 HtmlUnit. All rights reserved.