Author: frankb
Date: Mon Sep 11 17:48:31 2006
New Revision: 442403
URL: http://svn.apache.org/viewvc?view=rev&rev=442403
Log:
Early addition of SDO 2.1 TypeHelper methods: defineOpenContentProperty() and
getOpenContentProperty()
Modified:
incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/helper/TypeHelper.java
Modified:
incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/helper/TypeHelper.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/helper/TypeHelper.java?view=diff&rev=442403&r1=442402&r2=442403
==============================================================================
---
incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/helper/TypeHelper.java
(original)
+++
incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/helper/TypeHelper.java
Mon Sep 11 17:48:31 2006
@@ -16,6 +16,7 @@
import java.util.List;
import commonj.sdo.DataObject;
+import commonj.sdo.Property;
import commonj.sdo.Type;
import commonj.sdo.impl.HelperProvider;
@@ -64,6 +65,32 @@
List /*Type*/ define(List /*DataObject*/ types);
/**
+ * Define the DataObject as a Property for setting open content.
+ * The containing Type of the open content property is not specified by SDO.
+ * If the specified uri is not null the defined property is accessible
through
+ * TypeHelper.getOpenContentProperty(uri, propertyName).
+ * If a null uri is specified, the location and management of the open
content property
+ * is not specified by SDO.
+ * @param uri the namespace URI of the open content Property or null.
+ * @return the defined open content Property.
+ * @throws IllegalArgumentException if the Property could not be defined.
+ *
+ * NOTE: this is an early addition of an SDO 2.1 feature.
+ */
+ public Property defineOpenContentProperty(String uri, DataObject property);
+
+ /**
+ * Get the open content Property with the specified uri and name, or null if
+ * not found.
+ * @param uri the namespace URI of the open content Property.
+ * @param propertyName the name of the open content Property.
+ * @return the global Property.
+ *
+ * NOTE: this is an early addition of an SDO 2.1 feature.
+ */
+ public Property getOpenContentProperty(String uri, String propertyName);
+
+ /**
* The default TypeHelper.
*/
TypeHelper INSTANCE = HelperProvider.getTypeHelper();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]