|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.samples.sdo.internal.SampleInfrastructure
org.apache.tuscany.samples.sdo.SampleBase
org.apache.tuscany.samples.sdo.intermediate.DynamicCustomerTypeSample
public class DynamicCustomerTypeSample
Demonstrates creating and using Types dynamically.
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 |
---|
public static final String CUSTOMER_MODEL
public static final String CUSTOMER_MODEL_GENERATED
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject
,
Constant Field Valuespublic static final String CUSTOMER_NAMESPACE
public static final String CUSTOMER_XML
public static final String CUSTOMER_XML_GENERATED
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject
,
Constant Field Valuespublic static int[] CORE_FUNCTION
public static int[] SIGNIFICANT_FUNCTION
Constructor Detail |
---|
public DynamicCustomerTypeSample(Integer userLevel)
Method Detail |
---|
public static void main(String[] args)
args
- no arguments requiredpublic void runSample() throws Exception
runSample
in class SampleInfrastructure
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |