org.apache.tuscany.samples.sdo.otherSources
Class CreatePurchaseOrder

java.lang.Object
  extended by org.apache.tuscany.samples.sdo.otherSources.CreatePurchaseOrder

public class CreatePurchaseOrder
extends java.lang.Object

Demonstrates creating a purchaseOrder DataObject from an existing XSD and then persisting to disk. Uses previously defined model SdoSampleConstants.PO_XSD_RESOURCE to define types then generates a purchase order DataObject and persists to SdoSampleConstants.PO_XML_GENERATED. This sample was used to generate valid XML for Fuhwei Lwo's paper Create and read an XML document based on XML Schema

Usage:
This sample can easily be run from within Eclipse as a Java Application if tuscany or the sample-sdo project is imported into Eclipse as an existing project.

If executing as a standalone application please do the following:

See Also:
ReadPurchaseOrder, CreatingXmlFromDataObjects

Constructor Summary
CreatePurchaseOrder()
           
 
Method Summary
static void main(java.lang.String[] args)
          Drives sample
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePurchaseOrder

public CreatePurchaseOrder()
Method Detail

main

public static void main(java.lang.String[] args)
Drives sample

Parameters:
args. - none required.


Copyright © 2007 Apache Software Foundation. All Rights Reserved.