From 195774c489a1a671aca514b0afa88332bf9c6ee3 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 10 Nov 2009 19:20:12 +0000 Subject: Moving SDO tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@834617 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/release/bin/samples/README | 11 + .../src/main/release/bin/samples/runsamples.bat | 26 +++ .../src/main/release/bin/samples/runsamples.sh | 27 +++ .../release/bin/samples/sampleProgramContents.html | 244 +++++++++++++++++++++ 4 files changed, 308 insertions(+) create mode 100644 sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/README create mode 100644 sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.bat create mode 100644 sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.sh create mode 100644 sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/sampleProgramContents.html (limited to 'sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples') diff --git a/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/README b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/README new file mode 100644 index 0000000000..a19704ccd2 --- /dev/null +++ b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/README @@ -0,0 +1,11 @@ +Apache Tuscany SDO Java Sample Programs + +Documentation for these samples may be found in the docs/javadoc/sdo-samples directory +of this distribution. + +The runsamples.sh and runsamples.bat scripts in their unedited form +provide a way to run all of the samples sequentially. If you run these scripts +from within the directory they are found in, they will run correctly. +If you run them from elsewhere you will need to edit the scripts and set the +BINARY_BASE variable to the path in your filesystem where you unpacked the +SDO distribution. diff --git a/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.bat b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.bat new file mode 100644 index 0000000000..69f2f6f37d --- /dev/null +++ b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.bat @@ -0,0 +1,26 @@ +REM Licensed to the Apache Software Foundation (ASF) under one +REM or more contributor license agreements. See the NOTICE file +REM distributed with this work for additional information +REM regarding copyright ownership. The ASF licenses this file +REM to you under the Apache License, Version 2.0 (the +REM "License"); you may not use this file except in compliance +REM with the License. You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, +REM software distributed under the License is distributed on an +REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +REM KIND, either express or implied. See the License for the +REM specific language governing permissions and limitations +REM under the License. +@echo off +set BINARY_BASE=.. +set RELEASE=1.1.1-incubating +echo SDO Sample Programs. Running with BINARY_BASE set to %BINARY_BASE% +echo If this script fails with ClassDefNotFound errors you probably need to +echo edit the BINARY_BASE variable in the script to point to the location +echo where you unpacked the Tuscany SDO binary distribution +set LIB=%BINARY_BASE%\lib +set CLASSPATH=%LIB%\sample-sdo-%RELEASE%.jar;%LIB%\tuscany-sdo-api-r2.1-%RELEASE%.jar;%LIB%\tuscany-sdo-lib-%RELEASE%.jar;%LIB%\tuscany-sdo-impl-%RELEASE%.jar;%LIB%\tuscany-sdo-tools-%RELEASE%.jar;%LIB%\codegen-ecore-2.2.3.jar;%LIB%\codegen-2.2.3.jar;%LIB%\ecore-2.2.3.jar;%LIB%\ecore-change-2.2.3.jar;%LIB%\ecore-xmi-2.2.3.jar;%LIB%\common-2.2.3.jar;%LIB%\xsd-2.2.3.jar;%LIB%\stax-api-1.0.1.jar;%LIB%\wstx-asl-3.2.1.jar +java org.apache.tuscany.samples.sdo.ExecuteSamples \ No newline at end of file diff --git a/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.sh b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.sh new file mode 100644 index 0000000000..7bc1615843 --- /dev/null +++ b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/runsamples.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +echo SDO Sample Programs. Running with BINARY_BASE set to $BINARY_BASE +echo If this script fails with ClassDefNotFound errors you probably need to +echo edit the BINARY_BASE variable in the script to point to the location +echo where you unpacked the Tuscany SDO binary distribution +export BINARY_BASE=.. +export RELEASE=1.1.1-incubating +export LIB=$BINARY_BASE/lib +export CLASSPATH=$LIB/sample-sdo-$RELEASE.jar:$LIB/tuscany-sdo-api-r2.1-$RELEASE.jar:$LIB/tuscany-sdo-lib-$RELEASE.jar:$LIB/tuscany-sdo-impl-$RELEASE.jar:$LIB/tuscany-sdo-tools-$RELEASE.jar:$LIB/codegen-ecore-2.2.3.jar:$LIB/codegen-2.2.3.jar:$LIB/ecore-2.2.3.jar:$LIB/ecore-change-2.2.3.jar:$LIB/ecore-xmi-2.2.3.jar:$LIB/common-2.2.3.jar:$LIB/xsd-2.2.3.jar:$LIB/stax-api-1.0.1.jar:$LIB/wstx-asl-3.2.1.jar +echo $CLASSPATH +java org.apache.tuscany.samples.sdo.ExecuteSamples diff --git a/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/sampleProgramContents.html b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/sampleProgramContents.html new file mode 100644 index 0000000000..01edf84c69 --- /dev/null +++ b/sdo-java/tags/1.1.1/distribution/src/main/release/bin/samples/sampleProgramContents.html @@ -0,0 +1,244 @@ + + + + +SDO Samples +

SDO Samples

+

+The samples provided in the Tuscany SDO distribution cover many areas of +the SDO API. Here we provide two indexes into the samples. The first lists +each sample in sequence and details the central theme(s) of the sample. +It also mentions if the sample significantly demonstrates other areas in passing. +The second index lists all the themes that are covered by these samples, and +indicates which of the samples has that subject area as a central theme or as +demonstrates the subject area significant as an incidental part of the sample.

Index by Sample Program Name

+

Sample Program CreateCompany

+Core function:
+Set Properties of DataObject by name
+

Sample Program ReadPurchaseOrder

+Core function:
+Loading data from XML
+Saving data to XML
+
Also demonstrates:
+Get Properties of DataObject by name
+

Sample Program CreatePurchaseOrder

+Core function:
+Loading data from XML
+Saving data to XML
+

Sample Program AccessDataObjectPropertiesByName

+Core function:
+Get Properties of DataObject by name
+

Sample Program AccessingTheContentsOfASequence

+Core function:
+Accessing values in a Sequence
+

Sample Program AccessDataObjectUsingValidXPath

+Core function:
+Get/Set Properties of DataObject by Xpath
+

Sample Program DynamicCustomerTypeSample

+Core function:
+Create Types using the SDO API
+
Also demonstrates:
+Set Properties of DataObject by name
+Using Built-in Types
+Saving data to XML
+

Sample Program CreateCompanyTuscanyAPI

+Core function:
+Set Properties of DataObject by name
+

Sample Program CreateDataObjectFromXmlString

+Core function:
+Using Built-in Types
+Loading data from XML
+

Sample Program SerializingDeserializingADataObject

+Core function:
+Java Serialization of data graph
+
Also demonstrates:
+Testing for Graph Equality
+

Sample Program AccessingDataObjectsViaPropertyIndex

+Core function:
+Get/Set Properties of DataObject by index
+

Sample Program ObtainingDataGraphFromXml

+Core function:
+Wrapping data graph in a DataGraph instance
+
Also demonstrates:
+Using Built-in Types
+

Sample Program PrintDataGraph

+Core function:
+Generic data graph traversal
+
Also demonstrates:
+Get/Set Properties by Instance Properties
+isMany Properties
+Create Types using the SDO API
+Accessing values in a Sequence
+Non-Containment
+

Sample Program MedicalScenario

+Core function:
+Containment
+Create Types using the SDO API
+Create Types using XML Schema
+Open Content
+Non-Containment
+
Also demonstrates:
+Create DataObjects by name
+isMany Properties
+Generic data graph traversal
+Saving data to XML
+

Sample Program MedicalScenarioWithChangeMonitoring

+Core function:
+Containment
+Create Types using the SDO API
+Create Types using XML Schema
+Open Content
+Non-Containment
+Change Monitoring using a ChangeSummary Property on a DataObject
+
Also demonstrates:
+Create DataObjects by name
+isMany Properties
+Generic data graph traversal
+Saving data to XML
+

Index by function

+ +

+
+

Get Properties of DataObject by name

+Samples which demonstrate this as their core function
+AccessDataObjectPropertiesByName
+Samples which demonstrate this in addition to their core function
+ReadPurchaseOrder
+
+

Set Properties of DataObject by name

+Samples which demonstrate this as their core function
+CreateCompany
+CreateCompanyTuscanyAPI
+Samples which demonstrate this in addition to their core function
+DynamicCustomerTypeSample
+
+

Create DataObjects by name

+Samples which demonstrate this in addition to their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Get/Set Properties of DataObject by index

+Samples which demonstrate this as their core function
+AccessingDataObjectsViaPropertyIndex
+
+

Get/Set Properties by Instance Properties

+Samples which demonstrate this in addition to their core function
+PrintDataGraph
+
+

Get/Set Properties of DataObject by Xpath

+Samples which demonstrate this as their core function
+AccessDataObjectUsingValidXPath
+
+

isMany Properties

+Samples which demonstrate this in addition to their core function
+PrintDataGraph
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Containment

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Create Types using the SDO API

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+DynamicCustomerTypeSample
+MedicalScenario
+Samples which demonstrate this in addition to their core function
+PrintDataGraph
+
+

Create Types using XML Schema

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Create Types using the Tuscany API

+
+

Using Built-in Types

+Samples which demonstrate this as their core function
+CreateDataObjectFromXmlString
+Samples which demonstrate this in addition to their core function
+DynamicCustomerTypeSample
+ObtainingDataGraphFromXml
+
+

Accessing values in a Sequence

+Samples which demonstrate this as their core function
+AccessingTheContentsOfASequence
+Samples which demonstrate this in addition to their core function
+PrintDataGraph
+
+

Generic data graph traversal

+Samples which demonstrate this as their core function
+PrintDataGraph
+Samples which demonstrate this in addition to their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Loading data from XML

+Samples which demonstrate this as their core function
+CreateDataObjectFromXmlString
+ReadPurchaseOrder
+CreatePurchaseOrder
+
+

Saving data to XML

+Samples which demonstrate this as their core function
+ReadPurchaseOrder
+CreatePurchaseOrder
+Samples which demonstrate this in addition to their core function
+MedicalScenarioWithChangeMonitoring
+DynamicCustomerTypeSample
+MedicalScenario
+
+

Change Monitoring using a DataGraph

+
+

Change Monitoring using a ChangeSummary Property on a DataObject

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+
+

Wrapping data graph in a DataGraph instance

+Samples which demonstrate this as their core function
+ObtainingDataGraphFromXml
+
+

Open Content

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+
+

Non-Containment

+Samples which demonstrate this as their core function
+MedicalScenarioWithChangeMonitoring
+MedicalScenario
+Samples which demonstrate this in addition to their core function
+PrintDataGraph
+
+

Create XML Schema from Types

+
+

Java Serialization of data graph

+Samples which demonstrate this as their core function
+SerializingDeserializingADataObject
+
+

Testing for Graph Equality

+Samples which demonstrate this in addition to their core function
+SerializingDeserializingADataObject
+ + -- cgit v1.2.3