BOXMLSerializer

This interface provides the mechanisms for serializing and deserializing an XML document.

Purpose

This interface is used to serialize and deserialize a business graph or a graph of business objects.

Example

This is an example of the BOXMLSerializer interface.

BOFactory factoryService = BOFactory) new 
		ServiceManager().locateService("com/ibm/websphere/bo/BOFactory");
BOXMLSerializer xmlSerializerService =`(BOXMLSerializer) new 
		ServiceManager().locateService("com/ibm/websphere/bo/BOXMLSerializer");

// Create the business object graph.
DataObject productCategoryBG = factoryService.create
		("http://www.scm.com/ProductCategoryTypes/ProductCategoryBG", 
		"ProductCategoryBG");
DataObject productCategory =
    productCategoryBG.createDataObject("productCategory");
DataObject product =
    productCategory.createDataObject("product");

DataObject productCategory3 =
    productCategoryBG3.createDataObject("productCategory");

FileOutputStream outfile2 = new 
		FileOutputStream("productCategoryBGDocument.xml");
xmlSerializerService.writeXMLDocument(productCategoryBGDoc, outfile2);
FileInputStream infile2 = new FileInputStream("productCategoryBGDocument.xml");
BOXMLDocument productCategoryBG4Document =
 xmlSerializerService.readXMLDocument(infile2);
DataObject productCategoryBG5 = productCategoryBG4Document.getDataObject();
Related reference
BOChangeSummary
BOCopy
BODataObject
BOEquality
BOEventSummary
BOFactory
BOType
BOTypeMetadata
BOXMLDocument
Related information
Interface BOXMLSerializer APIs

Terms of use |

Last updated: Thu Apr 27 15:50:14 2006

(c) Copyright IBM Corporation 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)