Java Doc for BlockImpl.java in  » Web-Services-AXIS2 » jax-ws » org » apache » axis2 » jaxws » message » impl » 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 » Web Services AXIS2 » jax ws » org.apache.axis2.jaxws.message.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.jaxws.message.impl.BlockImpl

All known Subclasses:   org.apache.axis2.jaxws.message.databinding.impl.XMLStringBlockImpl,  org.apache.axis2.jaxws.message.databinding.impl.SourceBlockImpl,  org.apache.axis2.jaxws.message.databinding.impl.OMBlockImpl,  org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl,  org.apache.axis2.jaxws.message.databinding.impl.SOAPEnvelopeBlockImpl,
BlockImpl
abstract public class BlockImpl implements Block(Code)
BlockImpl Abstract Base class for various Block Implementations.

The base class takes care of controlling the transformations between BusinessObject, XMLStreamReader and SOAPElement A derived class must minimally define the following: _getBOFromReader _getReaderFromBO _outputFromBO

In addtion, the derived class may want to override the following: _getBOFromBO ...if the BusinessObject is consumed when read (i.e. it is an InputSource)

The derived classes don't have direct access to the instance data. This ensures that BlockImpl controls the transformations.



Field Summary
protected  ObjectbusContext
    
protected  ObjectbusObject
    
protected  booleanconsumed
    
protected  BlockFactoryfactory
    
protected  OMElementomElement
    
protected  Messageparent
    
protected  QNameqName
    

Constructor Summary
protected  BlockImpl(Object busObject, Object busContext, QName qName, BlockFactory factory)
    
protected  BlockImpl(OMElement omElement, Object busContext, QName qName, BlockFactory factory)
    

Method Summary
protected  Object_getBOFromBO(Object busObject, Object busContext, boolean consume)
     The default implementation is to return the business object.
abstract protected  Object_getBOFromReader(XMLStreamReader reader, Object busContext)
    
abstract protected  XMLStreamReader_getReaderFromBO(Object busObj, Object busContext)
    
abstract protected  void_outputFromBO(Object busObject, Object busContext, XMLStreamWriter writer)
     Output BusinessObject contents to a Writer.
protected  void_outputFromReader(XMLStreamReader reader, XMLStreamWriter writer)
     Output Reader contents to a Writer.
protected  XMLStreamReader_postPivot_getXMLStreamReader()
     Called if we have passed the pivot point but someone wants to output the block.
protected  void_postPivot_outputTo(XMLStreamWriter writer)
     Called if we have passed the pivot point but someone wants to output the block.
public  BlockFactorygetBlockFactory()
    
public  ObjectgetBusinessContext()
    
public  ObjectgetBusinessObject(boolean consume)
    
public  OMElementgetOMElement()
    
public  MessagegetParent()
    
public  QNamegetQName()
    
public  XMLStreamReadergetReader()
    
public  XMLStreamReadergetXMLStreamReader(boolean consume)
    
protected  booleanisBusinessObject()
     true if the representation of the block is currently a business object.
public  booleanisConsumed()
    
public  booleanisQNameAvailable()
    
public  voidoutputTo(XMLStreamWriter writer, boolean consume)
    
public  voidserialize(OutputStream output, OMOutputFormat format)
    
public  voidserialize(Writer writerTarget, OMOutputFormat format)
    
public  voidserialize(XMLStreamWriter writer)
    
public  voidsetConsumed(boolean consume)
    
public  voidsetParent(Message p)
    
protected  voidsetQName(QName qName)
    
public  StringtraceString(String indent)
    

Field Detail
busContext
protected Object busContext(Code)



busObject
protected Object busObject(Code)



consumed
protected boolean consumed(Code)



factory
protected BlockFactory factory(Code)



omElement
protected OMElement omElement(Code)



parent
protected Message parent(Code)



qName
protected QName qName(Code)




Constructor Detail
BlockImpl
protected BlockImpl(Object busObject, Object busContext, QName qName, BlockFactory factory)(Code)
A Block has the following components
Parameters:
  busObject -
Parameters:
  busContext - or null
Parameters:
  qName - or null if unknown
Parameters:
  factory - that creates the Block



BlockImpl
protected BlockImpl(OMElement omElement, Object busContext, QName qName, BlockFactory factory)(Code)
A Block has the following components
Parameters:
  reader -
Parameters:
  busContext - or null
Parameters:
  qName - or null if unknown
Parameters:
  factory - that creates the Block




Method Detail
_getBOFromBO
protected Object _getBOFromBO(Object busObject, Object busContext, boolean consume)(Code)
The default implementation is to return the business object. A derived block may want to override this class if the business object is consumed when read (thus the dervived block may want to make a buffered copy) (An example use case for overriding this method is the businessObject is an InputSource)
Parameters:
  busObject -
Parameters:
  busContext -
Parameters:
  consume -



_getBOFromReader
abstract protected Object _getBOFromReader(XMLStreamReader reader, Object busContext) throws XMLStreamException, WebServiceException(Code)
The derived class must provide an implementation that builds the business object from the reader
Parameters:
  reader - XMLStreamReader, which is consumed
Parameters:
  busContext -



_getReaderFromBO
abstract protected XMLStreamReader _getReaderFromBO(Object busObj, Object busContext) throws XMLStreamException, WebServiceException(Code)
Get an XMLStreamReader for the BusinessObject The derived Block must implement this method
Parameters:
  busObj -
Parameters:
  busContext -



_outputFromBO
abstract protected void _outputFromBO(Object busObject, Object busContext, XMLStreamWriter writer) throws XMLStreamException, WebServiceException(Code)
Output BusinessObject contents to a Writer. Derived classes must provide this implementation
Parameters:
  busObject -
Parameters:
  busContext -
Parameters:
  writer -
throws:
  XMLStreamException -
throws:
  WebServiceException -



_outputFromReader
protected void _outputFromReader(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException(Code)
Output Reader contents to a Writer. The default implementation is probably sufficient for most derived classes.
Parameters:
  reader -
Parameters:
  writer -
throws:
  XMLStreamException -



_postPivot_getXMLStreamReader
protected XMLStreamReader _postPivot_getXMLStreamReader() throws XMLStreamException, WebServiceException(Code)
Called if we have passed the pivot point but someone wants to output the block. The actual block implementation may choose to override this setting.



_postPivot_outputTo
protected void _postPivot_outputTo(XMLStreamWriter writer) throws XMLStreamException, WebServiceException(Code)
Called if we have passed the pivot point but someone wants to output the block. The actual block implementation may choose to override this setting



getBlockFactory
public BlockFactory getBlockFactory()(Code)



getBusinessContext
public Object getBusinessContext()(Code)



getBusinessObject
public Object getBusinessObject(boolean consume) throws XMLStreamException, WebServiceException(Code)



getOMElement
public OMElement getOMElement() throws XMLStreamException, WebServiceException(Code)



getParent
public Message getParent()(Code)



getQName
public QName getQName() throws WebServiceException(Code)



getReader
public XMLStreamReader getReader() throws XMLStreamException(Code)



getXMLStreamReader
public XMLStreamReader getXMLStreamReader(boolean consume) throws XMLStreamException, WebServiceException(Code)



isBusinessObject
protected boolean isBusinessObject()(Code)
true if the representation of the block is currently a business object. Derived classesmay use this information to get information in a performant way.



isConsumed
public boolean isConsumed()(Code)



isQNameAvailable
public boolean isQNameAvailable()(Code)



outputTo
public void outputTo(XMLStreamWriter writer, boolean consume) throws XMLStreamException, WebServiceException(Code)



serialize
public void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException(Code)



serialize
public void serialize(Writer writerTarget, OMOutputFormat format) throws XMLStreamException(Code)



serialize
public void serialize(XMLStreamWriter writer) throws XMLStreamException(Code)



setConsumed
public void setConsumed(boolean consume)(Code)
Once consumed, all instance data objects are nullified to prevent subsequent access
Parameters:
  consume -



setParent
public void setParent(Message p)(Code)



setQName
protected void setQName(QName qName)(Code)
This method is intended for derived objects to set the qName
Parameters:
  qName -



traceString
public String traceString(String indent)(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)

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