コード例 #1
0
 public void unlink(oncotcap.datalayer.Persistible relatedPersistible) {
   if (relatedPersistible instanceof Keyword) {
     // 						System.out.println("removing the keyword p/c" + relatedPersistible);
     if (children != null) children.remove(relatedPersistible);
     if (parentKeywords != null) parentKeywords.remove(relatedPersistible);
   } else {
     // 					System.out.println("removing the keyword described instance"
     // 															 + relatedPersistible
     // 															 + " from list " + describedInstances);
     if (describedInstances != null) describedInstances.remove(relatedPersistible);
   }
 }
コード例 #2
0
 public void setInfoSources(java.util.Collection var) {
   if (infoSources == null) infoSources = new DefaultPersistibleList();
   infoSources.set(var);
 }
コード例 #3
0
 public void setInterpretationsOfMe(java.util.Collection var) {
   if (interpretationsOfMe == null) interpretationsOfMe = new DefaultPersistibleList();
   interpretationsOfMe.set(var);
 }
コード例 #4
0
 public void setRefinements(java.util.Collection var) {
   if (refinements == null) refinements = new DefaultPersistibleList();
   refinements.set(var);
 }
コード例 #5
0
 public void setAssessments(java.util.Collection var) {
   if (assessments == null) assessments = new DefaultPersistibleList();
   assessments.set(var);
 }
コード例 #6
0
 public void setConfidenceAssessments(java.util.Collection var) {
   if (confidenceAssessments == null) confidenceAssessments = new DefaultPersistibleList();
   confidenceAssessments.set(var);
 }
コード例 #7
0
 public void removeDescribedInstance(Object var) {
   // 				System.out.println("remove described instance"
   // 												 + describedInstances);
   if (describedInstances != null) describedInstances.removeElement(var);
 }
コード例 #8
0
 public Iterator getParentIterator() {
   return (parentKeywords.iterator());
 }
コード例 #9
0
 public void addDescribedInstance(Object var) {
   if (describedInstances == null) describedInstances = new DefaultPersistibleList();
   if (!describedInstances.contains(var)) describedInstances.addElement(var);
   // 			System.out.println("add described instance"
   // 												 + describedInstances);
 }
コード例 #10
0
 public void setDescribedInstances(java.util.Collection var) {
   if (describedInstances == null) describedInstances = new DefaultPersistibleList();
   describedInstances.set(var);
 }
コード例 #11
0
 public void setPar(Keyword keyword) {
   if (!parentKeywords.contains(keyword)) parentKeywords.add(keyword);
 }
コード例 #12
0
 public void setParents(java.util.Collection var) {
   if (parentKeywords == null) parentKeywords = new DefaultPersistibleList();
   parentKeywords.set(var);
 }
コード例 #13
0
 public Keyword getParentKeyword() {
   return (Keyword) parentKeywords.firstElement();
 }