Java Doc for IUnmarshallingContext.java in  » XML » jibx-1.1.5 » org » jibx » 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 » XML » jibx 1.1.5 » org.jibx.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jibx.runtime.IUnmarshallingContext

All known Subclasses:   org.jibx.runtime.impl.UnmarshallingContext,
IUnmarshallingContext
public interface IUnmarshallingContext (Code)
User interface for deserializer from XML. This provides methods used to set up and control the marshalling process, as well as access to the unmarshalling object stack while unmarshalling.
author:
   Dennis M. Sosnoski




Method Summary
public  StringgetDocumentName()
     Return the supplied document name.
public  intgetStackDepth()
     Get current unmarshalling object stack depth.
public  ObjectgetStackObject(int depth)
     Get object from unmarshalling stack.
public  ObjectgetStackTop()
     Get top object on unmarshalling stack.
public  IUnmarshallergetUnmarshaller(int index)
     Find the unmarshaller for a particular class index in the current context.
public  ObjectgetUserContext()
     Get the user context object.
public  booleanisAt(String ns, String name)
     Check if next tag is start of element.
public  booleanisEnd()
     Check if next tag is an end tag.
public  booleanisStart()
     Check if next tag is a start tag.
public  voidpopObject()
     Pop unmarshalled object from stack.
public  voidpushObject(Object obj)
     Push created object to unmarshalling stack.
 voidreset()
     Reset unmarshalling information.
 voidsetDocument(InputStream ins, String enc)
     Set document to be parsed from stream.
 voidsetDocument(Reader rdr)
     Set document to be parsed from reader.
 voidsetDocument(InputStream ins, String name, String enc)
     Set named document to be parsed from stream.
 voidsetDocument(Reader rdr, String name)
     Set named document to be parsed from reader.
public  voidsetUserContext(Object obj)
     Set a user context object.
 ObjectunmarshalDocument(InputStream ins, String enc)
     Unmarshal document from stream to object.
 ObjectunmarshalDocument(Reader rdr)
     Unmarshal document from reader to object.
 ObjectunmarshalDocument(InputStream ins, String name, String enc)
     Unmarshal named document from stream to object.
 ObjectunmarshalDocument(Reader rdr, String name)
     Unmarshal named document from reader to object.
 ObjectunmarshalElement()
     Unmarshal the current element.



Method Detail
getDocumentName
public String getDocumentName()(Code)
Return the supplied document name. supplied document name (null if none)



getStackDepth
public int getStackDepth()(Code)
Get current unmarshalling object stack depth. This allows tracking nested calls to unmarshal one object while in the process of unmarshalling another object. The bottom item on the stack is always the root object being unmarshalled. number of objects in unmarshalling stack



getStackObject
public Object getStackObject(int depth)(Code)
Get object from unmarshalling stack. This stack allows tracking nested calls to unmarshal one object while in the process of unmarshalling another object. The bottom item on the stack is always the root object being unmarshalled.
Parameters:
  depth - object depth in stack to be retrieved (must be in the rangeof zero to the current depth minus one). object from unmarshalling stack



getStackTop
public Object getStackTop()(Code)
Get top object on unmarshalling stack. This is safe to call even when no objects are on the stack. object from unmarshalling stack, or null if none



getUnmarshaller
public IUnmarshaller getUnmarshaller(int index) throws JiBXException(Code)
Find the unmarshaller for a particular class index in the current context.
Parameters:
  index - class index for unmarshalling definition unmarshalling handler for class
throws:
  JiBXException - if unable to create unmarshaller



getUserContext
public Object getUserContext()(Code)
Get the user context object. user context object, or null if no context objectset
See Also:   IUnmarshallingContext.setUserContext(Object)



isAt
public boolean isAt(String ns, String name) throws JiBXException(Code)
Check if next tag is start of element. If not currently positioned at a start or end tag this first advances the parse to the next start or end tag.
Parameters:
  ns - namespace URI for expected element (may be nullor the empty string for the empty namespace)
Parameters:
  name - element name expected true if at start of element with supplied name,false if not
throws:
  JiBXException - on any error (possibly wrapping other exception)



isEnd
public boolean isEnd() throws JiBXException(Code)
Check if next tag is an end tag. If not currently positioned at a start or end tag this first advances the parse to the next start or end tag. true if at end of element, false ifat start
throws:
  JiBXException - on any error (possibly wrapping other exception)



isStart
public boolean isStart() throws JiBXException(Code)
Check if next tag is a start tag. If not currently positioned at a start or end tag this first advances the parse to the next start or end tag. true if at start of element, false ifat end
throws:
  JiBXException - on any error (possibly wrapping other exception)



popObject
public void popObject() throws JiBXException(Code)
Pop unmarshalled object from stack.
throws:
  JiBXException - if stack empty



pushObject
public void pushObject(Object obj)(Code)
Push created object to unmarshalling stack. This must be called before beginning the unmarshalling of the object. It is only called for objects with structure, not for those converted directly to and from text.
Parameters:
  obj - object being unmarshalled



reset
void reset()(Code)
Reset unmarshalling information. This releases all references to unmarshalled objects and prepares the context for potential reuse. It is automatically called when input is set.



setDocument
void setDocument(InputStream ins, String enc) throws JiBXException(Code)
Set document to be parsed from stream.
Parameters:
  ins - stream supplying document data
Parameters:
  enc - document input encoding, or null if to bedetermined by parser
throws:
  JiBXException - if error creating parser



setDocument
void setDocument(Reader rdr) throws JiBXException(Code)
Set document to be parsed from reader.
Parameters:
  rdr - reader supplying document data
throws:
  JiBXException - if error creating parser



setDocument
void setDocument(InputStream ins, String name, String enc) throws JiBXException(Code)
Set named document to be parsed from stream.
Parameters:
  ins - stream supplying document data
Parameters:
  name - document name
Parameters:
  enc - document input encoding, or null if to bedetermined by parser
throws:
  JiBXException - if error creating parser



setDocument
void setDocument(Reader rdr, String name) throws JiBXException(Code)
Set named document to be parsed from reader.
Parameters:
  rdr - reader supplying document data
Parameters:
  name - document name
throws:
  JiBXException - if error creating parser



setUserContext
public void setUserContext(Object obj)(Code)
Set a user context object. This context object is not used directly by JiBX, but can be accessed by all types of user extension methods. The context object is automatically cleared by the IUnmarshallingContext.reset() method, so to make use of this you need to first call the appropriate version of the setDocument() method, then this method, and finally the IUnmarshallingContext.unmarshalElement method.
Parameters:
  obj - user context object, or null if clearing existingcontext object
See Also:   IUnmarshallingContext.getUserContext()



unmarshalDocument
Object unmarshalDocument(InputStream ins, String enc) throws JiBXException(Code)
Unmarshal document from stream to object. The effect of this is the same as if IUnmarshallingContext.setDocument were called, followed by IUnmarshallingContext.unmarshalElement
Parameters:
  ins - stream supplying document data
Parameters:
  enc - document input encoding, or null if to bedetermined by parser unmarshalled object
throws:
  JiBXException - if error creating parser



unmarshalDocument
Object unmarshalDocument(Reader rdr) throws JiBXException(Code)
Unmarshal document from reader to object. The effect of this is the same as if IUnmarshallingContext.setDocument were called, followed by IUnmarshallingContext.unmarshalElement
Parameters:
  rdr - reader supplying document data unmarshalled object
throws:
  JiBXException - if error creating parser



unmarshalDocument
Object unmarshalDocument(InputStream ins, String name, String enc) throws JiBXException(Code)
Unmarshal named document from stream to object. The effect of this is the same as if IUnmarshallingContext.setDocument were called, followed by IUnmarshallingContext.unmarshalElement
Parameters:
  ins - stream supplying document data
Parameters:
  name - document name
Parameters:
  enc - document input encoding, or null if to bedetermined by parser unmarshalled object
throws:
  JiBXException - if error creating parser



unmarshalDocument
Object unmarshalDocument(Reader rdr, String name) throws JiBXException(Code)
Unmarshal named document from reader to object. The effect of this is the same as if IUnmarshallingContext.setDocument were called, followed by IUnmarshallingContext.unmarshalElement
Parameters:
  rdr - reader supplying document data
Parameters:
  name - document name unmarshalled object
throws:
  JiBXException - if error creating parser



unmarshalElement
Object unmarshalElement() throws JiBXException(Code)
Unmarshal the current element. If not currently positioned at a start or end tag this first advances the parse to the next start or end tag. There must be an unmarshalling defined for the current element, and this unmarshalling is used to build an object from that element. unmarshalled object from element
throws:
  JiBXException - on any error (possibly wrapping other exception)



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