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


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

All known Subclasses:   com.sun.xml.xsom.impl.parser.NGCCRuntimeEx,
NGCCRuntime
public class NGCCRuntime implements ContentHandler,NGCCEventSource(Code)
Runtime Engine for RELAXNGCC execution. This class has the following functionalities:
  1. Managing a stack of NGCCHandler objects and switching between them appropriately.
  2. Keep track of all Attributes.
  3. manage mapping between namespace URIs and prefixes.
  4. TODO: provide support for interleaving.
    version:
       $Id: NGCCRuntime.java,v 1.15 2002/09/29 02:55:48 okajima Exp $
    author:
       Kohsuke Kawaguchi (kk@kohsuke.org)


Field Summary
final static  StringIMPOSSIBLE
     Impossible token.

Constructor Summary
public  NGCCRuntime()
    

Method Summary
public  voidcharacters(char[] ch, int start, int length)
    
public  voidconsumeAttribute(int index)
    
public  voidendDocument()
    
public  voidendElement(String uri, String localname, String qname)
    
public  voidendPrefixMapping(String prefix)
    
public  intgetAttributeIndex(String uri, String localname)
    
public  AttributesgetCurrentAttributes()
     Attributes that belong to the current element.

It's generally not recommended for applications to use this method.

public  LocatorgetLocator()
     Gets the source location of the current event.

One can call this method from RelaxNGCC handlers to access the line number information.

public  voidignorableWhitespace(char[] ch, int start, int length)
    
public  voidonEnterElementConsumed(String uri, String localName, String qname, Attributes atts)
     Called by the generated handler code when an enter element event is consumed.
public  voidonLeaveElementConsumed(String uri, String localName, String qname)
    
public  voidprocessList(String str)
    
public  voidprocessingInstruction(String target, String data)
    
public  voidredirectSubtree(ContentHandler child, String uri, String local, String qname)
     This method can be called only from the enterElement handler. The sub-tree rooted at the new element will be redirected to the specified ContentHandler.

Currently active NGCCHandler will only receive the leaveElement event of the newly started element. uri,local,qnameParameters passed to the enter element event.

public  intreplace(NGCCEventReceiver o, NGCCEventReceiver n)
    
public  voidreset()
     Cleans up all the data structure so that the object can be reused later.
public  StringresolveNamespacePrefix(String prefix)
    
public  voidsendEnterAttribute(int threadId, String uri, String local, String qname)
    
public  voidsendEnterElement(int threadId, String uri, String local, String qname, Attributes atts)
    
public  voidsendLeaveAttribute(int threadId, String uri, String local, String qname)
    
public  voidsendLeaveElement(int threadId, String uri, String local, String qname)
    
public  voidsendText(int threadId, String value)
    
public  voidsetDocumentLocator(Locator _loc)
    
public  voidsetRootHandler(NGCCHandler rootHandler)
     Sets the root handler, which will be used to parse the root element.

This method can be called right after the object is created or the reset method is called.

public  voidskippedEntity(String name)
    
public  voidstartDocument()
    
public  voidstartElement(String uri, String localname, String qname, Attributes atts)
    
public  voidstartPrefixMapping(String prefix, String uri)
    
public  voidtrace(String s)
    
public  voidtraceln(String s)
    
protected  voidunexpectedX(String token)
    

Field Detail
IMPOSSIBLE
final static String IMPOSSIBLE(Code)
Impossible token. This value can never be a valid XML name.




Constructor Detail
NGCCRuntime
public NGCCRuntime()(Code)




Method Detail
characters
public void characters(char[] ch, int start, int length) throws SAXException(Code)



consumeAttribute
public void consumeAttribute(int index) throws SAXException(Code)



endDocument
public void endDocument() throws SAXException(Code)



endElement
public void endElement(String uri, String localname, String qname) throws SAXException(Code)



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



getAttributeIndex
public int getAttributeIndex(String uri, String localname)(Code)



getCurrentAttributes
public Attributes getCurrentAttributes()(Code)
Attributes that belong to the current element.

It's generally not recommended for applications to use this method. RelaxNGCC internally removes processed attributes, so this doesn't correctly reflect all the attributes an element carries.




getLocator
public Locator getLocator()(Code)
Gets the source location of the current event.

One can call this method from RelaxNGCC handlers to access the line number information. Note that to




ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code)



onEnterElementConsumed
public void onEnterElementConsumed(String uri, String localName, String qname, Attributes atts) throws SAXException(Code)
Called by the generated handler code when an enter element event is consumed.

Pushes a new attribute set.

Note that attributes are NOT pushed at the startElement method, because the processing of the enterElement event can trigger other attribute events and etc.

This method will be called from one of handlers when it truely consumes the enterElement event.




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



processList
public void processList(String str) throws SAXException(Code)



processingInstruction
public void processingInstruction(String target, String data) throws SAXException(Code)



redirectSubtree
public void redirectSubtree(ContentHandler child, String uri, String local, String qname) throws SAXException(Code)
This method can be called only from the enterElement handler. The sub-tree rooted at the new element will be redirected to the specified ContentHandler.

Currently active NGCCHandler will only receive the leaveElement event of the newly started element. uri,local,qnameParameters passed to the enter element event. Used tosimulate the startElement event for the new ContentHandler.




replace
public int replace(NGCCEventReceiver o, NGCCEventReceiver n)(Code)



reset
public void reset()(Code)
Cleans up all the data structure so that the object can be reused later. Normally, applications do not need to call this method directly, as the runtime resets itself after the endDocument method.



resolveNamespacePrefix
public String resolveNamespacePrefix(String prefix)(Code)



sendEnterAttribute
public void sendEnterAttribute(int threadId, String uri, String local, String qname) throws SAXException(Code)



sendEnterElement
public void sendEnterElement(int threadId, String uri, String local, String qname, Attributes atts) throws SAXException(Code)



sendLeaveAttribute
public void sendLeaveAttribute(int threadId, String uri, String local, String qname) throws SAXException(Code)



sendLeaveElement
public void sendLeaveElement(int threadId, String uri, String local, String qname) throws SAXException(Code)



sendText
public void sendText(int threadId, String value) throws SAXException(Code)



setDocumentLocator
public void setDocumentLocator(Locator _loc)(Code)



setRootHandler
public void setRootHandler(NGCCHandler rootHandler)(Code)
Sets the root handler, which will be used to parse the root element.

This method can be called right after the object is created or the reset method is called. You can't replace the root handler while parsing is in progress.

Usually a generated class that corresponds to the <start> pattern will be used as the root handler, but any NGCCHandler can be a root handler.
exception:
  IllegalStateException - If this method is called but it doesn't satisfy thepre-condition stated above.




skippedEntity
public void skippedEntity(String name) throws SAXException(Code)



startDocument
public void startDocument()(Code)



startElement
public void startElement(String uri, String localname, String qname, Attributes atts) throws SAXException(Code)



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



trace
public void trace(String s)(Code)



traceln
public void traceln(String s)(Code)



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



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)

ww_w_.j___a__v___a2s.__c_om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.