public class XMLChar extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MASK_CONTENT
Content character mask.
|
static int |
MASK_NAME
Name character mask.
|
static int |
MASK_NAME_START
Name start character mask.
|
static int |
MASK_NCNAME
NCName character mask.
|
static int |
MASK_NCNAME_START
NCName start character mask.
|
static int |
MASK_PUBID
Pubid character mask.
|
static int |
MASK_SPACE
Space character mask.
|
static int |
MASK_VALID
Valid character mask.
|
Constructor and Description |
---|
XMLChar() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isName(int c)
Returns true if the specified character is a valid name character as defined
by production [4] in the XML 1.0 specification.
|
static boolean |
isNameStart(int c)
Returns true if the specified character is a valid name start character as
defined by production [5] in the XML 1.0 specification.
|
static boolean |
isValidName(String name)
Check to see if a string is a valid Name according to [5] in the XML 1.0
Recommendation
|
static boolean |
isValidNmtoken(String nmtoken)
Check to see if a string is a valid Nmtoken according to [7] in the XML 1.0
Recommendation
|
public static final int MASK_VALID
public static final int MASK_SPACE
public static final int MASK_NAME_START
public static final int MASK_NAME
public static final int MASK_PUBID
public static final int MASK_CONTENT
This is an optimization for the inner loop of character scanning.
public static final int MASK_NCNAME_START
public static final int MASK_NCNAME
public static boolean isValidNmtoken(String nmtoken)
nmtoken
- string to checkpublic static boolean isValidName(String name)
name
- string to checkpublic static boolean isNameStart(int c)
c
- The character to check.public static boolean isName(int c)
c
- The character to check.Copyright © 2021. All rights reserved.