Collaboration API Documentation

com.filenet.bso.api.util
Class BsoXMLBinder

java.lang.Object
  |
  +--com.filenet.bso.api.util.BsoXMLBinder

public class BsoXMLBinder
extends java.lang.Object

The BsoXMLBinder class manages unmarshaling XML content into Java classes, and marshaling Java classes into XML content.

See Also:
BsoGenericSAXHandler, BsoXMLMarshal, BsoXMLUnmarshal, BsoXMLWriter, BsoXPathDef

Method Summary
static java.lang.String marshal(java.lang.Object rootObject)
          Unmarshals a Java object and child objects into XML content and returns the XML content in a String parameter.
static void marshal(java.lang.Object rootObject, java.io.OutputStream xmlOutputStream)
          Unmarshals a Java object and child objects into XML content and into a given OutputStream.
static java.lang.Object unmarshal(java.io.InputStream xmlInputStream, BsoXPathDef[] xPathDefinitions)
          Marshals an XML input stream into a tree of Java classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

unmarshal

public static java.lang.Object unmarshal(java.io.InputStream xmlInputStream,
                                         BsoXPathDef[] xPathDefinitions)
Marshals an XML input stream into a tree of Java classes. The array of BsoXPathDef objects specifies the Java classes that will be generated.

Parameters:
xmlInputStream - An InputStream of XML content.

xPathDefinitions - An array of BsoXPathDef objects specifying the object to generate.

Returns:
The root object of the XML-based object tree.

marshal

public static void marshal(java.lang.Object rootObject,
                           java.io.OutputStream xmlOutputStream)
Unmarshals a Java object and child objects into XML content and into a given OutputStream.

All objects must implement the BsoXMLMarshal interface.

Parameters:
rootObject - The object to be marshaled.

xmlOutputStream - The OutputStream to which the XML content is written.

marshal

public static java.lang.String marshal(java.lang.Object rootObject)
Unmarshals a Java object and child objects into XML content and returns the XML content in a String parameter.

All objects must implement the BsoXMLMarshal interface.

Parameters:
rootObject - The object to be marshaled.

Returns:
String The XML content.

Collaboration API Documentation

Copyright © 2002 - 2004 FileNet Corporation. All rights reserved.