org.apache.tuscany.samples.sdo.advanced
Class PrintDataGraph
java.lang.Object
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
org.apache.tuscany.samples.sdo.SampleBase
org.apache.tuscany.samples.sdo.advanced.PrintDataGraph
public class PrintDataGraph
- extends SampleBase
This sample program traverses data graphs and builds up a text representation of the
data graph. As it traverses a graph it outputs commentary to the console
about what it has encountered and how it intends to process what it finds. At
the end of each traversal the text representation of the graph is printed to
the console.
Running this Sample
See the main overview for instructions on how to run this
sample.
Nested classes/interfaces inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure.SDOFacets |
Fields inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
COMMENTARY_ALWAYS, COMMENTARY_FOR_ADVANCED, COMMENTARY_FOR_INTERMEDIATE, COMMENTARY_FOR_NOVICE, commentaryLevel, COMPANY_DATAGRAPH_XML, COMPANY_DATAOBJECT_XML, COMPANY_NAMESPACE, COMPANY_XSD, PO_NAMESPACE, PO_XML_GENERATED, PO_XML_RESOURCE, PO_XSD_RESOURCE, SAMPLE_LEVEL_ADVANCED, SAMPLE_LEVEL_BASIC, SAMPLE_LEVEL_INTERMEDIATE, sampleClasses, sampleComplexityLevel, userLevels |
Method Summary |
java.lang.StringBuffer |
getBuf()
|
commonj.sdo.helper.HelperContext |
getScope()
|
static void |
main(java.lang.String[] args)
|
void |
print(java.lang.Object sdoObject)
|
void |
printDataObject(commonj.sdo.DataObject dataObject)
|
void |
printXMLDocument(commonj.sdo.helper.XMLDocument xmlDocument)
|
void |
reset()
|
void |
runSample()
|
void |
setBuf(java.lang.StringBuffer b)
|
void |
setScope(commonj.sdo.helper.HelperContext scope)
|
Methods inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
banner, banner, commentary, commentary, commentary, commentary, getSampleComplexityLevel, run, setSampleComplexityLevel, somethingUnexpectedHasHappened, yesOrNoFromUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CORE_FUNCTION
public static int[] CORE_FUNCTION
SIGNIFICANT_FUNCTION
public static int[] SIGNIFICANT_FUNCTION
PrintDataGraph
public PrintDataGraph(java.lang.Integer userLevel)
main
public static void main(java.lang.String[] args)
runSample
public void runSample()
throws java.lang.Exception
- Specified by:
runSample
in class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
- Throws:
java.lang.Exception
reset
public void reset()
print
public void print(java.lang.Object sdoObject)
throws java.lang.Exception
- Throws:
java.lang.Exception
printXMLDocument
public void printXMLDocument(commonj.sdo.helper.XMLDocument xmlDocument)
printDataObject
public void printDataObject(commonj.sdo.DataObject dataObject)
getBuf
public java.lang.StringBuffer getBuf()
setBuf
public void setBuf(java.lang.StringBuffer b)
getScope
public commonj.sdo.helper.HelperContext getScope()
setScope
public void setScope(commonj.sdo.helper.HelperContext scope)
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.