Java Doc for HTMLdtd.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » serialize » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.serialize 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.serialize.HTMLdtd

HTMLdtd
final public class HTMLdtd (Code)
Utility class for accessing information specific to HTML documents. The HTML DTD is expressed as three utility function groups. Two methods allow for checking whether an element requires an open tag on printing ( HTMLdtd.isEmptyTag ) or on parsing ( HTMLdtd.isOptionalClosing ).

Two other methods translate character references from name to value and from value to name. A small entities resource is loaded into memory the first time any of these methods is called for fast and efficient access.
version:
   $Revision: 36559 $ $Date: 2006-04-28 11:38:13 -0700 (Fri, 28 Apr 2006) $
author:
   Assaf Arkin



Field Summary
final public static  StringHTMLPublicId
     Public identifier for HTML 4.01 (Strict) document type.
final public static  StringHTMLSystemId
     System identifier for HTML 4.01 (Strict) document type.
final public static  StringXHTMLPublicId
     Public identifier for XHTML 1.0 (Strict) document type.
final public static  StringXHTMLSystemId
     System identifier for XHTML 1.0 (Strict) document type.


Method Summary
public static  intcharFromName(String name)
     Returns the value of an HTML character reference by its name.
public static  StringfromChar(int value)
     Returns the name of an HTML character reference based on its character value.
public static  booleanisBoolean(String tagName, String attrName)
     Returns true if the specified attribute is a boolean and should be printed without the value.
public static  booleanisClosing(String tagName, String openTag)
     Returns true if the opening of one element (tagName) implies the closing of another open element (openTag).
public static  booleanisElementContent(String tagName)
     Returns true if element is declared to have element content.
public static  booleanisEmptyTag(String tagName)
     Returns true if element is declared to be empty.
public static  booleanisOnlyOpening(String tagName)
     Returns true if element's closing tag is generally not printed.
public static  booleanisOptionalClosing(String tagName)
     Returns true if element's closing tag is optional and need not exist.
public static  booleanisPreserveSpace(String tagName)
     Returns true if element's textual contents preserves spaces.
public static  booleanisURI(String tagName, String attrName)
     Returns true if the specified attribute it a URI and should be escaped appropriately.

Field Detail
HTMLPublicId
final public static String HTMLPublicId(Code)
Public identifier for HTML 4.01 (Strict) document type.



HTMLSystemId
final public static String HTMLSystemId(Code)
System identifier for HTML 4.01 (Strict) document type.



XHTMLPublicId
final public static String XHTMLPublicId(Code)
Public identifier for XHTML 1.0 (Strict) document type.



XHTMLSystemId
final public static String XHTMLSystemId(Code)
System identifier for XHTML 1.0 (Strict) document type.





Method Detail
charFromName
public static int charFromName(String name)(Code)
Returns the value of an HTML character reference by its name. If the reference is not found or was not defined as a character reference, returns EOF (-1).
Parameters:
  name - Name of character reference Character code or EOF (-1)



fromChar
public static String fromChar(int value)(Code)
Returns the name of an HTML character reference based on its character value. Only valid for entities defined from character references. If no such character value was defined, return null.
Parameters:
  value - Character value of entity Entity's name or null



isBoolean
public static boolean isBoolean(String tagName, String attrName)(Code)
Returns true if the specified attribute is a boolean and should be printed without the value. This applies to attributes that are true if they exist, such as selected (OPTION/INPUT).
Parameters:
  tagName - The element's tag name
Parameters:
  attrName - The attribute's name



isClosing
public static boolean isClosing(String tagName, String openTag)(Code)
Returns true if the opening of one element (tagName) implies the closing of another open element (openTag). For example, every opening LI will close the previously open LI, and every opening BODY will close the previously open HEAD.
Parameters:
  tagName - The newly opened element
Parameters:
  openTag - The already opened element True if closing tag closes opening tag



isElementContent
public static boolean isElementContent(String tagName)(Code)
Returns true if element is declared to have element content. Whitespaces appearing inside element content will be ignored, other text will simply report an error.
Parameters:
  tagName - The element tag name (upper case) True if element content



isEmptyTag
public static boolean isEmptyTag(String tagName)(Code)
Returns true if element is declared to be empty. HTML elements are defines as empty in the DTD, not by the document syntax.
Parameters:
  tagName - The element tag name (upper case) True if element is empty



isOnlyOpening
public static boolean isOnlyOpening(String tagName)(Code)
Returns true if element's closing tag is generally not printed. For example, LI should not print the closing tag.
Parameters:
  tagName - The element tag name (upper case) True if only opening tag should be printed



isOptionalClosing
public static boolean isOptionalClosing(String tagName)(Code)
Returns true if element's closing tag is optional and need not exist. An error will not be reported for such elements if they are not closed. For example, LI is most often not closed.
Parameters:
  tagName - The element tag name (upper case) True if closing tag implied



isPreserveSpace
public static boolean isPreserveSpace(String tagName)(Code)
Returns true if element's textual contents preserves spaces. This only applies to PRE and TEXTAREA, all other HTML elements do not preserve space.
Parameters:
  tagName - The element tag name (upper case) True if element's text content preserves spaces



isURI
public static boolean isURI(String tagName, String attrName)(Code)
Returns true if the specified attribute it a URI and should be escaped appropriately. In HTML URIs are escaped differently than normal attributes.
Parameters:
  tagName - The element's tag name
Parameters:
  attrName - The attribute's name



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.