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); } }
public void setInfoSources(java.util.Collection var) { if (infoSources == null) infoSources = new DefaultPersistibleList(); infoSources.set(var); }
public void setInterpretationsOfMe(java.util.Collection var) { if (interpretationsOfMe == null) interpretationsOfMe = new DefaultPersistibleList(); interpretationsOfMe.set(var); }
public void setRefinements(java.util.Collection var) { if (refinements == null) refinements = new DefaultPersistibleList(); refinements.set(var); }
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); }
public void removeDescribedInstance(Object var) { // System.out.println("remove described instance" // + describedInstances); if (describedInstances != null) describedInstances.removeElement(var); }
public Iterator getParentIterator() { return (parentKeywords.iterator()); }
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); }
public void setDescribedInstances(java.util.Collection var) { if (describedInstances == null) describedInstances = new DefaultPersistibleList(); describedInstances.set(var); }
public void setPar(Keyword keyword) { if (!parentKeywords.contains(keyword)) parentKeywords.add(keyword); }
public void setParents(java.util.Collection var) { if (parentKeywords == null) parentKeywords = new DefaultPersistibleList(); parentKeywords.set(var); }
public Keyword getParentKeyword() { return (Keyword) parentKeywords.firstElement(); }