org.exolab.castor.xml.Marshaller.marshal()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(283)

本文整理了Java中org.exolab.castor.xml.Marshaller.marshal()方法的一些代码示例,展示了Marshaller.marshal()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marshaller.marshal()方法的具体详情如下:
包路径:org.exolab.castor.xml.Marshaller
类名称:Marshaller
方法名:marshal

Marshaller.marshal介绍

[英]Marshals the given Object as XML using the DocumentHandler for this Marshaller.
[中]使用此封送器的DocumentHandler将给定对象封送为XML。

代码示例

代码示例来源:origin: org.codehaus.castor/castor-xml

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-xml

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-xml-schema

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-xml-schema

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-codegen

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-jdo

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.opennms/opennms-import

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework

  1. /**
  2. *
  3. *
  4. * @param out
  5. * @throws org.exolab.castor.xml.MarshalException if object is
  6. * null or if any SAXException is thrown during marshaling
  7. * @throws org.exolab.castor.xml.ValidationException if this
  8. * object is an invalid instance according to the schema
  9. */
  10. public void marshal(
  11. final java.io.Writer out)
  12. throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  13. org.exolab.castor.xml.Marshaller.marshal(this, out);
  14. }

代码示例来源:origin: apache/servicemix-bundles

  1. private void doMarshal(Object graph, Marshaller marshaller) {
  2. try {
  3. customizeMarshaller(marshaller);
  4. marshaller.marshal(graph);
  5. }
  6. catch (XMLException ex) {
  7. throw convertCastorException(ex, true);
  8. }
  9. }

代码示例来源:origin: org.codehaus.castor/castor-jdo

  1. public void saveHistory() {
  2. // write back the history to file
  3. try {
  4. FileWriter writer = new FileWriter("queryhistory.xml");
  5. Marshaller marshaller = new Marshaller(writer);
  6. marshaller.setMapping(_mapping);
  7. marshaller.marshal(_qhistory);
  8. } catch (Exception e) {
  9. e.printStackTrace();
  10. }
  11. }

代码示例来源:origin: org.springframework.ws/spring-oxm

  1. private void marshal(Object graph, Marshaller marshaller) {
  2. try {
  3. customizeMarshaller(marshaller);
  4. marshaller.marshal(graph);
  5. }
  6. catch (XMLException ex) {
  7. throw convertCastorException(ex, true);
  8. }
  9. }

相关文章