Java Doc for Verifier.java in  » Workflow-Engines » OpenWFE » org » jdom » 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 » Workflow Engines » OpenWFE » org.jdom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jdom.Verifier

Verifier
final public class Verifier (Code)
A utility class to handle well-formedness checks on names, data, and other verification tasks for JDOM. The class is final and may not be subclassed.
version:
   $Revision: 1.1 $, $Date: 2005/04/27 09:32:39 $
author:
   Brett McLaughlin
author:
   Elliotte Rusty Harold
author:
   Jason Hunter
author:
   Bradley S. Huffman




Method Summary
public static  StringcheckAttributeName(String name)
     This will check the supplied name to see if it is legal for use as a JDOM Attribute name.
Parameters:
  name - String name to check.
public static  StringcheckCDATASection(String data)
     This will check the supplied data to see if it is legal for use as JDOM CDATA .
Parameters:
  data - String data to check.
public static  StringcheckCharacterData(String text)
     This will check the supplied string to see if it only contains characters allowed by the XML 1.0 specification.
public static  StringcheckCommentData(String data)
     This will check the supplied data to see if it is legal for use as JDOM Comment data.
Parameters:
  data - String data to check.
public static  StringcheckElementName(String name)
     This will check the supplied name to see if it is legal for use as a JDOM Element name.
Parameters:
  name - String name to check.
public static  StringcheckNamespaceCollision(Namespace namespace, Namespace other)
     Check if two namespaces collide.
Parameters:
  namespace - Namespace to check.
Parameters:
  other - Namespace to check against.
public static  StringcheckNamespaceCollision(Attribute attribute, Element element)
     Check if Attribute 's namespace collides with a Element 's namespace.
Parameters:
  attribute - Attribute to check.
Parameters:
  element - Element to check against.
public static  StringcheckNamespaceCollision(Namespace namespace, Element element)
     Check if a Namespace collides with a Element 's namespace.
Parameters:
  namespace - Namespace to check.
Parameters:
  element - Element to check against.
public static  StringcheckNamespaceCollision(Namespace namespace, Attribute attribute)
     Check if a Namespace collides with a Attribute 's namespace.
Parameters:
  namespace - Namespace to check.
Parameters:
  attribute - Attribute to check against.
public static  StringcheckNamespaceCollision(Namespace namespace, List list)
     Check if a Namespace collides with any namespace from a list of objects.
Parameters:
  namespace - Namespace to check.
Parameters:
  list - List to check against.
public static  StringcheckNamespacePrefix(String prefix)
     This will check the supplied name to see if it is legal for use as a JDOM Namespace prefix.
Parameters:
  prefix - String prefix to check.
public static  StringcheckNamespaceURI(String uri)
     This will check the supplied name to see if it is legal for use as a JDOM Namespace URI.
Parameters:
  uri - String URI to check.
public static  StringcheckProcessingInstructionData(String data)
     This will check the supplied data to see if it is legal for use as ProcessingInstruction data.
public static  StringcheckProcessingInstructionTarget(String target)
     This will check the supplied data to see if it is legal for use as a JDOM ProcessingInstruction target.
Parameters:
  target - String target to check.
public static  StringcheckPublicID(String publicID)
     This will ensure that the data for a public identifier is legal.
Parameters:
  publicID - String public ID to check.
public static  StringcheckSystemLiteral(String systemLiteral)
     This will ensure that the data for a system literal is legal.
Parameters:
  systemLiteral - String system literal to check.
public static  StringcheckURI(String uri)
    

Checks a string to see if it is a legal RFC 2396 URI. Both absolute and relative URIs are supported.


Parameters:
  uri - String to check.
public static  StringcheckXMLName(String name)
     This is a utility function for sharing the base process of checking any XML name.
Parameters:
  name - String to check for XML name compliance.
public static  booleanisHexDigit(char c)
    

This is a utility function for determining whether a specified Unicode character is a hexadecimal digit as defined in RFC 2396; that is, one of the ASCII characters 0-9, a-f, or A-F


Parameters:
  c - to check for hex digit.
public static  booleanisURICharacter(char c)
    

This is a utility function for determining whether a specified Unicode character is legal in URI references as determined by RFC 2396.


Parameters:
  c - char to check for URI reference compliance.
public static  booleanisXMLCharacter(int c)
     This is a utility function for determining whether a specified character is a character according to production 2 of the XML 1.0 specification.
public static  booleanisXMLCombiningChar(char c)
     This is a utility function for determining whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
Parameters:
  c - char to check.
public static  booleanisXMLDigit(char c)
     This is a utility function for determining whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
public static  booleanisXMLExtender(char c)
     This is a utility function for determining whether a specified character is an extender according to production 88 of the XML 1.0 specification.
Parameters:
  c - char to check.
public static  booleanisXMLLetter(char c)
     This is a utility function for determining whether a specified character is a letter according to production 84 of the XML 1.0 specification.
Parameters:
  c - char to check for XML name compliance.
public static  booleanisXMLLetterOrDigit(char c)
     This is a utility function for determining whether a specified character is a letter or digit according to productions 84 and 88 of the XML 1.0 specification.
Parameters:
  c - char to check.
public static  booleanisXMLNameCharacter(char c)
     This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification.
Parameters:
  c - char to check for XML name compliance.
public static  booleanisXMLNameStartCharacter(char c)
     This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification.
public static  booleanisXMLPublicIDCharacter(char c)
    



Method Detail
checkAttributeName
public static String checkAttributeName(String name)(Code)
This will check the supplied name to see if it is legal for use as a JDOM Attribute name.
Parameters:
  name - String name to check. String reason name is illegal, ornull if name is OK.



checkCDATASection
public static String checkCDATASection(String data)(Code)
This will check the supplied data to see if it is legal for use as JDOM CDATA .
Parameters:
  data - String data to check. String reason data is illegal, ornull is name is OK.



checkCharacterData
public static String checkCharacterData(String text)(Code)
This will check the supplied string to see if it only contains characters allowed by the XML 1.0 specification. The C0 controls (e.g. null, vertical tab, formfeed, etc.) are specifically excluded except for carriage return, linefeed, and the horizontal tab. Surrogates are also excluded.

This method is useful for checking element content and attribute values. Note that characters like " and < are allowed in attribute values and element content. They will simply be escaped as " or < when the value is serialized.


Parameters:
  text - String value to check. String reason name is illegal, ornull if name is OK.



checkCommentData
public static String checkCommentData(String data)(Code)
This will check the supplied data to see if it is legal for use as JDOM Comment data.
Parameters:
  data - String data to check. String reason data is illegal, ornull if data is OK.



checkElementName
public static String checkElementName(String name)(Code)
This will check the supplied name to see if it is legal for use as a JDOM Element name.
Parameters:
  name - String name to check. String reason name is illegal, ornull if name is OK.



checkNamespaceCollision
public static String checkNamespaceCollision(Namespace namespace, Namespace other)(Code)
Check if two namespaces collide.
Parameters:
  namespace - Namespace to check.
Parameters:
  other - Namespace to check against. String reason for collision, ornull if no collision.



checkNamespaceCollision
public static String checkNamespaceCollision(Attribute attribute, Element element)(Code)
Check if Attribute 's namespace collides with a Element 's namespace.
Parameters:
  attribute - Attribute to check.
Parameters:
  element - Element to check against. String reason for collision, ornull if no collision.



checkNamespaceCollision
public static String checkNamespaceCollision(Namespace namespace, Element element)(Code)
Check if a Namespace collides with a Element 's namespace.
Parameters:
  namespace - Namespace to check.
Parameters:
  element - Element to check against. String reason for collision, ornull if no collision.



checkNamespaceCollision
public static String checkNamespaceCollision(Namespace namespace, Attribute attribute)(Code)
Check if a Namespace collides with a Attribute 's namespace.
Parameters:
  namespace - Namespace to check.
Parameters:
  attribute - Attribute to check against. String reason for collision, ornull if no collision.



checkNamespaceCollision
public static String checkNamespaceCollision(Namespace namespace, List list)(Code)
Check if a Namespace collides with any namespace from a list of objects.
Parameters:
  namespace - Namespace to check.
Parameters:
  list - List to check against. String reason for collision, ornull if no collision.



checkNamespacePrefix
public static String checkNamespacePrefix(String prefix)(Code)
This will check the supplied name to see if it is legal for use as a JDOM Namespace prefix.
Parameters:
  prefix - String prefix to check. String reason name is illegal, ornull if name is OK.



checkNamespaceURI
public static String checkNamespaceURI(String uri)(Code)
This will check the supplied name to see if it is legal for use as a JDOM Namespace URI.
Parameters:
  uri - String URI to check. String reason name is illegal, ornull if name is OK.



checkProcessingInstructionData
public static String checkProcessingInstructionData(String data)(Code)
This will check the supplied data to see if it is legal for use as ProcessingInstruction data. Besides checking that all the characters are allowed in XML, this also checks that the data does not contain the PI end-string "?>".
Parameters:
  data - String data to check. String reason data is illegal, ornull if data is OK.



checkProcessingInstructionTarget
public static String checkProcessingInstructionTarget(String target)(Code)
This will check the supplied data to see if it is legal for use as a JDOM ProcessingInstruction target.
Parameters:
  target - String target to check. String reason target is illegal, ornull if target is OK.



checkPublicID
public static String checkPublicID(String publicID)(Code)
This will ensure that the data for a public identifier is legal.
Parameters:
  publicID - String public ID to check. String reason public ID is illegal, ornull if public ID is OK.



checkSystemLiteral
public static String checkSystemLiteral(String systemLiteral)(Code)
This will ensure that the data for a system literal is legal.
Parameters:
  systemLiteral - String system literal to check. String reason system literal is illegal, ornull if system literal is OK.



checkURI
public static String checkURI(String uri)(Code)

Checks a string to see if it is a legal RFC 2396 URI. Both absolute and relative URIs are supported.


Parameters:
  uri - String to check. String reason the URI is illegal, ornull if OK.



checkXMLName
public static String checkXMLName(String name)(Code)
This is a utility function for sharing the base process of checking any XML name.
Parameters:
  name - String to check for XML name compliance. String reason the name is illegal, ornull if OK.



isHexDigit
public static boolean isHexDigit(char c)(Code)

This is a utility function for determining whether a specified Unicode character is a hexadecimal digit as defined in RFC 2396; that is, one of the ASCII characters 0-9, a-f, or A-F


Parameters:
  c - to check for hex digit. true if it's allowed, false otherwise.



isURICharacter
public static boolean isURICharacter(char c)(Code)

This is a utility function for determining whether a specified Unicode character is legal in URI references as determined by RFC 2396.


Parameters:
  c - char to check for URI reference compliance. true if it's allowed, false otherwise.



isXMLCharacter
public static boolean isXMLCharacter(int c)(Code)
This is a utility function for determining whether a specified character is a character according to production 2 of the XML 1.0 specification.
Parameters:
  c - char to check for XML compliance boolean true if it's a character, false otherwise



isXMLCombiningChar
public static boolean isXMLCombiningChar(char c)(Code)
This is a utility function for determining whether a specified character is a combining character according to production 87 of the XML 1.0 specification.
Parameters:
  c - char to check. boolean true if it's a combining character,false otherwise.



isXMLDigit
public static boolean isXMLDigit(char c)(Code)
This is a utility function for determining whether a specified Unicode character is a digit according to production 88 of the XML 1.0 specification.
Parameters:
  c - char to check for XML digit compliance boolean true if it's a digit, false otherwise



isXMLExtender
public static boolean isXMLExtender(char c)(Code)
This is a utility function for determining whether a specified character is an extender according to production 88 of the XML 1.0 specification.
Parameters:
  c - char to check. String true if it's an extender, false otherwise.



isXMLLetter
public static boolean isXMLLetter(char c)(Code)
This is a utility function for determining whether a specified character is a letter according to production 84 of the XML 1.0 specification.
Parameters:
  c - char to check for XML name compliance. String true if it's a letter, false otherwise.



isXMLLetterOrDigit
public static boolean isXMLLetterOrDigit(char c)(Code)
This is a utility function for determining whether a specified character is a letter or digit according to productions 84 and 88 of the XML 1.0 specification.
Parameters:
  c - char to check. boolean true if it's letter or digit, false otherwise.



isXMLNameCharacter
public static boolean isXMLNameCharacter(char c)(Code)
This is a utility function for determining whether a specified character is a name character according to production 4 of the XML 1.0 specification.
Parameters:
  c - char to check for XML name compliance. boolean true if it's a name character, false otherwise.



isXMLNameStartCharacter
public static boolean isXMLNameStartCharacter(char c)(Code)
This is a utility function for determining whether a specified character is a legal name start character according to production 5 of the XML 1.0 specification. This production does allow names to begin with colons which the Namespaces in XML Recommendation disallows.
Parameters:
  c - char to check for XML name start compliance. boolean true if it's a name start character, false otherwise.



isXMLPublicIDCharacter
public static boolean isXMLPublicIDCharacter(char c)(Code)



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.