Java Doc for UnmarshallingContext.java in  » Portal » stringbeans-3.5 » com » nabhinc » portal » config » impl » runtime » 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 » Portal » stringbeans 3.5 » com.nabhinc.portal.config.impl.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.nabhinc.portal.config.impl.runtime.UnmarshallingContext

All known Subclasses:   com.nabhinc.portal.config.impl.runtime.SAXUnmarshallerHandlerImpl,
UnmarshallingContext
public interface UnmarshallingContext extends NamespaceContext(Code)
Methods exposed by the unmarshalling coordinator object to the generated code. This interface will be implemented by the coordinator, which converts whatever events (e.g., SAX) into unmarshalling events.

Errors detected by the AbstractUnmarshallingEventHandlerImpl-derived classes should be either thrown as UnrepotedException or reported through the handleEvent method of this interface.
author:
   Kohsuke KAWAGUCHI





Method Summary
 voidaddPatcher(Runnable job)
     Adds a job that will be executed at the last of the unmarshalling.
 StringaddToIdTable(String id)
     Adds the object which is currently being unmarshalled to the ID table.
 voidconsumeAttribute(int idx)
     Fires an attribute event for the specified attribute, and marks the attribute as "used".
 StringeatAttribute(int idx)
     Marks the attribute as "used" and return the value of the attribute.
 String[]getAllDeclaredPrefixes()
     Returns a list of all in-scope prefixes.
 intgetAttribute(String uri, String name)
     Gets the index of the attribute with the specified name.
 StringgetBaseUri()
    
 UnmarshallingEventHandlergetCurrentHandler()
     Gets the current handler.
 GrammarInfogetGrammarInfo()
     Obtains a reference to the current grammar info.
 LocatorgetLocator()
     Gets the current source location information.
 String[]getNewlyDeclaredPrefixes()
     Returns a list of prefixes newly declared on this element. This method has to be called after the UnmarshallingContext.pushAttributes method is called. A possible zero-length array of prefixes.
 ObjectgetObjectFromId(String id)
     Looks up the ID table and gets associated object.
 TracergetTracer()
     Gets a tracer object.
 AttributesgetUnconsumedAttributes()
     Gets all the unconsumed attributes.
 voidhandleEvent(ValidationEvent event, boolean canRecover)
     Reports an error to the user, and asks if s/he wants to recover.
 booleanisNotation(String notationName)
    
 booleanisUnparsedEntity(String entityName)
    
 voidpopAttributes()
     Discards the previously stored attribute set.
 voidpopContentHandler()
     Pops a content handler from the stack and registers it as the current content handler.
 voidpushAttributes(Attributes atts, boolean collectText)
     Stores a new attribute set. This method should be called by the generated code when it "eats" an enterElement event.
Parameters:
  collectText - false if the context doesn't need to fire text eventsfor texts inside this element.
 voidpushContentHandler(UnmarshallingEventHandler handler, int memento)
     Pushes the current content handler into the stack and registers the newly specified content handler so that it can receive SAX events.
 StringresolveNamespacePrefix(String prefix)
    



Method Detail
addPatcher
void addPatcher(Runnable job)(Code)
Adds a job that will be executed at the last of the unmarshalling. This method is used to support ID/IDREF feature, but it can be used for other purposes as well.
Parameters:
  job - The run method of this object is called.



addToIdTable
String addToIdTable(String id)(Code)
Adds the object which is currently being unmarshalled to the ID table. Returns the value passed as the parameter.This is a hack, but this makes it easier for IDtransducer to do its job.



consumeAttribute
void consumeAttribute(int idx) throws SAXException(Code)
Fires an attribute event for the specified attribute, and marks the attribute as "used".



eatAttribute
String eatAttribute(int idx) throws SAXException(Code)
Marks the attribute as "used" and return the value of the attribute.



getAllDeclaredPrefixes
String[] getAllDeclaredPrefixes()(Code)
Returns a list of all in-scope prefixes. A possible zero-length array of prefixes. The default prefixis represented by the empty string.



getAttribute
int getAttribute(String uri, String name)(Code)
Gets the index of the attribute with the specified name. This is usually faster when you only need to test with a simple name. -1 if not found.



getBaseUri
String getBaseUri()(Code)



getCurrentHandler
UnmarshallingEventHandler getCurrentHandler()(Code)
Gets the current handler.



getGrammarInfo
GrammarInfo getGrammarInfo()(Code)
Obtains a reference to the current grammar info.



getLocator
Locator getLocator()(Code)
Gets the current source location information.



getNewlyDeclaredPrefixes
String[] getNewlyDeclaredPrefixes()(Code)
Returns a list of prefixes newly declared on this element. This method has to be called after the UnmarshallingContext.pushAttributes method is called. A possible zero-length array of prefixes. The default prefixis represented by the empty string.



getObjectFromId
Object getObjectFromId(String id)(Code)
Looks up the ID table and gets associated object. If there is no object associated with the given id,this method returns null.



getTracer
Tracer getTracer()(Code)
Gets a tracer object. Tracer can be used to trace the unmarshalling behavior. Note that to debug the unmarshalling process, you have to configure XJC so that it will emit trace codes in the unmarshaller.



getUnconsumedAttributes
Attributes getUnconsumedAttributes()(Code)
Gets all the unconsumed attributes. If you need to find attributes based on more complex filter, you need to use this method.



handleEvent
void handleEvent(ValidationEvent event, boolean canRecover) throws SAXException(Code)
Reports an error to the user, and asks if s/he wants to recover. If the canRecover flag is false, regardless of the client instruction, an exception will be thrown. Only if the flag is true and the user wants to recover from an error, the method returns normally. The thrown exception will be catched by the unmarshaller.



isNotation
boolean isNotation(String notationName)(Code)



isUnparsedEntity
boolean isUnparsedEntity(String entityName)(Code)



popAttributes
void popAttributes()(Code)
Discards the previously stored attribute set. This method should be called by the generated code when it "eats" a leaveElement event.



popContentHandler
void popContentHandler() throws SAXException(Code)
Pops a content handler from the stack and registers it as the current content handler.

This method will also fire the leaveChild event with the associated memento.




pushAttributes
void pushAttributes(Attributes atts, boolean collectText)(Code)
Stores a new attribute set. This method should be called by the generated code when it "eats" an enterElement event.
Parameters:
  collectText - false if the context doesn't need to fire text eventsfor texts inside this element. True otherwise.



pushContentHandler
void pushContentHandler(UnmarshallingEventHandler handler, int memento)(Code)
Pushes the current content handler into the stack and registers the newly specified content handler so that it can receive SAX events.
Parameters:
  memento - When this newly specified handler will be removed from the stack,the leaveChild event will be fired to the parent handlerwith this memento.



resolveNamespacePrefix
String resolveNamespacePrefix(String prefix)(Code)



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