Java Doc for AbstractMarshallerImpl.java in  » 6.0-JDK-Modules » jaxb-api » javax » xml » bind » helpers » 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 api » javax.xml.bind.helpers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.bind.helpers.AbstractMarshallerImpl

AbstractMarshallerImpl
abstract public class AbstractMarshallerImpl implements Marshaller(Code)
Partial default Marshaller implementation.

This class provides a partial default implementation for the javax.xml.bind.Marshaller interface.

The only methods that a JAXB Provider has to implement are Marshaller.marshal(Objectjavax.xml.transform.Result) marshal(Object, javax.xml.transform.Result) , Marshaller.marshal(Objectjavax.xml.transform.Result) marshal(Object, javax.xml.stream.XMLStreamWriter) , and Marshaller.marshal(Objectjavax.xml.transform.Result) marshal(Object, javax.xml.stream.XMLEventWriter) .
author:
  

  • Kohsuke Kawaguchi, Sun Microsystems, Inc.

version:
   $Revision: 1.8 $ $Date: 2006/08/28 17:56:38 $
See Also:   javax.xml.bind.Marshaller
since:
   JAXB1.0


Field Summary
static  String[]aliases
    


Method Summary
public  AgetAdapter(Class<A> type)
    
public  AttachmentMarshallergetAttachmentMarshaller()
    
protected  StringgetEncoding()
     Convenience method for getting the current output encoding.
public  ValidationEventHandlergetEventHandler()
    
protected  StringgetJavaEncoding(String encoding)
     Gets the corresponding Java encoding name from an IANA name.
public  ListenergetListener()
    
protected  StringgetNoNSSchemaLocation()
     Convenience method for getting the current noNamespaceSchemaLocation.
public  org.w3c.dom.NodegetNode(Object obj)
     By default, the getNode method is unsupported and throw an java.lang.UnsupportedOperationException .
public  ObjectgetProperty(String name)
     Default implementation of the getProperty method handles the four defined properties in Marshaller.
public  SchemagetSchema()
    
protected  StringgetSchemaLocation()
     Convenience method for getting the current schemaLocation.
protected  booleanisFormattedOutput()
     Convenience method for getting the formatted output flag.
protected  booleanisFragment()
     Convenience method for getting the fragment flag.
final public  voidmarshal(Object obj, java.io.OutputStream os)
    
public  voidmarshal(Object jaxbElement, File output)
    
final public  voidmarshal(Object obj, java.io.Writer w)
    
final public  voidmarshal(Object obj, org.xml.sax.ContentHandler handler)
    
final public  voidmarshal(Object obj, org.w3c.dom.Node node)
    
public  voidmarshal(Object obj, XMLEventWriter writer)
    
public  voidmarshal(Object obj, XMLStreamWriter writer)
    
public  voidsetAdapter(XmlAdapter adapter)
    
public  voidsetAdapter(Class<A> type, A adapter)
    
public  voidsetAttachmentMarshaller(AttachmentMarshaller am)
    
protected  voidsetEncoding(String encoding)
     Convenience method for setting the output encoding.
public  voidsetEventHandler(ValidationEventHandler handler)
    
protected  voidsetFormattedOutput(boolean v)
     Convenience method for setting the formatted output flag.
protected  voidsetFragment(boolean v)
     Convenience method for setting the fragment flag.
public  voidsetListener(Listener listener)
    
protected  voidsetNoNSSchemaLocation(String location)
     Convenience method for setting the noNamespaceSchemaLocation.
public  voidsetProperty(String name, Object value)
     Default implementation of the setProperty method handles the four defined properties in Marshaller.
public  voidsetSchema(Schema schema)
    
protected  voidsetSchemaLocation(String location)
     Convenience method for setting the schemaLocation.

Field Detail
aliases
static String[] aliases(Code)





Method Detail
getAdapter
public A getAdapter(Class<A> type)(Code)



getAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()(Code)



getEncoding
protected String getEncoding()(Code)
Convenience method for getting the current output encoding. the current encoding or "UTF-8" if it hasn't been set.



getEventHandler
public ValidationEventHandler getEventHandler() throws JAXBException(Code)

See Also:   javax.xml.bind.Marshaller.getEventHandler



getJavaEncoding
protected String getJavaEncoding(String encoding) throws UnsupportedEncodingException(Code)
Gets the corresponding Java encoding name from an IANA name. This method is a helper method for the derived class to convert encoding names.
exception:
  UnsupportedEncodingException - If this implementation couldn't find the Java encoding name.



getListener
public Listener getListener()(Code)



getNoNSSchemaLocation
protected String getNoNSSchemaLocation()(Code)
Convenience method for getting the current noNamespaceSchemaLocation. the current noNamespaceSchemaLocation or null if it hasn'tbeen set



getNode
public org.w3c.dom.Node getNode(Object obj) throws JAXBException(Code)
By default, the getNode method is unsupported and throw an java.lang.UnsupportedOperationException . Implementations that choose to support this method must override this method.



getProperty
public Object getProperty(String name) throws PropertyException(Code)
Default implementation of the getProperty method handles the four defined properties in Marshaller. If a provider needs to support additional provider specific properties, it should override this method in a derived class.



getSchema
public Schema getSchema()(Code)



getSchemaLocation
protected String getSchemaLocation()(Code)
Convenience method for getting the current schemaLocation. the current schemaLocation or null if it hasn't been set



isFormattedOutput
protected boolean isFormattedOutput()(Code)
Convenience method for getting the formatted output flag. the current value of the formatted output flag or false ifit hasn't been set.



isFragment
protected boolean isFragment()(Code)
Convenience method for getting the fragment flag. the current value of the fragment flag or false ifit hasn't been set.



marshal
final public void marshal(Object obj, java.io.OutputStream os) throws JAXBException(Code)



marshal
public void marshal(Object jaxbElement, File output) throws JAXBException(Code)



marshal
final public void marshal(Object obj, java.io.Writer w) throws JAXBException(Code)



marshal
final public void marshal(Object obj, org.xml.sax.ContentHandler handler) throws JAXBException(Code)



marshal
final public void marshal(Object obj, org.w3c.dom.Node node) throws JAXBException(Code)



marshal
public void marshal(Object obj, XMLEventWriter writer) throws JAXBException(Code)



marshal
public void marshal(Object obj, XMLStreamWriter writer) throws JAXBException(Code)



setAdapter
public void setAdapter(XmlAdapter adapter)(Code)



setAdapter
public void setAdapter(Class<A> type, A adapter)(Code)



setAttachmentMarshaller
public void setAttachmentMarshaller(AttachmentMarshaller am)(Code)



setEncoding
protected void setEncoding(String encoding)(Code)
Convenience method for setting the output encoding.
Parameters:
  encoding - a valid encoding as specified in the Marshaller class documentation



setEventHandler
public void setEventHandler(ValidationEventHandler handler) throws JAXBException(Code)

See Also:   javax.xml.bind.Marshaller.setEventHandler(ValidationEventHandler)



setFormattedOutput
protected void setFormattedOutput(boolean v)(Code)
Convenience method for setting the formatted output flag.
Parameters:
  v - value of the formatted output flag.



setFragment
protected void setFragment(boolean v)(Code)
Convenience method for setting the fragment flag.
Parameters:
  v - value of the fragment flag.



setListener
public void setListener(Listener listener)(Code)



setNoNSSchemaLocation
protected void setNoNSSchemaLocation(String location)(Code)
Convenience method for setting the noNamespaceSchemaLocation.
Parameters:
  location - the noNamespaceSchemaLocation value



setProperty
public void setProperty(String name, Object value) throws PropertyException(Code)
Default implementation of the setProperty method handles the four defined properties in Marshaller. If a provider needs to handle additional properties, it should override this method in a derived class.



setSchema
public void setSchema(Schema schema)(Code)



setSchemaLocation
protected void setSchemaLocation(String location)(Code)
Convenience method for setting the schemaLocation.
Parameters:
  location - the schemaLocation value



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.