org.apache.tuscany.samples.sdo.intermediate
Class AccessDataObjectUsingValidXPath
java.lang.Object
org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
org.apache.tuscany.samples.sdo.SampleBase
org.apache.tuscany.samples.sdo.intermediate.AccessDataObjectUsingValidXPath
public class AccessDataObjectUsingValidXPath
- extends SampleBase
Demonstrates accessing a created DataObject's properties using the SDO XPath like syntax.
Running this Sample
See the main overview for instructions on how to run this
sample.
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 |
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
AccessDataObjectUsingValidXPath
public AccessDataObjectUsingValidXPath(Integer userLevel)
main
public static void main(String[] args)
- Accesses and modifies properties of a purchase order DataObject using xPath(
properties are defined in the xsd
SampleInfrastructure.PO_XSD_RESOURCE
and
populated by xml
SampleInfrastructure.PO_XML_RESOURCE
)
- Parameters:
args.
- No parameters required.
runSample
public void runSample()
throws Exception
- Specified by:
runSample
in class SampleInfrastructure
- Throws:
Exception
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.