@Immutable public class XmlCharacters extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
CONTENT_CHARACTER |
private static char[] |
MASKS
This implementation uses an array that captures for each character the XML classifications.
|
private static int |
NAME_CHARACTER |
private static int |
NAME_START_CHARACTER |
private static int |
NCNAME_CHARACTER |
private static int |
NCNAME_START_CHARACTER |
private static int |
NUMBER_OF_CHARACTERS |
private static int |
PUBID_CHARACTER |
private static int |
SPACE_CHARACTER |
private static int |
VALID_CHARACTER |
| Modifier | Constructor and Description |
|---|---|
private |
XmlCharacters() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(int c)
Determine whether the supplied character is a valid character in XML.
|
static boolean |
isValidContent(int c)
Determine whether the supplied character is a valid character in XML content
|
static boolean |
isValidName(int c)
Determine whether the supplied character is a valid non-first character in an XML Name.
|
static boolean |
isValidName(String name)
Determine if the supplied name is a valid XML Name.
|
static boolean |
isValidNameStart(int c)
Determine whether the supplied character is a valid first character in an XML Name.
|
static boolean |
isValidNcName(int c)
Determine whether the supplied character is a valid non-first character in an XML NCName.
|
static boolean |
isValidNcName(String name)
Determine if the supplied name is a valid XML NCName.
|
static boolean |
isValidNcNameStart(int c)
Determine whether the supplied character is a valid first character in an XML NCName.
|
static boolean |
isValidPubid(int c)
Determine whether the supplied character is a valid character in an XML Pubid.
|
static boolean |
isValidSpace(int c)
Determine whether the supplied character is a valid whitespace character in XML
|
private static final int NUMBER_OF_CHARACTERS
private static final char[] MASKS
private static final int VALID_CHARACTER
private static final int CONTENT_CHARACTER
private static final int SPACE_CHARACTER
private static final int NAME_START_CHARACTER
private static final int NAME_CHARACTER
private static final int NCNAME_START_CHARACTER
private static final int NCNAME_CHARACTER
private static final int PUBID_CHARACTER
public static boolean isValidNameStart(int c)
remaining characters.c - the characterpublic static boolean isValidNcNameStart(int c)
remaining characters.c - the characterpublic static boolean isValidName(int c)
first character in an XML name is more restrictive than the remaining characters.c - the characterpublic static boolean isValidNcName(int c)
first character in an XML NCName is more restrictive than the remaining characters.c - the characterpublic static boolean isValidPubid(int c)
c - the characterpublic static boolean isValid(int c)
c - the characterpublic static boolean isValidContent(int c)
c - the characterpublic static boolean isValidSpace(int c)
c - the characterpublic static boolean isValidName(String name)
name - the string being checkedpublic static boolean isValidNcName(String name)
name - the string being checkedCopyright © 2019 JBoss by Red Hat. All rights reserved.