Java Doc for SchemaBuilder.java in  » 6.0-JDK-Modules » jaxb-xjc » org » kohsuke » rngom » ast » builder » 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 » jaxb xjc » org.kohsuke.rngom.ast.builder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kohsuke.rngom.ast.builder.SchemaBuilder

All known Subclasses:   org.kohsuke.rngom.binary.SchemaBuilderImpl,  org.kohsuke.rngom.parse.host.SchemaBuilderHost,
SchemaBuilder
public interface SchemaBuilder (Code)




Method Summary
 Pannotate(P p, A anno)
     Called when annotation is found right inside a pattern such as,

 <element name="foo">     <!-- this becomes 'P' -->
 <foreign:annotation /> <!-- this becomes 'A' -->
 ...</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#annotateAfterPE"><B>annotateAfter</B></a>(P p, E e)<BR>&nbsp;&nbsp;&nbsp;&nbsp; Called when element annotation is found after a pattern.</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#commentAfterPCL"><B>commentAfter</B></a>(P p, CL comments)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#expandPatternP"><B>expandPattern</B></a>(P p)<BR>&nbsp;&nbsp;&nbsp;&nbsp; Called after all the parsing is done.</td></tr><tr><td valign=top align=right width=200>&nbsp;<a href="NameClassBuilder.java.htm"><B>NameClassBuilder</B></a>&lt;N, E, L, A, CL&gt;</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#getNameClassBuilder"><B>getNameClassBuilder</B></a>()<BR>&nbsp;&nbsp;&nbsp;&nbsp; Returns the 
<a href="NameClassBuilder.java.htm"><B>NameClassBuilder</B></a> , which is used to build name
 classes for this 
<a href="SchemaBuilder.java.htm"><B>SchemaBuilder</B></a> .</td></tr><tr><td valign=top align=right width=200>&nbsp;A</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeAnnotationsCLContext"><B>makeAnnotations</B></a>(CL comments, <a href="../../parse/Context.java.htm"><B>Context</B></a> context)<BR>&nbsp;&nbsp;&nbsp;&nbsp; Creates 
<a href="Annotations.java.htm"><B>Annotations</B></a>  object to parse annotations on patterns.</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeAttributeNPLA"><B>makeAttribute</B></a>(N nc, P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeChoiceListPLA"><B>makeChoice</B></a>(<a href="../../../../../../../6.0-JDK-Core/Collections-Jar-Zip-Logging-regex/java/util/List.java.htm"><B>List</B></a>&lt;P&gt; patterns, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;CL</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeCommentList"><B>makeCommentList</B></a>()<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;<a href="DataPatternBuilder.java.htm"><B>DataPatternBuilder</B></a></td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeDataPatternBuilderStringStringL"><B>makeDataPatternBuilder</B></a>(<a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> datatypeLibrary, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> type, L loc)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeElementNPLA"><B>makeElement</B></a>(N nc, P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;<a href="ElementAnnotationBuilder.java.htm"><B>ElementAnnotationBuilder</B></a>&lt;P, E, L, A, CL&gt;</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeElementAnnotationBuilderStringStringStringLCLContext"><B>makeElementAnnotationBuilder</B></a>(<a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> ns, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> localName, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> prefix, L loc, CL comments, <a href="../../parse/Context.java.htm"><B>Context</B></a> context)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeEmptyLA"><B>makeEmpty</B></a>(L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeErrorPattern"><B>makeErrorPattern</B></a>()<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeExternalRefParseableStringStringScopePELACLLA"><B>makeExternalRef</B></a>(<a href="../../parse/Parseable.java.htm"><B>Parseable</B></a> current, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> uri, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> ns, <a href="Scope.java.htm"><B>Scope</B></a>&lt;P, E, L, A, CL&gt; scope, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR><B>Parameters:</B><BR>&nbsp;&nbsp;current - Current grammar that we are parsing.</td></tr><tr><td valign=top align=right width=200>&nbsp;<a href="Grammar.java.htm"><B>Grammar</B></a>&lt;P, E, L, A, CL&gt;</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeGrammarScopePELACL"><B>makeGrammar</B></a>(<a href="Scope.java.htm"><B>Scope</B></a>&lt;P, E, L, A, CL&gt; parent)<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR><B>Parameters:</B><BR>&nbsp;&nbsp;parent - The parent scope.</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeGroupListPLA"><B>makeGroup</B></a>(<a href="../../../../../../../6.0-JDK-Core/Collections-Jar-Zip-Logging-regex/java/util/List.java.htm"><B>List</B></a>&lt;P&gt; patterns, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeInterleaveListPLA"><B>makeInterleave</B></a>(<a href="../../../../../../../6.0-JDK-Core/Collections-Jar-Zip-Logging-regex/java/util/List.java.htm"><B>List</B></a>&lt;P&gt; patterns, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeListPLA"><B>makeList</B></a>(P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;L</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeLocationStringintint"><B>makeLocation</B></a>(<a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> systemId, int lineNumber, int columnNumber)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeMixedPLA"><B>makeMixed</B></a>(P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeNotAllowedLA"><B>makeNotAllowed</B></a>(L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeOneOrMorePLA"><B>makeOneOrMore</B></a>(P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeOptionalPLA"><B>makeOptional</B></a>(P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeTextLA"><B>makeText</B></a>(L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeValueStringStringStringContextStringLA"><B>makeValue</B></a>(<a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> datatypeLibrary, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> type, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> value, <a href="../../parse/Context.java.htm"><B>Context</B></a> c, <a href="../../../../../../../6.0-JDK-Core/lang/java/lang/String.java.htm"><B>String</B></a> ns, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;P</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#makeZeroOrMorePLA"><B>makeZeroOrMore</B></a>(P p, L loc, A anno)<BR>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr><tr><td valign=top align=right width=200>&nbsp;boolean</td><td width=600><a href="SchemaBuilder.java.java-doc.htm#usesComments"><B>usesComments</B></a>()<BR>&nbsp;&nbsp;&nbsp;&nbsp; If this 
<a href="SchemaBuilder.java.htm"><B>SchemaBuilder</B></a> is interested in actually parsing
 comments, this method returns true.</td></tr></TABLE><br><br><br><TABLE cellSpacing=0 cellPadding=3 width=800 border=1><TR bgColor=#ccccff><TD><FONT size=+1><B>Method Detail</B></FONT></TD></TR></TABLE><a name="annotatePA"></a><table border=0 width=800><tr><td colspan=2><font size=+1><B>annotate</B></font></td></tr><tr><td colspan=2><font size=-1> P annotate(P p, A anno) throws <a href="BuildException.java.htm"><B>BuildException</B></a></font><A href="SchemaBuilder.java.htm#annotatePA">(Code)</a></td></tr><tr><td width=30></td><td> Called when annotation is found right inside a pattern
 such as,
 <pre><xmp>
 <element name="foo">     <!-- this becomes 'P' -->
 <foreign:annotation /> <!-- this becomes 'A' -->
 ...
 </element>
 



annotateAfter
P annotateAfter(P p, E e) throws BuildException(Code)
Called when element annotation is found after a pattern. such as,

 <element name="foo">
 <empty />              <!-- this becomes 'P' -->
 <foreign:annotation /> <!-- this becomes 'E' -->
 </element>
 



commentAfter
P commentAfter(P p, CL comments) throws BuildException(Code)



expandPattern
P expandPattern(P p) throws BuildException, IllegalSchemaException(Code)
Called after all the parsing is done.

This hook typically allows as SchemaBuilder to expand notAllowed (if it's following the simplification as in the spec.)




getNameClassBuilder
NameClassBuilder<N, E, L, A, CL> getNameClassBuilder() throws BuildException(Code)
Returns the NameClassBuilder , which is used to build name classes for this SchemaBuilder . The org.kohsuke.rngom.nc.NameClass es that are built will then be fed into this SchemaBuilder to further build RELAX NG patterns. always return a non-null valid object. This method can (andprobably should) always return the same object.



makeAnnotations
A makeAnnotations(CL comments, Context context)(Code)
Creates Annotations object to parse annotations on patterns. must be non-null.



makeAttribute
P makeAttribute(N nc, P p, L loc, A anno) throws BuildException(Code)



makeChoice
P makeChoice(List<P> patterns, L loc, A anno) throws BuildException(Code)



makeCommentList
CL makeCommentList()(Code)



makeDataPatternBuilder
DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, L loc) throws BuildException(Code)



makeElement
P makeElement(N nc, P p, L loc, A anno) throws BuildException(Code)



makeElementAnnotationBuilder
ElementAnnotationBuilder<P, E, L, A, CL> makeElementAnnotationBuilder(String ns, String localName, String prefix, L loc, CL comments, Context context)(Code)



makeEmpty
P makeEmpty(L loc, A anno)(Code)



makeErrorPattern
P makeErrorPattern()(Code)



makeExternalRef
P makeExternalRef(Parseable current, String uri, String ns, Scope<P, E, L, A, CL> scope, L loc, A anno) throws BuildException, IllegalSchemaException(Code)

Parameters:
  current - Current grammar that we are parsing. This is what containsexternalRef.
Parameters:
  scope - The parent scope. null if there's no parent scope.See SchemaBuilder.makeGrammar(Scope) for more details aboutwhen this parameter can be null.



makeGrammar
Grammar<P, E, L, A, CL> makeGrammar(Scope<P, E, L, A, CL> parent)(Code)

Parameters:
  parent - The parent scope. null if there's no parent scope.For example, if the complete document looks like the following:
<grammar><start><element name="root"><empty/></element></start></grammar>
Then when the outer-most Grammar is created, it willreceive the null parent.



makeGroup
P makeGroup(List<P> patterns, L loc, A anno) throws BuildException(Code)



makeInterleave
P makeInterleave(List<P> patterns, L loc, A anno) throws BuildException(Code)



makeList
P makeList(P p, L loc, A anno) throws BuildException(Code)



makeLocation
L makeLocation(String systemId, int lineNumber, int columnNumber)(Code)



makeMixed
P makeMixed(P p, L loc, A anno) throws BuildException(Code)



makeNotAllowed
P makeNotAllowed(L loc, A anno)(Code)



makeOneOrMore
P makeOneOrMore(P p, L loc, A anno) throws BuildException(Code)



makeOptional
P makeOptional(P p, L loc, A anno) throws BuildException(Code)



makeText
P makeText(L loc, A anno)(Code)



makeValue
P makeValue(String datatypeLibrary, String type, String value, Context c, String ns, L loc, A anno) throws BuildException(Code)



makeZeroOrMore
P makeZeroOrMore(P p, L loc, A anno) throws BuildException(Code)



usesComments
boolean usesComments()(Code)
If this SchemaBuilder is interested in actually parsing comments, this method returns true.

Returning false allows the schema parser to speed up the processing by skiping comment-related handlings.




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