|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.common.xml.XmlCharacters
@Immutable public class XmlCharacters

A utility class for determining the validity of various XML names, per the XML 1.0 Specification.
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isValidNameStart(int c)
remaining characters.
c - the character
public static boolean isValidNcNameStart(int c)
remaining characters.
c - the character
public static boolean isValidName(int c)
first character in an XML name is more restrictive than the remaining characters.
c - the character
public static boolean isValidNcName(int c)
first character in an XML NCName is more restrictive than the remaining characters.
c - the character
public static boolean isValidPubid(int c)
c - the character
public static boolean isValid(int c)
c - the character
public static boolean isValidContent(int c)
c - the character
public static boolean isValidSpace(int c)
c - the character
public static boolean isValidName(String name)
name - the string being checked
public static boolean isValidNcName(String name)
name - the string being checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||