Java Doc for NGCCRuntimeEx.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » xml » xsom » impl » parser » 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 » com.sun.xml.xsom.impl.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.xsom.impl.parser.state.NGCCRuntime
      com.sun.xml.xsom.impl.parser.NGCCRuntimeEx

NGCCRuntimeEx
public class NGCCRuntimeEx extends NGCCRuntime implements PatcherManager(Code)
NGCCRuntime extended with various utility methods for parsing XML Schema.
author:
   Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)


Field Summary
final public static  StringXMLSchemaNSURI
    
public  booleanattributeFormDefault
     The @attributeFormDefault value of the current schema.
public  intblockDefault
     The @blockDefault value of the current schema.
public  booleanchameleonMode
     True if the current schema is in a chameleon mode. This changes the way QNames are interpreted. Life is very miserable with XML Schema, as you see.
public  SchemaImplcurrentSchema
     The schema currently being parsed.
public  SchemaDocumentImpldocument
     Points to the SchemaDocumentImpl that represents the schema document being parsed.
public  booleanelementFormDefault
     The @elementFormDefault value of the current schema.
public  intfinalDefault
     The @finalDefault value of the current schema.
final public  ParserContextparser
     coordinator.

Constructor Summary
 NGCCRuntimeEx(ParserContext _parser)
    

Method Summary
public  voidaddErrorChecker(Patch patcher)
    
public  voidaddPatcher(Patch patcher)
    
public  voidcheckDoubleDefError(XSDeclaration c)
    
public  LocatorcopyLocator()
     Creates a copy of the current locator object.
public  AnnotationParsercreateAnnotationParser()
     Creates a new instance of annotation parser.
public  ValidationContextcreateValidationContext()
     Returns an immutable snapshot of the current context.
public  XmlStringcreateXmlString(String value)
    
public  voidendPrefixMapping(String prefix)
    
public  StringgetAnnotationContextElementName()
     Gets the element name that contains the annotation element.
public  ErrorHandlergetErrorHandler()
    
public  booleanhasAlreadyBeenRead()
     Called when a new document is being parsed and checks if the document has already been parsed before.

Used to avoid recursive inclusion.

public static  booleanignorableDuplicateComponent(XSDeclaration c)
    
public  voidimportSchema(String ns, String schemaLocation)
     Imports the specified schema.
public  voidincludeSchema(String schemaLocation)
     Includes the specified schema.
public  voidonEnterElementConsumed(String uri, String localName, String qname, Attributes atts)
    
public  voidonLeaveElementConsumed(String uri, String localName, String qname)
    
public  booleanparseBoolean(String v)
    
public  voidparseEntity(InputSource source, boolean includeMode, String expectedNamespace, Locator importLocation)
     Parses the specified entity.
public  ForeignAttributesImplparseForeignAttributes(ForeignAttributesImpl next)
    
public  UNameparseUName(String qname)
     Parses UName under the given context.
public  voidreportError(String msg, Locator loc)
    
public  voidreportError(String msg)
    
public  voidstartPrefixMapping(String prefix, String uri)
    
protected  voidunexpectedX(String token)
    

Field Detail
XMLSchemaNSURI
final public static String XMLSchemaNSURI(Code)



attributeFormDefault
public boolean attributeFormDefault(Code)
The @attributeFormDefault value of the current schema. True if local attributes are qualified by default.



blockDefault
public int blockDefault(Code)
The @blockDefault value of the current schema.



chameleonMode
public boolean chameleonMode(Code)
True if the current schema is in a chameleon mode. This changes the way QNames are interpreted. Life is very miserable with XML Schema, as you see.



currentSchema
public SchemaImpl currentSchema(Code)
The schema currently being parsed.



document
public SchemaDocumentImpl document(Code)
Points to the SchemaDocumentImpl that represents the schema document being parsed.



elementFormDefault
public boolean elementFormDefault(Code)
The @elementFormDefault value of the current schema. True if local elements are qualified by default.



finalDefault
public int finalDefault(Code)
The @finalDefault value of the current schema.



parser
final public ParserContext parser(Code)
coordinator.




Constructor Detail
NGCCRuntimeEx
NGCCRuntimeEx(ParserContext _parser)(Code)




Method Detail
addErrorChecker
public void addErrorChecker(Patch patcher)(Code)



addPatcher
public void addPatcher(Patch patcher)(Code)



checkDoubleDefError
public void checkDoubleDefError(XSDeclaration c) throws SAXException(Code)



copyLocator
public Locator copyLocator()(Code)
Creates a copy of the current locator object.



createAnnotationParser
public AnnotationParser createAnnotationParser()(Code)
Creates a new instance of annotation parser.



createValidationContext
public ValidationContext createValidationContext()(Code)
Returns an immutable snapshot of the current context.



createXmlString
public XmlString createXmlString(String value)(Code)



endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException(Code)



getAnnotationContextElementName
public String getAnnotationContextElementName()(Code)
Gets the element name that contains the annotation element. This method works correctly only when called by the annotation handler.



getErrorHandler
public ErrorHandler getErrorHandler()(Code)



hasAlreadyBeenRead
public boolean hasAlreadyBeenRead()(Code)
Called when a new document is being parsed and checks if the document has already been parsed before.

Used to avoid recursive inclusion. Note that the same document will be parsed multiple times if they are for different target namespaces.

Document Graph Model

The challenge we are facing here is that you have a graph of documents that reference each other. Each document has an unique URI to identify themselves, and references are done by using those. The graph may contain cycles.

Our goal here is to parse all the documents in the graph, without parsing the same document twice. This method implements this check.

One complication is the chameleon schema; a document can be parsed multiple times if they are under different target namespaces.

Also, note that when you resolve relative URIs in the @schemaLocation, their base URI is *NOT* the URI of the document. true if the document has already been processed and thusneeds to be skipped.




ignorableDuplicateComponent
public static boolean ignorableDuplicateComponent(XSDeclaration c)(Code)



importSchema
public void importSchema(String ns, String schemaLocation) throws SAXException(Code)
Imports the specified schema.



includeSchema
public void includeSchema(String schemaLocation) throws SAXException(Code)
Includes the specified schema.



onEnterElementConsumed
public void onEnterElementConsumed(String uri, String localName, String qname, Attributes atts) throws SAXException(Code)



onLeaveElementConsumed
public void onLeaveElementConsumed(String uri, String localName, String qname) throws SAXException(Code)



parseBoolean
public boolean parseBoolean(String v)(Code)



parseEntity
public void parseEntity(InputSource source, boolean includeMode, String expectedNamespace, Locator importLocation) throws SAXException(Code)
Parses the specified entity.
Parameters:
  importLocation - The source location of the import/include statement.Used for reporting errors.



parseForeignAttributes
public ForeignAttributesImpl parseForeignAttributes(ForeignAttributesImpl next)(Code)



parseUName
public UName parseUName(String qname) throws SAXException(Code)
Parses UName under the given context.



reportError
public void reportError(String msg, Locator loc) throws SAXException(Code)



reportError
public void reportError(String msg) throws SAXException(Code)



startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)



unexpectedX
protected void unexpectedX(String token) throws SAXException(Code)



Methods inherited from com.sun.xml.xsom.impl.parser.state.NGCCRuntime
public void characters(char[] ch, int start, int length) throws SAXException(Code)(Java Doc)
public void consumeAttribute(int index) throws SAXException(Code)(Java Doc)
public void endDocument() throws SAXException(Code)(Java Doc)
public void endElement(String uri, String localname, String qname) throws SAXException(Code)(Java Doc)
public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc)
public int getAttributeIndex(String uri, String localname)(Code)(Java Doc)
public Attributes getCurrentAttributes()(Code)(Java Doc)
public Locator getLocator()(Code)(Java Doc)
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code)(Java Doc)
public void onEnterElementConsumed(String uri, String localName, String qname, Attributes atts) throws SAXException(Code)(Java Doc)
public void onLeaveElementConsumed(String uri, String localName, String qname) throws SAXException(Code)(Java Doc)
public void processList(String str) throws SAXException(Code)(Java Doc)
public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc)
public void redirectSubtree(ContentHandler child, String uri, String local, String qname) throws SAXException(Code)(Java Doc)
public int replace(NGCCEventReceiver o, NGCCEventReceiver n)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public String resolveNamespacePrefix(String prefix)(Code)(Java Doc)
public void sendEnterAttribute(int threadId, String uri, String local, String qname) throws SAXException(Code)(Java Doc)
public void sendEnterElement(int threadId, String uri, String local, String qname, Attributes atts) throws SAXException(Code)(Java Doc)
public void sendLeaveAttribute(int threadId, String uri, String local, String qname) throws SAXException(Code)(Java Doc)
public void sendLeaveElement(int threadId, String uri, String local, String qname) throws SAXException(Code)(Java Doc)
public void sendText(int threadId, String value) throws SAXException(Code)(Java Doc)
public void setDocumentLocator(Locator _loc)(Code)(Java Doc)
public void setRootHandler(NGCCHandler rootHandler)(Code)(Java Doc)
public void skippedEntity(String name) throws SAXException(Code)(Java Doc)
public void startDocument()(Code)(Java Doc)
public void startElement(String uri, String localname, String qname, Attributes atts) throws SAXException(Code)(Java Doc)
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
public void trace(String s)(Code)(Java Doc)
public void traceln(String s)(Code)(Java Doc)
protected void unexpectedX(String token) throws SAXException(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.