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

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

本文整理了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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

/**
 * 
 * 
 * @param out
 * @throws org.exolab.castor.xml.MarshalException if object is
 * null or if any SAXException is thrown during marshaling
 * @throws org.exolab.castor.xml.ValidationException if this
 * object is an invalid instance according to the schema
 */
public void marshal(
    final java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
  org.exolab.castor.xml.Marshaller.marshal(this, out);
}

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

private void doMarshal(Object graph, Marshaller marshaller) {
  try {
    customizeMarshaller(marshaller);
    marshaller.marshal(graph);
  }
  catch (XMLException ex) {
    throw convertCastorException(ex, true);
  }
}

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

public void saveHistory() {
  // write back the history to file
  try {
    FileWriter writer = new FileWriter("queryhistory.xml");
    Marshaller marshaller = new Marshaller(writer);
    marshaller.setMapping(_mapping);
    marshaller.marshal(_qhistory);
  } catch (Exception e) {
    e.printStackTrace();
  }
}

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

private void marshal(Object graph, Marshaller marshaller) {
  try {
    customizeMarshaller(marshaller);
    marshaller.marshal(graph);
  }
  catch (XMLException ex) {
    throw convertCastorException(ex, true);
  }
}

相关文章