org.apache.tuscany.samples.sdo
Class SampleBase
java.lang.Object
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
org.apache.tuscany.samples.sdo.SampleBase
- Direct Known Subclasses:
- AccessDataObjectPropertiesByName, AccessDataObjectUsingValidXPath, AccessingDataObjectsViaPropertyIndex, AccessingTheContentsOfASequence, CreateCompany, CreateDataObjectFromXmlString, CreatePurchaseOrder, DynamicCustomerTypeSample, ExecuteSamples, MedicalScenario, MedicalScenarioWithChangeMonitoring, ObtainingDataGraphFromXml, PrintDataGraph, ReadPurchaseOrder, SerializingDeserializingADataObject
public abstract class SampleBase
- extends org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
the base function for samples is split into two classes. This one is intended
to house all the interesting SDO utility methods, and the superclass houses
all the infrastructure that the SDO user isn't interested in inspecting.
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 |
Constructor Summary |
SampleBase()
|
SampleBase(java.lang.Integer commentaryLevel,
java.lang.Integer sampLevel)
|
Methods inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure |
banner, banner, commentary, commentary, commentary, commentary, getSampleComplexityLevel, run, runSample, setSampleComplexityLevel, somethingUnexpectedHasHappened, yesOrNoFromUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleBase
public SampleBase()
SampleBase
public SampleBase(java.lang.Integer commentaryLevel,
java.lang.Integer sampLevel)
createScopeForTypes
protected commonj.sdo.helper.HelperContext createScopeForTypes()
useDefaultScopeForTypes
protected commonj.sdo.helper.HelperContext useDefaultScopeForTypes()
loadTypesFromXMLSchemaFile
protected void loadTypesFromXMLSchemaFile(commonj.sdo.helper.HelperContext scope,
java.lang.String fileName)
getDataObjectFromFile
public commonj.sdo.DataObject getDataObjectFromFile(commonj.sdo.helper.HelperContext scope,
java.lang.String filename)
throws java.lang.Exception
- Throws:
java.lang.Exception
getXMLDocumentFromFile
public commonj.sdo.helper.XMLDocument getXMLDocumentFromFile(commonj.sdo.helper.HelperContext scope,
java.lang.String filename)
throws java.lang.Exception
- Throws:
java.lang.Exception
getXMLDocumentFromString
protected commonj.sdo.helper.XMLDocument getXMLDocumentFromString(commonj.sdo.helper.HelperContext scope,
java.lang.String xmlDoc)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.