Esempio n. 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);
   }
 }
Esempio n. 2
0
 public void setInfoSources(java.util.Collection var) {
   if (infoSources == null) infoSources = new DefaultPersistibleList();
   infoSources.set(var);
 }
Esempio n. 3
0
 public void setInterpretationsOfMe(java.util.Collection var) {
   if (interpretationsOfMe == null) interpretationsOfMe = new DefaultPersistibleList();
   interpretationsOfMe.set(var);
 }
Esempio n. 4
0
 public void setRefinements(java.util.Collection var) {
   if (refinements == null) refinements = new DefaultPersistibleList();
   refinements.set(var);
 }
Esempio n. 5
0
 public void setAssessments(java.util.Collection var) {
   if (assessments == null) assessments = new DefaultPersistibleList();
   assessments.set(var);
 }
 public void setConfidenceAssessments(java.util.Collection var) {
   if (confidenceAssessments == null) confidenceAssessments = new DefaultPersistibleList();
   confidenceAssessments.set(var);
 }
Esempio n. 7
0
 public void removeDescribedInstance(Object var) {
   // 				System.out.println("remove described instance"
   // 												 + describedInstances);
   if (describedInstances != null) describedInstances.removeElement(var);
 }
Esempio n. 8
0
 public Iterator getParentIterator() {
   return (parentKeywords.iterator());
 }
Esempio n. 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);
 }
Esempio n. 10
0
 public void setDescribedInstances(java.util.Collection var) {
   if (describedInstances == null) describedInstances = new DefaultPersistibleList();
   describedInstances.set(var);
 }
Esempio n. 11
0
 public void setPar(Keyword keyword) {
   if (!parentKeywords.contains(keyword)) parentKeywords.add(keyword);
 }
Esempio n. 12
0
 public void setParents(java.util.Collection var) {
   if (parentKeywords == null) parentKeywords = new DefaultPersistibleList();
   parentKeywords.set(var);
 }
Esempio n. 13
0
 public Keyword getParentKeyword() {
   return (Keyword) parentKeywords.firstElement();
 }