@Immutable public class XmlCharacters extends Object
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
|
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 © 2008–2016 JBoss, a division of Red Hat. All rights reserved.