com.sapportals.portal.prt.service.soap.util

Class CharTypeSolver

java.lang.Object
  extended bycom.sapportals.portal.prt.service.soap.util.CharTypeSolver

public class CharTypeSolver
extends Object

Description : Class that allows to determine the Class of character for further information, please see http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Letter Project : soap FileName : CharTypeSolver.java Copyright : SAP Copyright (c) Company : SAP GBU IP


Constructor Summary
CharTypeSolver()
           
 
Method Summary
static void initCharTypes()
          Initializes all the classes of the characters: Base char, Ideographic, Combining char, Digit, Extender, Char, whitespace
static boolean isBaseChar(int value)
          analyses if it is a base char
static boolean isChar(int value)
          analyses if it is a char
static boolean isCombiningChar(int value)
          analyses if it is a combining char
static boolean isDigit(int value)
          analyses if it is a digit
static boolean isExtender(int value)
          analyses if it is an extender
static boolean isIdeographic(int value)
          analyses if it is a ideographic
static boolean isLetter(int value)
          analyses if it is a Letter defined by Letter ::= BaseChar | Ideographic
static boolean isNameChar(int value)
          analyses if it is a NameChar defined by NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
static boolean isNCNameChar(int value)
          analyses if it is a NCNameChar defined by NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender (same as (see below) NameChar but colon ':' is not allowed)
static boolean isWhiteSpace(int value)
          analyses if it is a white space
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharTypeSolver

public CharTypeSolver()
Method Detail

initCharTypes

public static void initCharTypes()
Initializes all the classes of the characters: Base char, Ideographic, Combining char, Digit, Extender, Char, whitespace


isNCNameChar

public static boolean isNCNameChar(int value)
analyses if it is a NCNameChar defined by NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender (same as (see below) NameChar but colon ':' is not allowed)

Parameters:
value - to analyse
Returns:

isNameChar

public static boolean isNameChar(int value)
analyses if it is a NameChar defined by NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender

Parameters:
value - to analyse
Returns:

isLetter

public static boolean isLetter(int value)
analyses if it is a Letter defined by Letter ::= BaseChar | Ideographic

Parameters:
value - to analyse
Returns:

isBaseChar

public static boolean isBaseChar(int value)
analyses if it is a base char

Parameters:
value - to analyse
Returns:

isIdeographic

public static boolean isIdeographic(int value)
analyses if it is a ideographic

Parameters:
value - to analyse
Returns:

isCombiningChar

public static boolean isCombiningChar(int value)
analyses if it is a combining char

Parameters:
value - to analyse
Returns:

isDigit

public static boolean isDigit(int value)
analyses if it is a digit

Parameters:
value - to analyse
Returns:

isExtender

public static boolean isExtender(int value)
analyses if it is an extender

Parameters:
value - to analyse
Returns:

isChar

public static boolean isChar(int value)
analyses if it is a char

Parameters:
value - to analyse
Returns:

isWhiteSpace

public static boolean isWhiteSpace(int value)
analyses if it is a white space

Parameters:
value - to analyse
Returns:

main

public static void main(String[] args)


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.