Author: geirm
Date: Thu Feb 10 13:12:04 2005
New Revision: 153290
URL: http://svn.apache.org/viewcvs?view=rev&rev=153290
Log:
We're supposed to change the source object for an association
when an association is set on the source...
Modified:
webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryObjectImpl.java
Modified:
webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryObjectImpl.java
URL:
http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryObjectImpl.java?view=diff&r1=153289&r2=153290
==============================================================================
---
webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryObjectImpl.java
(original)
+++
webservices/scout/trunk/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/RegistryObjectImpl.java
Thu Feb 10 13:12:04 2005
@@ -39,7 +39,8 @@
* Implements JAXR Interface.
* For futher details, look into the JAXR API Javadoc.
*
- * @author Anil Saldhana <[EMAIL PROTECTED]>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Anil Saldhana</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
*/
public class RegistryObjectImpl extends ExtensibleObjectImpl implements
RegistryObject
{
@@ -141,9 +142,20 @@
classifications = newClassifications;
}
+ /**
+ * Adds specified Association to use this object as source.
+ * Silently replaces the sourceObject in Association with
+ * reference to this object.
+ *
+ * @param association
+ * @throws JAXRException
+ */
public void addAssociation(Association association)
+ throws JAXRException
{
associations.add(association);
+
+ association.setSourceObject(this);
}
public void addAssociations(Collection collection) throws JAXRException
@@ -151,7 +163,8 @@
for (Iterator i = collection.iterator(); i.hasNext();)
{
Association association = (Association) i.next();
- associations.add(association);
+
+ addAssociation(association);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]