public Set<IHierarchicalSchemaNode> getParents() { Set<SubsumptionHierarchy.Node> delegates = m_delegate.getParentNodes(); Set<IHierarchicalSchemaNode> nodes = null; if (delegates != null) { nodes = new HashSet<IHierarchicalSchemaNode>(); for (SubsumptionHierarchy.Node node : delegates) { nodes.add(new XHierarchicalSchemaNode(node)); } } return nodes; }
public Set<INamedConcept> getConcepts() { Set<OWLClass> clazzs = m_delegate.getOWLClasses(); Set<INamedConcept> iClazzs = null; if (s_log.isDebugEnabled()) s_log.debug("get concept of node: " + this.toString()); if (clazzs != null) { iClazzs = new HashSet<INamedConcept>(); for (OWLClass clazz : clazzs) { INamedConcept concept = new NamedConcept(clazz.getURI(), m_onto); concept.setDelegate(clazz); iClazzs.add(concept); if (s_log.isDebugEnabled()) s_log.debug("concept found: " + ((OWLClass) clazz).getURI()); } } return iClazzs; }