Java Doc for BalancedDTDGrammar.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » dtd » 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.impl.dtd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.impl.dtd.DTDGrammar
      org.apache.xerces.impl.dtd.BalancedDTDGrammar

BalancedDTDGrammar
final class BalancedDTDGrammar extends DTDGrammar (Code)

A DTD grammar that produces balanced syntax trees.


author:
   Michael Glavassevich, IBM
version:
   $Id: BalancedDTDGrammar.java 446755 2006-09-15 21:56:27Z mrglavas $



Constructor Summary
public  BalancedDTDGrammar(SymbolTable symbolTable, XMLDTDDescription desc)
     Default constructor.

Method Summary
final protected  voidaddContentSpecToElement(XMLElementDecl elementDecl)
     Adds the content spec to the given element declaration.
final public  voidelement(String elementName, Augmentations augs)
     A referenced element in a mixed or children content model.
final public  voidendDTD(Augmentations augs)
     The end of the DTD.
final public  voidendGroup(Augmentations augs)
     The end of a group for mixed or children content models.
final public  voidoccurrence(short occurrence, Augmentations augs)
     The occurrence count for a child in a children content model or for the mixed content model group.
final public  voidpcdata(Augmentations augs)
     The appearance of "#PCDATA" within a group signifying a mixed content model.
final public  voidseparator(short separator, Augmentations augs)
     The separator between choices or sequences of a mixed or children content model.
final public  voidstartContentModel(String elementName, Augmentations augs)
     The start of a content model.
final public  voidstartGroup(Augmentations augs)
     A start of either a mixed or children content model.


Constructor Detail
BalancedDTDGrammar
public BalancedDTDGrammar(SymbolTable symbolTable, XMLDTDDescription desc)(Code)
Default constructor.




Method Detail
addContentSpecToElement
final protected void addContentSpecToElement(XMLElementDecl elementDecl)(Code)
Adds the content spec to the given element declaration.



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



endDTD
final public void endDTD(Augmentations augs) throws XNIException(Code)
The end of the DTD.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



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



occurrence
final public void occurrence(short occurrence, Augmentations augs) 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:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   org.apache.xerces.xni.XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE
See Also:   org.apache.xerces.xni.XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE
See Also:   org.apache.xerces.xni.XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE



pcdata
final public void pcdata(Augmentations augs) 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:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   BalancedDTDGrammar.startGroup



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



startContentModel
final public void startContentModel(String elementName, Augmentations augs) 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:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startGroup
final public void startGroup(Augmentations augs) 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:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   BalancedDTDGrammar.any
See Also:   BalancedDTDGrammar.empty



Fields inherited from org.apache.xerces.impl.dtd.DTDGrammar
final public static int TOP_LEVEL_SCOPE(Code)(Java Doc)
final protected XMLAttributeDecl fAttributeDecl(Code)(Java Doc)
protected int fCurrentAttributeIndex(Code)(Java Doc)
protected int fCurrentElementIndex(Code)(Java Doc)
protected XMLDTDContentModelSource fDTDContentModelSource(Code)(Java Doc)
protected XMLDTDSource fDTDSource(Code)(Java Doc)
Hashtable fElementDeclTab(Code)(Java Doc)
protected XMLDTDDescription fGrammarDescription(Code)(Java Doc)
protected boolean fReadingExternalDTD(Code)(Java Doc)
int nodeIndex(Code)(Java Doc)
int prevNodeIndex(Code)(Java Doc)
int valueIndex(Code)(Java Doc)

Methods inherited from org.apache.xerces.impl.dtd.DTDGrammar
protected int addContentSpecNode(short nodeType, String nodeValue)(Code)(Java Doc)
protected int addContentSpecNode(short nodeType, int leftNodeIndex, int rightNodeIndex)(Code)(Java Doc)
protected void addContentSpecToElement(XMLElementDecl elementDecl)(Code)(Java Doc)
protected int addUniqueLeafNode(String elementName)(Code)(Java Doc)
public void any(Augmentations augs) throws XNIException(Code)(Java Doc)
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)(Java Doc)
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
protected int createAttributeDecl()(Code)(Java Doc)
protected int createContentSpec()(Code)(Java Doc)
protected int createElementDecl()(Code)(Java Doc)
protected int createEntityDecl()(Code)(Java Doc)
protected int createNotationDecl()(Code)(Java Doc)
public void element(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)(Java Doc)
public void empty(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endAttlist(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endConditional(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endContentModel(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endDTD(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endExternalSubset(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public boolean getAttributeDecl(int attributeDeclIndex, XMLAttributeDecl attributeDecl)(Code)(Java Doc)
public int getAttributeDeclIndex(int elementDeclIndex, String attributeDeclName)(Code)(Java Doc)
public boolean getAttributeDeclIsExternal(int attributeDeclIndex)(Code)(Java Doc)
public boolean getContentSpec(int contentSpecIndex, XMLContentSpec contentSpec)(Code)(Java Doc)
public String getContentSpecAsString(int elementDeclIndex)(Code)(Java Doc)
public int getContentSpecIndex(int elementDeclIndex)(Code)(Java Doc)
public short getContentSpecType(int elementIndex)(Code)(Java Doc)
public XMLDTDContentModelSource getDTDContentModelSource()(Code)(Java Doc)
public XMLDTDSource getDTDSource()(Code)(Java Doc)
protected ContentModelValidator getElementContentModelValidator(int elementDeclIndex)(Code)(Java Doc)
public boolean getElementDecl(int elementDeclIndex, XMLElementDecl elementDecl)(Code)(Java Doc)
public int getElementDeclIndex(String elementDeclName)(Code)(Java Doc)
public int getElementDeclIndex(QName elementDeclQName)(Code)(Java Doc)
public boolean getElementDeclIsExternal(int elementDeclIndex)(Code)(Java Doc)
QName getElementDeclName(int elementDeclIndex)(Code)(Java Doc)
public boolean getEntityDecl(int entityDeclIndex, XMLEntityDecl entityDecl)(Code)(Java Doc)
public int getEntityDeclIndex(String entityDeclName)(Code)(Java Doc)
public int getFirstAttributeDeclIndex(int elementDeclIndex)(Code)(Java Doc)
public int getFirstElementDeclIndex()(Code)(Java Doc)
public XMLGrammarDescription getGrammarDescription()(Code)(Java Doc)
public int getNextAttributeDeclIndex(int attributeDeclIndex)(Code)(Java Doc)
public int getNextElementDeclIndex(int elementDeclIndex)(Code)(Java Doc)
public boolean getNotationDecl(int notationDeclIndex, XMLNotationDecl notationDecl)(Code)(Java Doc)
public int getNotationDeclIndex(String notationDeclName)(Code)(Java Doc)
public SymbolTable getSymbolTable()(Code)(Java Doc)
public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
protected void initializeContentModelStack()(Code)(Java Doc)
public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)(Java Doc)
public boolean isCDATAAttribute(QName elName, QName atName)(Code)(Java Doc)
public boolean isEntityDeclared(String name)(Code)(Java Doc)
public boolean isEntityUnparsed(String name)(Code)(Java Doc)
boolean isImmutable()(Code)(Java Doc)
public boolean isNamespaceAware()(Code)(Java Doc)
public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public void occurrence(short occurrence, Augmentations augs) throws XNIException(Code)(Java Doc)
public void pcdata(Augmentations augs) throws XNIException(Code)(Java Doc)
public void printAttributes(int elementDeclIndex)(Code)(Java Doc)
public void printElements()(Code)(Java Doc)
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc)
protected void putElementNameMapping(QName name, int scope, int elementDeclIndex)(Code)(Java Doc)
public void separator(short separator, Augmentations augs) throws XNIException(Code)(Java Doc)
protected void setAttributeDecl(int elementDeclIndex, int attributeDeclIndex, XMLAttributeDecl attributeDecl)(Code)(Java Doc)
protected void setContentSpec(int contentSpecIndex, XMLContentSpec contentSpec)(Code)(Java Doc)
protected void setContentSpecIndex(int elementDeclIndex, int contentSpecIndex)(Code)(Java Doc)
public void setDTDContentModelSource(XMLDTDContentModelSource source)(Code)(Java Doc)
public void setDTDSource(XMLDTDSource source)(Code)(Java Doc)
protected void setElementDecl(int elementDeclIndex, XMLElementDecl elementDecl)(Code)(Java Doc)
protected void setEntityDecl(int entityDeclIndex, XMLEntityDecl entityDecl)(Code)(Java Doc)
protected void setFirstAttributeDeclIndex(int elementDeclIndex, int newFirstAttrIndex)(Code)(Java Doc)
protected void setNotationDecl(int notationDeclIndex, XMLNotationDecl notationDecl)(Code)(Java Doc)
public void startAttlist(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startConditional(short type, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startContentModel(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startDTD(XMLLocator locator, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)(Java Doc)

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.