Package org.zkoss.idom
Class Verifier
java.lang.Object
org.zkoss.idom.Verifier
The verifier to verify W3C/DOM related constraints.
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionprotected static final StringBufferappendAsHex(StringBuffer sb, char c) static final voidcheckAttributeName(String name, Locator loc) Checks whether an attribute's name is valid.static final voidcheckCData(String data, Locator loc) Checks whether a CDATA is valid.static final voidcheckCharacterData(String text, Locator loc) Checks whether a text is valid.static final voidcheckCommentData(String data, Locator loc) Checks whether a comment data is valid.static final voidcheckElementName(String name, Locator loc) Checks whether an element's name is valid.static final voidcheckNamespacePrefix(String prefix, Locator loc) Checks whether the prefix of a namespace is valid.static final voidcheckNamespaceURI(String uri, Locator loc) Checks whether the URI of a namespace is valid.static final voidcheckPITarget(String target, Locator loc) Checks whether a processing instruction target is valid.static voidcheckXMLName(String name, Locator loc) Checks whether a name is valid.static intdecodeSurrogatePair(char high, char low) This is a utility function to decode a non-BMP UTF-16 surrogate pair.static booleanisXMLCharacter(int c) Checks whether a character is valid.static booleanisXMLCombiningChar(char c) Checks whether a character is a combining character according to production 87 of the XML 1.0 specification.static booleanisXMLDigit(char c) Checks whether a character is a digit according to production 88 of the XML 1.0 specification.static booleanisXMLExtender(char c) Checks whether a character is an extender according to production 88 of the XML 1.0 specification.static booleanisXMLLetter(char c) Checks whether a character is a letter.static booleanisXMLLetterOrDigit(char c) Checks whether a character is a letter or digit.static booleanisXMLNameCharacter(char c) Checks whether a character can be part of a name.static booleanisXMLNameStartCharacter(char c) Checks whether a character can be the first character of a name.
-
Method Details
-
checkElementName
Checks whether an element's name is valid. -
checkAttributeName
Checks whether an attribute's name is valid. -
appendAsHex
-
checkCharacterData
Checks whether a text is valid. -
decodeSurrogatePair
public static int decodeSurrogatePair(char high, char low) This is a utility function to decode a non-BMP UTF-16 surrogate pair.- Parameters:
high- high 16 bitslow- low 16 bits- Returns:
- decoded character
-
checkCData
Checks whether a CDATA is valid. -
checkNamespacePrefix
Checks whether the prefix of a namespace is valid. -
checkNamespaceURI
Checks whether the URI of a namespace is valid. -
checkPITarget
Checks whether a processing instruction target is valid. -
checkCommentData
Checks whether a comment data is valid. -
checkXMLName
Checks whether a name is valid. -
isXMLCharacter
public static boolean isXMLCharacter(int c) Checks whether a character is valid. -
isXMLNameCharacter
public static boolean isXMLNameCharacter(char c) Checks whether a character can be part of a name. -
isXMLNameStartCharacter
public static boolean isXMLNameStartCharacter(char c) Checks whether a character can be the first character of a name. -
isXMLLetterOrDigit
public static boolean isXMLLetterOrDigit(char c) Checks whether a character is a letter or digit. -
isXMLLetter
public static boolean isXMLLetter(char c) Checks whether a character is a letter. -
isXMLCombiningChar
public static boolean isXMLCombiningChar(char c) Checks whether a character is a combining character according to production 87 of the XML 1.0 specification. -
isXMLExtender
public static boolean isXMLExtender(char c) Checks whether a character is an extender according to production 88 of the XML 1.0 specification. -
isXMLDigit
public static boolean isXMLDigit(char c) Checks whether a character is a digit according to production 88 of the XML 1.0 specification.
-