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

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.intermediate.DynamicCustomerTypeSample

public class DynamicCustomerTypeSample
extends SampleBase

Demonstrates creating and using Types dynamically.

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
static int[] CORE_FUNCTION
           
static String CUSTOMER_MODEL
          XSD file used to define the model and Types for Customer Dataobject
static String CUSTOMER_MODEL_GENERATED
          Default file name to use when generated customer XSD files.
static String CUSTOMER_NAMESPACE
          Fake namespace used for Customer
static String CUSTOMER_XML
          XML file used to populate Customer DataObjects
static String CUSTOMER_XML_GENERATED
          Default file name to use when generated customer XML files.
static int[] SIGNIFICANT_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
DynamicCustomerTypeSample(Integer userLevel)
           
 
Method Summary
static void main(String[] args)
          Drives sample methods
 void runSample()
           
 
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
 

Field Detail

CUSTOMER_MODEL

public static final String CUSTOMER_MODEL
XSD file used to define the model and Types for Customer Dataobject

See Also:
Constant Field Values

CUSTOMER_MODEL_GENERATED

public static final String CUSTOMER_MODEL_GENERATED
Default file name to use when generated customer XSD files.

See Also:
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject, Constant Field Values

CUSTOMER_NAMESPACE

public static final String CUSTOMER_NAMESPACE
Fake namespace used for Customer

See Also:
Constant Field Values

CUSTOMER_XML

public static final String CUSTOMER_XML
XML file used to populate Customer DataObjects

See Also:
Constant Field Values

CUSTOMER_XML_GENERATED

public static final String CUSTOMER_XML_GENERATED
Default file name to use when generated customer XML files.

See Also:
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject, Constant Field Values

CORE_FUNCTION

public static int[] CORE_FUNCTION

SIGNIFICANT_FUNCTION

public static int[] SIGNIFICANT_FUNCTION
Constructor Detail

DynamicCustomerTypeSample

public DynamicCustomerTypeSample(Integer userLevel)
Method Detail

main

public static void main(String[] args)
Drives sample methods

Parameters:
args - no arguments required

runSample

public void runSample()
               throws Exception
Specified by:
runSample in class SampleInfrastructure
Throws:
Exception


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