summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/collection/DependencyDescription.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2012-06-22 10:11:17 +0200
committerAndrew Branson <andrew.branson@cern.ch>2012-06-22 10:11:17 +0200
commit0baa46d5ee4f62adb58f436af4978d9468454870 (patch)
treecb88cda1ed564b8bb445fd4180728fd0db25192f /src/main/java/com/c2kernel/collection/DependencyDescription.java
parente0b01f55e2be314ee60df092aa75f34c5f4cb8f2 (diff)
Modules and entitycreation support Aggregations, collection properties
and class identifiers
Diffstat (limited to 'src/main/java/com/c2kernel/collection/DependencyDescription.java')
-rw-r--r--src/main/java/com/c2kernel/collection/DependencyDescription.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/c2kernel/collection/DependencyDescription.java b/src/main/java/com/c2kernel/collection/DependencyDescription.java
index 547a286..681e98b 100644
--- a/src/main/java/com/c2kernel/collection/DependencyDescription.java
+++ b/src/main/java/com/c2kernel/collection/DependencyDescription.java
@@ -1,5 +1,6 @@
package com.c2kernel.collection;
+import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.property.PropertyDescriptionList;
import com.c2kernel.property.PropertyUtility;
import com.c2kernel.utils.CastorHashMap;
@@ -17,7 +18,7 @@ public class DependencyDescription extends Dependency implements CollectionDescr
}
@Override
- public Collection<DependencyMember> newInstance() {
+ public Collection<DependencyMember> newInstance() throws ObjectNotFoundException{
String depName = getName().replaceFirst("\'$", ""); // HACK: Knock the special 'prime' off the end for the case of descriptions of descriptions
Dependency newDep = new Dependency(depName);
if (mMembers.list.size() == 1) { // constrain the members based on the property description