| Modifier and Type | Field and Description |
|---|---|
| private static final int | CHARCNT
The number of characters in Java. |
| private static final byte[] | CHARFLAGS
An array of byte where each byte represents the roles that the corresponding character can play. |
| private static final int[] | LENCONST
The seed array used with VALCONST to populate CHARFLAGS. |
| private static final byte | MASKURICHAR
Mask used to test for |
| private static final byte | MASKXMLCHARACTER
Mask used to test for |
| private static final byte | MASKXMLCOMBINING
Mask used to test for |
| private static final byte | MASKXMLDIGIT
Mask used to test for |
| private static final byte | MASKXMLLETTER
Mask used to test for |
| private static final byte | MASKXMLLETTERORDIGIT
Mask used to test for |
| private static final byte | MASKXMLNAMECHAR
Mask used to test for |
| private static final byte | MASKXMLSTARTCHAR
Mask used to test for |
| private static final byte[] | VALCONST
The seed array used with LENCONST to populate CHARFLAGS. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static final byte[] | Returns: the CHARFLAGS array.Convert the two compressed arrays in to th CHARFLAGS array. |
| public static String | Returns: String reason name is illegal, or
null if name is OK.String name to check.This will check the supplied name to see if it is legal for use as
a JDOM |
| public static String | Returns: String reason data is illegal, or
null is name is OK.String data to check.This will check the supplied data to see if it is legal for use as
JDOM |
| public static String | Returns: String reason name is illegal, or
null if name is OK.String value to check.This will check the supplied string to see if it only contains characters allowed by the XML 1.0 specification. |
| public static String | Returns: String reason data is illegal, or
null if data is OK.String data to check.This will check the supplied data to see if it is legal for use as
JDOM |
| public static String | Returns: String reason name is illegal, or
null if name is OK.String name to check.This will check the supplied name to see if it is legal for use as
a JDOM |
| private static final String | |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.Namespace to check against.Check if two namespaces collide. |
| public static String | Returns: String reason for collision, or
null if no collision.Attribute to check.Element to check against.Check if |
| public static String | Returns: String reason for collision, or
null if no collision.Attribute to check.Element to check against.Ignore a specific Attribute (if it exists) when
calculating any collisions (used when replacing one attribute
with another). ignoreatt)Check if |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.Element to check against. |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.Element to check against.Ignore a specific Attribute (if it exists) when
calculating any collisions (used when replacing one attribute
with another). ignoreatt) |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.Attribute to check against. |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.List to check against.Check if a |
| public static String | Returns: String reason for collision, or
null if no collision.Namespace to check.List to check against.Ignore a specific Attribute (if it exists) when
calculating any collisions (used when replacing one attribute
with another). ignoreatt)Check if a |
| public static String | Returns: String reason name is illegal, or
null if name is OK.String prefix to check.This will check the supplied name to see if it is legal for use as
a JDOM |
| public static String | Returns: String reason name is illegal, or
null if name is OK.String URI to check.This will check the supplied name to see if it is legal for use as
a JDOM |
| public static String | Returns: String reason data is illegal, or
null if data is OK.String data to check.This will check the supplied data to see if it is legal for use as
|
| public static String | Returns: String reason target is illegal, or
null if target is OK.String target to check.This will check the supplied data to see if it is legal for use as
a JDOM |
| public static String | Returns: String reason public ID is illegal, or
null if public ID is OK.String public ID to check.This will ensure that the data for a public identifier is legal. |
| public static String | Returns: String reason system literal is illegal, or
null if system literal is OK.String system literal to check.This will ensure that the data for a system literal is legal. |
| public static String | |
| public static String | Returns: String reason the name is illegal, or
null if OK.String to check for XML name compliance.This is a utility function for sharing the base process of checking any XML name. |
| public static int | Returns: decoded characterhigh 16 bits high, final char low 16 bits low)This is a utility function to decode a non-BMP UTF-16 surrogate pair. |
| public static final boolean | Returns: true if all characters in the input value are all whitespace (or the string is the empty-string).The value to inspect value)This is a utility function for determining whether a specified String is a whitespace character according to production 3 of the XML 1.0 specification. |
| public static boolean | Returns: true if it's allowed, false otherwise.to check for hex digit. c)This is a utility function for determining whether a specified Unicode character is a hexadecimal digit as defined in RFC 2396; that is, one of the ASCII characters 0-9, a-f, or A-F. |
| public static boolean | Returns: true if the character is a high surrogate, false otherwisecharacter to check ch)This is a function for determining whether the specified character is the high 16 bits in a UTF-16 surrogate pair. |
| public static boolean | Returns: true if the character is a low surrogate, false otherwise.character to check ch)This is a function for determining whether the specified character is the low 16 bits in a UTF-16 surrogate pair. |
| public static boolean | Returns: true if it's allowed, false otherwise.char to check for URI reference compliance.This is a utility function for determining whether a specified Unicode character is legal in URI references as determined by RFC 2396. |
| public static boolean | Returns: boolean true if it's a character,
false otherwisechar to check for XML complianceThis is a utility function for determining whether a specified character is a character according to production 2 of the XML 1.0 specification. |
| public static boolean | Returns: boolean true if it's a combining character,
false otherwise.char to check.This is a utility function for determining whether a specified character is a combining character according to production 87 of the XML 1.0 specification. |
| public static boolean | Returns: boolean true if it's a digit, false otherwisechar to check for XML digit complianceThis is a utility function for determining whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification. |
| public static boolean | Returns: String true if it's an extender, false otherwise.char to check.This is a utility function for determining whether a specified character is an extender according to production 88 of the XML 1.0 specification. |
| public static boolean | Returns: String true if it's a letter, false otherwise.char to check for XML name compliance.This is a utility function for determining whether a specified character is a letter according to production 84 of the XML 1.0 specification. |
| public static boolean | Returns: boolean true if it's letter or digit,
false otherwise.char to check.This is a utility function for determining whether a specified character is a letter or digit according to productions 84 and 88 of the XML 1.0 specification. |
| public static boolean | Returns: boolean true if it's a name character,
false otherwise.char to check for XML name compliance.This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification. |
| public static boolean | Returns: boolean true if it's a name start character,
false otherwise.char to check for XML name start compliance.This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification. |
| public static boolean | Returns: String reason c is illegal, or
null if c is OK.the character to validate c)This will check the supplied data to see if it is legal for use as
PublicID (in a |
| public static boolean | Returns: boolean true if it's a whitespace, false otherwisechar to check for XML whitespace complianceThis is a utility function for determining whether a specified Unicode character is a whitespace character according to production 3 of the XML 1.0 specification. |
| CHARCNT | back to summary |
|---|---|
| private static final int CHARCNT The number of characters in Java. | |
| CHARFLAGS | back to summary |
|---|---|
| private static final byte[] CHARFLAGS An array of byte where each byte represents the roles that the corresponding character can play. Use the bit mask values to access each character's role. | |
| LENCONST | back to summary |
|---|---|
| private static final int[] LENCONST The seed array used with VALCONST to populate CHARFLAGS. | |
| MASKURICHAR | back to summary |
|---|---|
| private static final byte MASKURICHAR Mask used to test for | |
| MASKXMLCHARACTER | back to summary |
|---|---|
| private static final byte MASKXMLCHARACTER Mask used to test for | |
| MASKXMLCOMBINING | back to summary |
|---|---|
| private static final byte MASKXMLCOMBINING Mask used to test for | |
| MASKXMLDIGIT | back to summary |
|---|---|
| private static final byte MASKXMLDIGIT Mask used to test for | |
| MASKXMLLETTER | back to summary |
|---|---|
| private static final byte MASKXMLLETTER Mask used to test for | |
| MASKXMLLETTERORDIGIT | back to summary |
|---|---|
| private static final byte MASKXMLLETTERORDIGIT Mask used to test for | |
| MASKXMLNAMECHAR | back to summary |
|---|---|
| private static final byte MASKXMLNAMECHAR Mask used to test for | |
| MASKXMLSTARTCHAR | back to summary |
|---|---|
| private static final byte MASKXMLSTARTCHAR Mask used to test for | |
| VALCONST | back to summary |
|---|---|
| private static final byte[] VALCONST The seed array used with LENCONST to populate CHARFLAGS. | |
| Verifier | back to summary |
|---|---|
| private Verifier() Ensure instantiation cannot occur. | |
| buildBitFlags | back to summary |
|---|---|
| private static final byte[] buildBitFlags() Convert the two compressed arrays in to th CHARFLAGS array.
| |
| checkAttributeName | back to summary |
|---|---|
| public static String checkAttributeName(final String name) This will check the supplied name to see if it is legal for use as
a JDOM | |
| checkCDATASection | back to summary |
|---|---|
| public static String checkCDATASection(final String data) This will check the supplied data to see if it is legal for use as
JDOM | |
| checkCharacterData | back to summary |
|---|---|
| public static String checkCharacterData(final String text) This will check the supplied string to see if it only contains characters allowed by the XML 1.0 specification. The C0 controls (e.g. null, vertical tab, form-feed, etc.) are specifically excluded except for carriage return, line-feed, and the horizontal tab. Surrogates are also excluded. This method is useful for checking element content and attribute values. Note that characters like " and < are allowed in attribute values and element content. They will simply be escaped as " or < when the value is serialized. | |
| checkCommentData | back to summary |
|---|---|
| public static String checkCommentData(final String data) This will check the supplied data to see if it is legal for use as
JDOM | |
| checkElementName | back to summary |
|---|---|
| public static String checkElementName(final String name) This will check the supplied name to see if it is legal for use as
a JDOM | |
| checkJDOMName | back to summary |
|---|---|
| private static final String checkJDOMName(final String name) | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final Namespace other) Check if two namespaces collide. | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Attribute attribute, final Element element) Check if | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Attribute attribute, final Element element, final int ignoreatt) Check if | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final Element element) | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final Element element, final int ignoreatt) | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final Attribute attribute) | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final List<?> list) Check if a | |
| checkNamespaceCollision | back to summary |
|---|---|
| public static String checkNamespaceCollision(final Namespace namespace, final List<?> list, final int ignoreatt) Check if a | |
| checkNamespacePrefix | back to summary |
|---|---|
| public static String checkNamespacePrefix(final String prefix) This will check the supplied name to see if it is legal for use as
a JDOM | |
| checkNamespaceURI | back to summary |
|---|---|
| public static String checkNamespaceURI(final String uri) This will check the supplied name to see if it is legal for use as
a JDOM This is a 'light' test of URI's designed to filter out only the worst illegal URIs. It tests only to ensure the first character is valid. A comprehensive URI validation process would be impractical. | |
| checkProcessingInstructionData | back to summary |
|---|---|
| public static String checkProcessingInstructionData(final String data) This will check the supplied data to see if it is legal for use as
| |
| checkProcessingInstructionTarget | back to summary |
|---|---|
| public static String checkProcessingInstructionTarget(final String target) This will check the supplied data to see if it is legal for use as
a JDOM | |
| checkPublicID | back to summary |
|---|---|
| public static String checkPublicID(final String publicID) This will ensure that the data for a public identifier is legal. | |
| checkSystemLiteral | back to summary |
|---|---|
| public static String checkSystemLiteral(final String systemLiteral) This will ensure that the data for a system literal is legal. | |
| checkURI | back to summary |
|---|---|
| public static String checkURI(final String uri) Checks a string to see if it is a legal RFC 2396 URI. Both absolute and relative URIs are supported. | |
| checkXMLName | back to summary |
|---|---|
| public static String checkXMLName(final String name) This is a utility function for sharing the base process of checking any XML name. | |
| decodeSurrogatePair | back to summary |
|---|---|
| public static int decodeSurrogatePair(final char high, final char low) This is a utility function to decode a non-BMP UTF-16 surrogate pair.
| |
| isAllXMLWhitespace | back to summary |
|---|---|
| public static final boolean isAllXMLWhitespace(final String value) This is a utility function for determining whether a specified String is a whitespace character according to production 3 of the XML 1.0 specification.
This method delegates the individual calls for each character to
| |
| isHexDigit | back to summary |
|---|---|
| public static boolean isHexDigit(final char c) This is a utility function for determining whether a specified Unicode character is a hexadecimal digit as defined in RFC 2396; that is, one of the ASCII characters 0-9, a-f, or A-F.
| |
| isHighSurrogate | back to summary |
|---|---|
| public static boolean isHighSurrogate(final char ch) This is a function for determining whether the specified character is the high 16 bits in a UTF-16 surrogate pair.
| |
| isLowSurrogate | back to summary |
|---|---|
| public static boolean isLowSurrogate(final char ch) This is a function for determining whether the specified character is the low 16 bits in a UTF-16 surrogate pair.
| |
| isURICharacter | back to summary |
|---|---|
| public static boolean isURICharacter(final char c) This is a utility function for determining whether a specified Unicode character is legal in URI references as determined by RFC 2396.
| |
| isXMLCharacter | back to summary |
|---|---|
| public static boolean isXMLCharacter(final int c) This is a utility function for determining whether a specified character is a character according to production 2 of the XML 1.0 specification.
| |
| isXMLCombiningChar | back to summary |
|---|---|
| public static boolean isXMLCombiningChar(final char c) This is a utility function for determining whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
| |
| isXMLDigit | back to summary |
|---|---|
| public static boolean isXMLDigit(final char c) This is a utility function for determining whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
| |
| isXMLExtender | back to summary |
|---|---|
| public static boolean isXMLExtender(final char c) This is a utility function for determining whether a specified character is an extender according to production 88 of the XML 1.0 specification.
| |
| isXMLLetter | back to summary |
|---|---|
| public static boolean isXMLLetter(final char c) This is a utility function for determining whether a specified character is a letter according to production 84 of the XML 1.0 specification.
| |
| isXMLLetterOrDigit | back to summary |
|---|---|
| public static boolean isXMLLetterOrDigit(final char c) This is a utility function for determining whether a specified character is a letter or digit according to productions 84 and 88 of the XML 1.0 specification.
| |
| isXMLNameCharacter | back to summary |
|---|---|
| public static boolean isXMLNameCharacter(final char c) This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification.
| |
| isXMLNameStartCharacter | back to summary |
|---|---|
| public static boolean isXMLNameStartCharacter(final char c) This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification. This production does allow names to begin with colons which the Namespaces in XML Recommendation disallows.
| |
| isXMLPublicIDCharacter | back to summary |
|---|---|
| public static boolean isXMLPublicIDCharacter(final char c) This will check the supplied data to see if it is legal for use as
PublicID (in a
| |
| isXMLWhitespace | back to summary |
|---|---|
| public static boolean isXMLWhitespace(final char c) This is a utility function for determining whether a specified Unicode character is a whitespace character according to production 3 of the XML 1.0 specification.
| |