Java Doc for XMLDTDContentModelHandler.java in  » 6.0-JDK-Modules » sjsxp » com » sun » xml » stream » xerces » xni » 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 » 6.0 JDK Modules » sjsxp » com.sun.xml.stream.xerces.xni 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.stream.xerces.xni.XMLDTDContentModelHandler

XMLDTDContentModelHandler
public interface XMLDTDContentModelHandler (Code)
The DTD content model handler interface defines callback methods to report information items in DTD content models of an element declaration. Parser components interested in DTD content model information implement this interface and are registered as the DTD content model handler on the DTD content model source.
See Also:   XMLDTDHandler
author:
   Andy Clark, IBM
version:
   $Id: XMLDTDContentModelHandler.java,v 1.2 2006/04/01 06:01:46 jeffsuttor Exp $


Field Summary
final public static  shortOCCURS_ONE_OR_MORE
     This occurrence count limits the element, choice, or sequence in a children content model to one or more.
final public static  shortOCCURS_ZERO_OR_MORE
     This occurrence count limits the element, choice, or sequence in a children content model to zero or more.
final public static  shortOCCURS_ZERO_OR_ONE
     This occurrence count limits the element, choice, or sequence in a children content model to zero or one.
final public static  shortSEPARATOR_CHOICE
     A choice separator for children and mixed content models.
final public static  shortSEPARATOR_SEQUENCE
     A sequence separator for children content models.


Method Summary
public  voidany(Augmentations augmentations)
     A content model of ANY.
public  voidelement(String elementName, Augmentations augmentations)
     A referenced element in a mixed or children content model.
public  voidempty(Augmentations augmentations)
     A content model of EMPTY.
public  voidendContentModel(Augmentations augmentations)
     The end of a content model.
public  voidendGroup(Augmentations augmentations)
     The end of a group for mixed or children content models.
public  voidoccurrence(short occurrence, Augmentations augmentations)
     The occurrence count for a child in a children content model or for the mixed content model group.
public  voidpcdata(Augmentations augmentations)
     The appearance of "#PCDATA" within a group signifying a mixed content model.
public  voidseparator(short separator, Augmentations augmentations)
     The separator between choices or sequences of a mixed or children content model.
public  voidstartContentModel(String elementName, Augmentations augmentations)
     The start of a content model.
public  voidstartGroup(Augmentations augmentations)
     A start of either a mixed or children content model.

Field Detail
OCCURS_ONE_OR_MORE
final public static short OCCURS_ONE_OR_MORE(Code)
This occurrence count limits the element, choice, or sequence in a children content model to one or more. In other words, the child may appear an arbitrary number of times, but must appear at least once.

For example:

 <!ELEMENT elem (foo+)>
 

See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE
See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE



OCCURS_ZERO_OR_MORE
final public static short OCCURS_ZERO_OR_MORE(Code)
This occurrence count limits the element, choice, or sequence in a children content model to zero or more. In other words, the child may appear an arbitrary number of times, or not at all. This occurrence count is also used for mixed content models.

For example:

 <!ELEMENT elem (foo*)>
 <!ELEMENT elem (#PCDATA|foo|bar)*>
 

See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE
See Also:   XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE



OCCURS_ZERO_OR_ONE
final public static short OCCURS_ZERO_OR_ONE(Code)
This occurrence count limits the element, choice, or sequence in a children content model to zero or one. In other words, the child is optional.

For example:

 <!ELEMENT elem (foo?)>
 

See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE
See Also:   XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE



SEPARATOR_CHOICE
final public static short SEPARATOR_CHOICE(Code)
A choice separator for children and mixed content models. This separator is used to specify that the allowed child is one of a collection.

For example:

 <!ELEMENT elem (foo|bar)>
 <!ELEMENT elem (foo|bar+)>
 <!ELEMENT elem (foo|bar|baz)>
 <!ELEMENT elem (#PCDATA|foo|bar)*>
 

See Also:   XMLDTDContentModelHandler.SEPARATOR_SEQUENCE



SEPARATOR_SEQUENCE
final public static short SEPARATOR_SEQUENCE(Code)
A sequence separator for children content models. This separator is used to specify that the allowed children must follow in the specified sequence.

 <!ELEMENT elem (foo,bar)>
 <!ELEMENT elem (foo,bar*)>
 <!ELEMENT elem (foo,bar,baz)>
 

See Also:   XMLDTDContentModelHandler.SEPARATOR_CHOICE





Method Detail
any
public void any(Augmentations augmentations) throws XNIException(Code)
A content model of ANY.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   XMLDTDContentModelHandler.empty
See Also:   XMLDTDContentModelHandler.startGroup



element
public void element(String elementName, Augmentations augmentations) throws XNIException(Code)
A referenced element in a mixed or children content model.
Parameters:
  elementName - The name of the referenced element.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



empty
public void empty(Augmentations augmentations) throws XNIException(Code)
A content model of EMPTY.
throws:
  XNIException - Thrown by handler to signal an error.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
See Also:   XMLDTDContentModelHandler.any
See Also:   XMLDTDContentModelHandler.startGroup



endContentModel
public void endContentModel(Augmentations augmentations) throws XNIException(Code)
The end of a content model.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endGroup
public void endGroup(Augmentations augmentations) throws XNIException(Code)
The end of a group for mixed or children content models.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



occurrence
public void occurrence(short occurrence, Augmentations augmentations) throws XNIException(Code)
The occurrence count for a child in a children content model or for the mixed content model group.
Parameters:
  occurrence - The occurrence count for the last elementor group.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE
See Also:   XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE
See Also:   XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE



pcdata
public void pcdata(Augmentations augmentations) throws XNIException(Code)
The appearance of "#PCDATA" within a group signifying a mixed content model. This method will be the first called following the content model's startGroup().
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   XMLDTDContentModelHandler.startGroup



separator
public void separator(short separator, Augmentations augmentations) throws XNIException(Code)
The separator between choices or sequences of a mixed or children content model.
Parameters:
  separator - The type of children separator.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   XMLDTDContentModelHandler.SEPARATOR_CHOICE
See Also:   XMLDTDContentModelHandler.SEPARATOR_SEQUENCE



startContentModel
public void startContentModel(String elementName, Augmentations augmentations) throws XNIException(Code)
The start of a content model. Depending on the type of the content model, specific methods may be called between the call to the startContentModel method and the call to the endContentModel method.
Parameters:
  elementName - The name of the element.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startGroup
public void startGroup(Augmentations augmentations) throws XNIException(Code)
A start of either a mixed or children content model. A mixed content model will immediately be followed by a call to the pcdata() method. A children content model will contain additional groups and/or elements.
Parameters:
  augmentations - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   XMLDTDContentModelHandler.any
See Also:   XMLDTDContentModelHandler.empty



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