All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.smi.protege.ui.ReferenceRoot Maven / Gradle / Ivy

Go to download

Core code for the Protege ontology editor. Serves as the basis for the Protege-Frames and Protege-OWL editors.

There is a newer version: 3.5.1
Show newest version
package edu.stanford.smi.protege.ui;

import java.util.*;

import edu.stanford.smi.protege.model.*;
import edu.stanford.smi.protege.util.*;

/**
 * Tree Root for "references" between two frames.
 */

public class ReferenceRoot extends LazyTreeRoot {
    private Slot _slot;

    public ReferenceRoot(KnowledgeBase kb, Frame frame, Slot slot) {
        super(CollectionUtilities.createCollection(frame));
        _slot = slot;
    }

    public LazyTreeNode createNode(Object o) {
        return new ReferenceNode(this, (Frame) o, _slot);
    }

    protected Comparator getComparator() {
        return new LazyTreeNodeFrameComparator();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy