Author: amita
Date: Thu Jan 31 04:44:16 2008
New Revision: 617121
URL: http://svn.apache.org/viewvc?rev=617121&view=rev
Log:
TUSCANY-2025 Minor typo type fixes in commentary for SDO Java Samples.
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/SampleBase.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/MedicalScenarioWithChangeMonitoring.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/ObtainingDataGraphFromXml.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/PrintDataGraph.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/basic/AccessingTheContentsOfASequence.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessDataObjectUsingValidXPath.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessingDataObjectsViaPropertyIndex.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateCompanyTuscanyAPI.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateDataObjectFromXmlString.java
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/DynamicCustomerTypeSample.java
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/SampleBase.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/SampleBase.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/SampleBase.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/SampleBase.java
Thu Jan 31 04:44:16 2008
@@ -133,7 +133,7 @@
"along with other aspects of the XML nature of the document\n\n"+
"DataObject result = xmlDoc.getRootObject();",
- "Geting the root object from an XMLDocument as seen in previous
samples"
+ "Getting the root object from an XMLDocument as seen in previous
samples"
);
DataObject result = xmlDoc.getRootObject();
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/MedicalScenarioWithChangeMonitoring.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/MedicalScenarioWithChangeMonitoring.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/MedicalScenarioWithChangeMonitoring.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/MedicalScenarioWithChangeMonitoring.java
Thu Jan 31 04:44:16 2008
@@ -170,8 +170,8 @@
DataObject referrals = test.createDataObject("referrals");
- commentary("The default state for monitoring changes for da DataObject
when created in this\n" +
- "way is thay monitoring is switched off, so we switch it on.
(Note that if you\n" +
+ commentary("The default state for monitoring changes for the DataObject
when created in this\n" +
+ "way is the monitoring is switched off, so we switch it on.
(Note that if you\n" +
"get your data graphs from a data Access Service then this
service may turn on\n" +
"change monitoring be default\n\n" +
"test.getChangeSummary().beginLogging();");
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/ObtainingDataGraphFromXml.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/ObtainingDataGraphFromXml.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/ObtainingDataGraphFromXml.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/ObtainingDataGraphFromXml.java
Thu Jan 31 04:44:16 2008
@@ -172,7 +172,7 @@
commentary(
"Using an instance of DataGraph can perhaps be seen as an older
style pattern of wrapping a data graph\n"+
- "and the first approach is likely to get more emphaissi and
attention in future revisions of the spec.\n"+
+ "and the first approach is likely to get more emphasis and
attention in future revisions of the spec.\n"+
"The SDO API has some limitations in the area of saving and
loading instances of the\n"+
"Java DataGraph type, so Tuscany has an API for doing this
...\n\n"+
"DataGraph datagraph = SDOUtil.loadDataGraph(\n"+
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/PrintDataGraph.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/PrintDataGraph.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/PrintDataGraph.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/advanced/PrintDataGraph.java
Thu Jan 31 04:44:16 2008
@@ -171,8 +171,8 @@
COMMENTARY_FOR_NOVICE,
"We begin traversing the data graph by examining the root object of
the graph's containment hierarchy,\n"
+ "making a record of the values of its Properties. As we
inspect the values of the Properties of this object\n"
- + "if we encounter contained DataObjects, then we will recurse
through the containment hierarchy of the\n"
- + "data graph in a depth first fashion, and create a text
representaation of the graph that we'll print\n"
+ + "if we encounter contained DataObjects, then we will recurs
through the containment hierarchy of the\n"
+ + "data graph in a depth first fashion, and create a text
representation of the graph that we'll print\n"
+ "out after the graph traversal has been completed.",
"We are beginning to traverse another data graph from its root
object, in the same way that we saw previously");
@@ -239,7 +239,7 @@
commentary(
"The Property/Value pairs of a Sequence can be accessed via the
getProperty(int) and getValue(int)\n"
+ "accessor methods of the Sequence interface. The size()
method of the Sequence tells us how many there are.\n"
- + "If the getProperty(int) method retunes null, then the value
is text. These text values may be encountered\n"
+ + "If the getProperty(int) method returns null, then the value
is text. These text values may be encountered\n"
+ "when the DataObject's type is 'mixed'
(dataObject.getType().isMixed() == true). A typical example of this\n"
+ "is when the data graph represents a form letter.",
@@ -329,7 +329,7 @@
+ "consider the nature of that Property in order to deal with it
appropriately.\n"
+ "Firstly we see if the Property value has been set
(dataObject.isSet(property))\n"
+ "Then we see if the Property is simple valued
(property.isDataType() == true)\n"
- + "--if not then we know it's a DataObject and we must recurse
deeper into the graph's\n"
+ + "--if not then we know it's a DataObject and we must recurs
deeper into the graph's\n"
+ "containment hierarchy\n"
+ "Whether or not the property value is a DataObject, is may be
single or multi-valued\n"
+ "so we must either use one of the DataObject's get*(Property)
accessors for single\n"
@@ -338,7 +338,7 @@
+ "Property is a 'containment' Property. If it isn't, then here
we simply record the fact that\n"
+ "we have encountered this non-containment relationship, and
move on to the next Property",
- "Inspecting another property to determine how to access it's value,
as we saw before");
+ "Inspecting another property to determine how to access its value, as
we saw before");
// TODO deal with nullable
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/basic/AccessingTheContentsOfASequence.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/basic/AccessingTheContentsOfASequence.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/basic/AccessingTheContentsOfASequence.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/basic/AccessingTheContentsOfASequence.java
Thu Jan 31 04:44:16 2008
@@ -108,7 +108,7 @@
}
commentary("The values of the modeled Properties are still accessible
through the DataObject\n" +
- "getter and setter methods, but only through the
Sequence API can we get to the untructured\n" +
+ "getter and setter methods, but only through the
Sequence API can we get to the unstructured\n" +
"text and see the ordering of the instance document");
}
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessDataObjectUsingValidXPath.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessDataObjectUsingValidXPath.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessDataObjectUsingValidXPath.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessDataObjectUsingValidXPath.java
Thu Jan 31 04:44:16 2008
@@ -95,7 +95,7 @@
System.out.println("\nThen we use indexing by integer starting from
1\n" +
- "purchaseOrder.getString(\"items/item[1]/productName\"\n" +
+ "purchaseOrder.getString(\"items/item[1]/productName\")\n" +
"The first item in the order is a ... " +
purchaseOrder.getString("items/item[1]/productName"));
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessingDataObjectsViaPropertyIndex.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessingDataObjectsViaPropertyIndex.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessingDataObjectsViaPropertyIndex.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/AccessingDataObjectsViaPropertyIndex.java
Thu Jan 31 04:44:16 2008
@@ -122,7 +122,7 @@
"private static final int COMPANY_NAME = 2;\n\n" +
"The value of the integers is defined by the sequence the
Properties\n" +
"appear in the List returned by
dataObject.getType().getDeclaredProperties()\n" +
- "For a type derived from an XML schema this will be the
sequence they appeard in the\n" +
+ "For a type derived from an XML schema this will be the
sequence they appeared in the\n" +
"schema document.\n" +
"We can use these integer values to get and set Properties on
the company DataObject\n\n" +
"company.setString(COMPANY_NAME, \"MegaCorp\");\n" +
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateCompanyTuscanyAPI.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateCompanyTuscanyAPI.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateCompanyTuscanyAPI.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateCompanyTuscanyAPI.java
Thu Jan 31 04:44:16 2008
@@ -80,7 +80,7 @@
commentary(COMMENTARY_FOR_INTERMEDIATE,
"As we are dealing with a DataGraph, the SDO API has some gray
areas at the moment\n"+
"in that the DataGraph API hasn't yet been developed to deal with
scopes\n"+
- "other than the default scope. So here is an occasion where we
must use"+
+ "other than the default scope. So here is an occasion where we
must use "+
"the default singleton scope");
HelperContext scope = useDefaultScopeForTypes();
loadTypesFromXMLSchemaFile(scope, SampleInfrastructure.COMPANY_XSD);
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateDataObjectFromXmlString.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateDataObjectFromXmlString.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateDataObjectFromXmlString.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/CreateDataObjectFromXmlString.java
Thu Jan 31 04:44:16 2008
@@ -94,8 +94,8 @@
"purchaseOrder.getInstanceProperty(\"shipTo\") returns a
Property");
System.out.println("DataObject's type is open?: " +
purchaseOrder.getType().isOpen());
- System.out.println("Data Object's type has a propery shipTo?: " +
(purchaseOrder.getType().getProperty("shipTo") != null));
- System.out.println("Data Object instance has a propery shipTo?: " +
(purchaseOrder.getInstanceProperty("shipTo") != null));
+ System.out.println("Data Object's type has a property shipTo?: " +
(purchaseOrder.getType().getProperty("shipTo") != null));
+ System.out.println("Data Object instance has a property shipTo?: " +
(purchaseOrder.getInstanceProperty("shipTo") != null));
commentary(
"Without a Type definition accessing a DataObject is slightly\n"+
Modified:
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/DynamicCustomerTypeSample.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/DynamicCustomerTypeSample.java?rev=617121&r1=617120&r2=617121&view=diff
==============================================================================
---
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/DynamicCustomerTypeSample.java
(original)
+++
incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/intermediate/DynamicCustomerTypeSample.java
Thu Jan 31 04:44:16 2008
@@ -126,7 +126,7 @@
Type intType = typeHelper.getType("commonj.sdo", "Int");
Type stringType = typeHelper.getType("commonj.sdo", "String");
- commentary("To begin modelling the type system we create a DataObject
with\n"+
+ commentary("To begin modeling the type system we create a DataObject
with\n"+
"Type \"commonj.sdo#Type\" and set the URI and name for that
type\n\n"+
"DataObject customerType =
scope.getDataFactory().create(\"commonj.sdo\", \"Type\");\n"+
@@ -148,7 +148,7 @@
custNumProperty.set("name", "custNum");
custNumProperty.set("type", intType);
- commentary("We continue in this manner until all the Types and their
Properties are modelled");
+ commentary("We continue in this manner until all the Types and their
Properties are modeled");
DataObject lastNameProperty = customerType.createDataObject("property");
lastNameProperty.set("name", "lastName");
lastNameProperty.set("type", stringType);
@@ -157,8 +157,8 @@
firstNameProperty.set("name", "firstName");
firstNameProperty.set("type", stringType);
- commentary("Now that our type is fully modelled we submit the model to
the TypeHelper\n"+
- "The new Type instance is retuend to us, but is also available for
lookup within\n"+
+ commentary("Now that our type is fully modeled we submit the model to
the TypeHelper\n"+
+ "The new Type instance is returned to us, but is also available for
lookup within\n"+
"the scope associated with the TypeHelper\n\n"+
"Type t = typeHelper.define(customerType);");
Type t = typeHelper.define(customerType);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]