org.apache.tuscany.samples.sdo.intermediate
Class CreateCompanyTuscanyAPI

java.lang.Object
  extended by org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
      extended by org.apache.tuscany.samples.sdo.SampleBase
          extended by org.apache.tuscany.samples.sdo.basic.CreateCompany
              extended by org.apache.tuscany.samples.sdo.intermediate.CreateCompanyTuscanyAPI

public class CreateCompanyTuscanyAPI
extends CreateCompany

This sample is a variant of the CreateCompany sample where the graph of DataObjects is contained in an instance of DataGraph.

Running this Sample

See the main overview for instructions on how to run this sample.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
SampleInfrastructure.SDOFacets
 
Field Summary
 
Fields inherited from class org.apache.tuscany.samples.sdo.basic.CreateCompany
CORE_FUNCTION
 
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
 
Constructor Summary
CreateCompanyTuscanyAPI(Integer commentaryLevel)
           
 
Method Summary
static void main(String[] args)
          Main method.
 void runSample()
           
 
Methods inherited from class org.apache.tuscany.samples.sdo.basic.CreateCompany
populateGraph
 
Methods inherited from class org.apache.tuscany.samples.sdo.SampleBase
createScopeForTypes, getDataObjectFromFile, getXMLDocumentFromFile, getXMLDocumentFromString, loadTypesFromXMLSchemaFile, useDefaultScopeForTypes
 
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
 

Constructor Detail

CreateCompanyTuscanyAPI

public CreateCompanyTuscanyAPI(Integer commentaryLevel)
Method Detail

main

public static void main(String[] args)
Main method. Execute this method in order to run sample

Parameters:
args -
Throws:
Exception

runSample

public void runSample()
               throws Exception
Overrides:
runSample in class CreateCompany
Throws:
Exception


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.