Java Doc for Jaxb2Marshaller.java in  » Web-Services » spring-ws-1.0.0 » org » springframework » oxm » jaxb » 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 » spring ws 1.0.0 » org.springframework.oxm.jaxb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.oxm.jaxb.AbstractJaxbMarshaller
      org.springframework.oxm.jaxb.Jaxb2Marshaller

Jaxb2Marshaller
public class Jaxb2Marshaller extends AbstractJaxbMarshaller implements MimeMarshaller,MimeUnmarshaller(Code)
Implementation of the Marshaller interface for JAXB 2.0.

The typical usage will be to set either the contextPath or the classesToBeBound property on this bean, possibly customize the marshaller and unmarshaller by setting properties, schemas, adapters, and listeners, and to refer to it.
author:
   Arjen Poutsma
See Also:   Jaxb2Marshaller.setContextPath(String)
See Also:   Jaxb2Marshaller.setClassesToBeBound(Class[])
See Also:   Jaxb2Marshaller.setJaxbContextProperties(java.util.Map)
See Also:   Jaxb2Marshaller.setMarshallerProperties(java.util.Map)
See Also:   Jaxb2Marshaller.setUnmarshallerProperties(java.util.Map)
See Also:   Jaxb2Marshaller.setSchema(org.springframework.core.io.Resource)
See Also:   Jaxb2Marshaller.setSchemas(org.springframework.core.io.Resource[])
See Also:   Jaxb2Marshaller.setMarshallerListener(javax.xml.bind.Marshaller.Listener)
See Also:   Jaxb2Marshaller.setUnmarshallerListener(javax.xml.bind.Unmarshaller.Listener)
See Also:   Jaxb2Marshaller.setAdapters(javax.xml.bind.annotation.adapters.XmlAdapter[])
since:
   1.0.0





Method Summary
protected  JAXBContextcreateJaxbContext()
    
protected  voidinitJaxbMarshaller(Marshaller marshaller)
    
protected  voidinitJaxbUnmarshaller(Unmarshaller unmarshaller)
    
public  voidmarshal(Object graph, Result result)
    
public  voidmarshal(Object graph, Result result, MimeContainer mimeContainer)
    
public  voidsetAdapters(XmlAdapter[] adapters)
    
public  voidsetClassesToBeBound(Class[] classesToBeBound)
     Sets the list of java classes to be recognized by a newly created JAXBContext.
public  voidsetJaxbContextProperties(Map<String, ?> jaxbContextProperties)
     Sets the JAXBContext properties.
public  voidsetMarshallerListener(Marshaller.Listener marshallerListener)
     Sets the Marshaller.Listener to be registered with the JAXB Marshaller.
public  voidsetMtomEnabled(boolean mtomEnabled)
     Indicates whether MTOM support should be enabled or not.
public  voidsetSchema(Resource schemaResource)
     Sets the schema resource to use for validation.
public  voidsetSchemaLanguage(String schemaLanguage)
     Sets the schema language.
public  voidsetSchemas(Resource[] schemaResources)
     Sets the schema resources to use for validation.
public  voidsetUnmarshallerListener(Unmarshaller.Listener unmarshallerListener)
     Sets the Unmarshaller.Listener to be registered with the JAXB Unmarshaller.
public  booleansupports(Class clazz)
    
public  Objectunmarshal(Source source)
    
public  Objectunmarshal(Source source, MimeContainer mimeContainer)
    



Method Detail
createJaxbContext
protected JAXBContext createJaxbContext() throws Exception(Code)



initJaxbMarshaller
protected void initJaxbMarshaller(Marshaller marshaller) throws JAXBException(Code)



initJaxbUnmarshaller
protected void initJaxbUnmarshaller(Unmarshaller unmarshaller) throws JAXBException(Code)



marshal
public void marshal(Object graph, Result result) throws XmlMappingException(Code)



marshal
public void marshal(Object graph, Result result, MimeContainer mimeContainer) throws XmlMappingException(Code)



setAdapters
public void setAdapters(XmlAdapter[] adapters)(Code)
Sets the XmlAdapters to be registered with the JAXB Marshaller and Unmarshaller



setClassesToBeBound
public void setClassesToBeBound(Class[] classesToBeBound)(Code)
Sets the list of java classes to be recognized by a newly created JAXBContext. Setting this property or contextPath is required.
See Also:   Jaxb2Marshaller.setContextPath(String)



setJaxbContextProperties
public void setJaxbContextProperties(Map<String, ?> jaxbContextProperties)(Code)
Sets the JAXBContext properties. These implementation-specific properties will be set on the JAXBContext.



setMarshallerListener
public void setMarshallerListener(Marshaller.Listener marshallerListener)(Code)
Sets the Marshaller.Listener to be registered with the JAXB Marshaller.



setMtomEnabled
public void setMtomEnabled(boolean mtomEnabled)(Code)
Indicates whether MTOM support should be enabled or not. Default is false, marshalling using XOP/MTOM is not enabled.



setSchema
public void setSchema(Resource schemaResource)(Code)
Sets the schema resource to use for validation.



setSchemaLanguage
public void setSchemaLanguage(String schemaLanguage)(Code)
Sets the schema language. Default is the W3C XML Schema: http://www.w3.org/2001/XMLSchema".
See Also:   XMLConstants.W3C_XML_SCHEMA_NS_URI
See Also:   XMLConstants.RELAXNG_NS_URI



setSchemas
public void setSchemas(Resource[] schemaResources)(Code)
Sets the schema resources to use for validation.



setUnmarshallerListener
public void setUnmarshallerListener(Unmarshaller.Listener unmarshallerListener)(Code)
Sets the Unmarshaller.Listener to be registered with the JAXB Unmarshaller.



supports
public boolean supports(Class clazz)(Code)



unmarshal
public Object unmarshal(Source source) throws XmlMappingException(Code)



unmarshal
public Object unmarshal(Source source, MimeContainer mimeContainer) throws XmlMappingException(Code)



Fields inherited from org.springframework.oxm.jaxb.AbstractJaxbMarshaller
final protected Log logger(Code)(Java Doc)

Methods inherited from org.springframework.oxm.jaxb.AbstractJaxbMarshaller
final public void afterPropertiesSet() throws Exception(Code)(Java Doc)
protected XmlMappingException convertJaxbException(JAXBException ex)(Code)(Java Doc)
abstract protected JAXBContext createJaxbContext() throws Exception(Code)(Java Doc)
protected Marshaller createMarshaller()(Code)(Java Doc)
protected Unmarshaller createUnmarshaller()(Code)(Java Doc)
protected String getContextPath()(Code)(Java Doc)
public JAXBContext getJaxbContext()(Code)(Java Doc)
protected void initJaxbMarshaller(Marshaller marshaller) throws JAXBException(Code)(Java Doc)
protected void initJaxbUnmarshaller(Unmarshaller unmarshaller) throws JAXBException(Code)(Java Doc)
public void setContextPath(String contextPath)(Code)(Java Doc)
public void setMarshallerProperties(Map properties)(Code)(Java Doc)
public void setUnmarshallerProperties(Map properties)(Code)(Java Doc)
public void setValidationEventHandler(ValidationEventHandler validationEventHandler)(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.