org.apache.tuscany.samples.sdo.specCodeSnippets
Class PrintPropertiesOfDataObject

java.lang.Object
  extended by org.apache.tuscany.samples.sdo.specCodeSnippets.PrintPropertiesOfDataObject

public class PrintPropertiesOfDataObject
extends java.lang.Object

Demonstrates iterating through, and inspecting properites of a DataObject. This sample shows listing properties of a DataObject, determining if the properties are set and whether they are simple properties or represent DataObjects

This sample is from the Apache Tuscany project. It was written to help users understand and experiment with SDO. It is based upon code snippets contained within, and is meant for use with, and reference to the SDO Specification. This specific examples was based upon code snippets in the section titled 'Property Indexes'.
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:


Constructor Summary
PrintPropertiesOfDataObject()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void printDataObjectProperties(commonj.sdo.DataObject myDo)
          Calls recursive method to inspect and print properties of a DataObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintPropertiesOfDataObject

public PrintPropertiesOfDataObject()
Method Detail

printDataObjectProperties

public static void printDataObjectProperties(commonj.sdo.DataObject myDo)
                                      throws java.lang.Exception
Calls recursive method to inspect and print properties of a DataObject.

Parameters:
DataObject. - The DataObject to print the properties of
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Parameters:
args. - none required.


Copyright © 2007 Apache Software Foundation. All Rights Reserved.