Java Doc for XML11Char.java in  » XML » xerces-2_9_1 » org » apache » xerces » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.util.XML11Char

XML11Char
public class XML11Char (Code)
This class defines the basic properties of characters in XML 1.1. The data in this class can be used to verify that a character is a valid XML 1.1 character or if the character is a space, name start, or name character.

A series of convenience methods are supplied to ease the burden of the developer. Using the character as an index into the XML11CHARS array and applying the appropriate mask flag (e.g. MASK_VALID), yields the same results as calling the convenience methods. There is one exception: check the comments for the isValid method for details.
author:
   Glenn Marcy, IBM
author:
   Andy Clark, IBM
author:
   Arnaud Le Hors, IBM
author:
   Neil Graham, IBM
author:
   Michael Glavassevich, IBM
version:
   $Id: XML11Char.java 447241 2006-09-18 05:12:57Z mrglavas $



Field Summary
final public static  intMASK_XML11_CONTENT
    
final public static  intMASK_XML11_CONTENT_INTERNAL
    
final public static  intMASK_XML11_CONTROL
    
final public static  intMASK_XML11_NAME
     XML 1.1 Name character mask.
final public static  intMASK_XML11_NAME_START
     XML 1.1 Name start character mask.
final public static  intMASK_XML11_NCNAME
    
final public static  intMASK_XML11_NCNAME_START
    
final public static  intMASK_XML11_SPACE
     XML 1.1 Space character mask.
final public static  intMASK_XML11_VALID
     XML 1.1 Valid character mask.


Method Summary
public static  booleanisXML11Content(int c)
     Returns true if the specified character can be considered content in an external parsed entity.
public static  booleanisXML11InternalEntityContent(int c)
     Returns true if the specified character can be considered content in an internal parsed entity.
public static  booleanisXML11Invalid(int c)
     Returns true if the specified character is invalid.
public static  booleanisXML11NCName(int c)
     Returns true if the specified character is a valid NCName character as defined by production [5] in Namespaces in XML 1.1 recommendation.
public static  booleanisXML11NCNameStart(int c)
     Returns true if the specified character is a valid NCName start character as defined by production [4] in Namespaces in XML 1.1 recommendation.
public static  booleanisXML11Name(int c)
     Returns true if the specified character is a valid name character as defined by production [4a] in the XML 1.1 specification.
public static  booleanisXML11NameHighSurrogate(int c)
     Returns whether the given character is a valid high surrogate for a name character.
public static  booleanisXML11NameStart(int c)
     Returns true if the specified character is a valid name start character as defined by production [4] in the XML 1.1 specification.
public static  booleanisXML11Space(int c)
     Returns true if the specified character is a space character as amdended in the XML 1.1 specification.
public static  booleanisXML11Valid(int c)
     Returns true if the specified character is valid.
public static  booleanisXML11ValidLiteral(int c)
     Returns true if the specified character is valid and permitted outside of a character reference.
public static  booleanisXML11ValidNCName(String ncName)
    
public static  booleanisXML11ValidName(String name)
    
public static  booleanisXML11ValidNmtoken(String nmtoken)
    

Field Detail
MASK_XML11_CONTENT
final public static int MASK_XML11_CONTENT(Code)
XML 1.1 content for external entities (valid - "special" chars - control chars)



MASK_XML11_CONTENT_INTERNAL
final public static int MASK_XML11_CONTENT_INTERNAL(Code)
XML 1.1 content for internal entities (valid - "special" chars)



MASK_XML11_CONTROL
final public static int MASK_XML11_CONTROL(Code)
XML 1.1 control character mask



MASK_XML11_NAME
final public static int MASK_XML11_NAME(Code)
XML 1.1 Name character mask.



MASK_XML11_NAME_START
final public static int MASK_XML11_NAME_START(Code)
XML 1.1 Name start character mask.



MASK_XML11_NCNAME
final public static int MASK_XML11_NCNAME(Code)
XML namespaces 1.1 NCName



MASK_XML11_NCNAME_START
final public static int MASK_XML11_NCNAME_START(Code)
XML namespaces 1.1 NCNameStart



MASK_XML11_SPACE
final public static int MASK_XML11_SPACE(Code)
XML 1.1 Space character mask.



MASK_XML11_VALID
final public static int MASK_XML11_VALID(Code)
XML 1.1 Valid character mask.





Method Detail
isXML11Content
public static boolean isXML11Content(int c)(Code)
Returns true if the specified character can be considered content in an external parsed entity.
Parameters:
  c - The character to check.



isXML11InternalEntityContent
public static boolean isXML11InternalEntityContent(int c)(Code)
Returns true if the specified character can be considered content in an internal parsed entity.
Parameters:
  c - The character to check.



isXML11Invalid
public static boolean isXML11Invalid(int c)(Code)
Returns true if the specified character is invalid.
Parameters:
  c - The character to check.



isXML11NCName
public static boolean isXML11NCName(int c)(Code)
Returns true if the specified character is a valid NCName character as defined by production [5] in Namespaces in XML 1.1 recommendation.
Parameters:
  c - The character to check.



isXML11NCNameStart
public static boolean isXML11NCNameStart(int c)(Code)
Returns true if the specified character is a valid NCName start character as defined by production [4] in Namespaces in XML 1.1 recommendation.
Parameters:
  c - The character to check.



isXML11Name
public static boolean isXML11Name(int c)(Code)
Returns true if the specified character is a valid name character as defined by production [4a] in the XML 1.1 specification.
Parameters:
  c - The character to check.



isXML11NameHighSurrogate
public static boolean isXML11NameHighSurrogate(int c)(Code)
Returns whether the given character is a valid high surrogate for a name character. This includes all high surrogates for characters [0x10000-0xEFFFF]. In other words everything excluding planes 15 and 16.
Parameters:
  c - The character to check.



isXML11NameStart
public static boolean isXML11NameStart(int c)(Code)
Returns true if the specified character is a valid name start character as defined by production [4] in the XML 1.1 specification.
Parameters:
  c - The character to check.



isXML11Space
public static boolean isXML11Space(int c)(Code)
Returns true if the specified character is a space character as amdended in the XML 1.1 specification.
Parameters:
  c - The character to check.



isXML11Valid
public static boolean isXML11Valid(int c)(Code)
Returns true if the specified character is valid. This method also checks the surrogate character range from 0x10000 to 0x10FFFF.

If the program chooses to apply the mask directly to the XML11CHARS array, then they are responsible for checking the surrogate character range.
Parameters:
  c - The character to check.




isXML11ValidLiteral
public static boolean isXML11ValidLiteral(int c)(Code)
Returns true if the specified character is valid and permitted outside of a character reference. That is, this method will return false for the same set as isXML11Valid, except it also reports false for "control characters".
Parameters:
  c - The character to check.



isXML11ValidNCName
public static boolean isXML11ValidNCName(String ncName)(Code)
Check to see if a string is a valid NCName according to [4] from the XML Namespaces 1.1 Recommendation
Parameters:
  ncName - string to check true if name is a valid NCName



isXML11ValidName
public static boolean isXML11ValidName(String name)(Code)
Check to see if a string is a valid Name according to [5] in the XML 1.1 Recommendation
Parameters:
  name - string to check true if name is a valid Name



isXML11ValidNmtoken
public static boolean isXML11ValidNmtoken(String nmtoken)(Code)
Check to see if a string is a valid Nmtoken according to [7] in the XML 1.1 Recommendation
Parameters:
  nmtoken - string to check true if nmtoken is a valid Nmtoken



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.