de.pdark.decentxml.validation
Class CharValidator

java.lang.Object
  extended by de.pdark.decentxml.validation.CharValidator

public class CharValidator
extends java.lang.Object


Constructor Summary
CharValidator()
           
 
Method Summary
 boolean isBaseChar(char c)
           
 boolean isCombiningChar(char c)
           
 boolean isDigit(char c)
           
 boolean isExtender(char c)
           
 boolean isIdeographic(char c)
           
 boolean isLetter(char c)
           
 boolean isNameChar(char c)
          Return true if the character is valid inside of an XML name
 boolean isNameStartChar(char c)
          Return true if the character is valid as the first one of an XML name
 java.lang.String isValid(int codePoint)
          Is this a valid unicode character as defined by the W3C?
 java.lang.String isValid(XMLSource source, int offset)
          Verify the character at
 boolean isWhitespace(char c)
          Is the character whitespace as defined by the W3C?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharValidator

public CharValidator()
Method Detail

isValid

public java.lang.String isValid(XMLSource source,
                                int offset)
Verify the character at

Parameters:
source -
offset -
Returns:

isWhitespace

public boolean isWhitespace(char c)
Is the character whitespace as defined by the W3C?


isValid

public java.lang.String isValid(int codePoint)
Is this a valid unicode character as defined by the W3C?


isNameStartChar

public boolean isNameStartChar(char c)
Return true if the character is valid as the first one of an XML name


isNameChar

public boolean isNameChar(char c)
Return true if the character is valid inside of an XML name


isLetter

public boolean isLetter(char c)

isBaseChar

public boolean isBaseChar(char c)

isIdeographic

public boolean isIdeographic(char c)

isDigit

public boolean isDigit(char c)

isCombiningChar

public boolean isCombiningChar(char c)

isExtender

public boolean isExtender(char c)


Copyright © 2008-2011. All Rights Reserved.