de.uplanet.xml
Class XmlCharacterClasses

java.lang.Object
  extended by de.uplanet.xml.XmlCharacterClasses

@Scriptable
public final class XmlCharacterClasses
extends java.lang.Object

Version:
$Revision: 88034 $

Method Summary
static boolean isLegalXmlCharacter(int p_iCodepoint)
          Check if the given codepoint represents a legal XML character as defined in the Char production in Extensible Markup Language (XML) 1.0 (Fifth Edition) Specification.
static boolean isLegalXmlCharacterSequence(java.lang.CharSequence p_chseq)
           
static boolean isLegalXmlCharacterSequence(java.lang.CharSequence p_chseq, int p_iBeginIndex, int p_iEndIndex)
           
static boolean isNameCharacter(char p_ch)
          Check if the given character is a name character as defined in the Name production in Extensible Markup Language (XML) 1.0 Specification.
static boolean isNameStartCharacter(char p_ch)
          Check if the given character is a name start character as defined in the Name production in Extensible Markup Language (XML) 1.0 Specification.
static boolean isNcNameCharacter(char p_ch)
          Check if the given character is a name character as defined in the NcName production in Namespaces in XML 1.0 (Second Edition) Specification.
static boolean isNcNameStartCharacter(char p_ch)
          Check if the given character is a name start character as defined in the NcName production in Namespaces in XML 1.0 (Second Edition) Specification.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNameStartCharacter

public static boolean isNameStartCharacter(char p_ch)
Check if the given character is a name start character as defined in the Name production in Extensible Markup Language (XML) 1.0 Specification.

Note: For performance reasons some checks for exotic characters are left out.

Parameters:
p_ch - The character.
Returns:
true if the given character is a name start character, or false otherwise.

isNameCharacter

public static boolean isNameCharacter(char p_ch)
Check if the given character is a name character as defined in the Name production in Extensible Markup Language (XML) 1.0 Specification.

Note: For performance reasons some checks for exotic characters are left out.

Parameters:
p_ch - The character.
Returns:
true if the given character is a name character, or false otherwise.

isNcNameStartCharacter

public static boolean isNcNameStartCharacter(char p_ch)
Check if the given character is a name start character as defined in the NcName production in Namespaces in XML 1.0 (Second Edition) Specification.

Note: For performance reasons some checks for exotic characters are left out.

Parameters:
p_ch - The character.
Returns:
true if the given character is a NcName start character, or false otherwise.

isNcNameCharacter

public static boolean isNcNameCharacter(char p_ch)
Check if the given character is a name character as defined in the NcName production in Namespaces in XML 1.0 (Second Edition) Specification.

Note: For performance reasons some checks for exotic characters are left out.

Parameters:
p_ch - The character.
Returns:
true if the given character is a NcName character, or false otherwise.

isLegalXmlCharacter

public static boolean isLegalXmlCharacter(int p_iCodepoint)
Check if the given codepoint represents a legal XML character as defined in the Char production in Extensible Markup Language (XML) 1.0 (Fifth Edition) Specification.
 Character Range
 [2] Char ::=
 #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
 any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
 

Parameters:
p_iCodepoint - The codepoint to check.
Returns:
true if the given codepoint represents a legal XML character, or false otherwise.

isLegalXmlCharacterSequence

public static boolean isLegalXmlCharacterSequence(java.lang.CharSequence p_chseq)

isLegalXmlCharacterSequence

public static boolean isLegalXmlCharacterSequence(java.lang.CharSequence p_chseq,
                                                  int p_iBeginIndex,
                                                  int p_iEndIndex)


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.