org.protege.editor.owl.ui.frame.objectproperty.OWLObjectPropertyRangeFrameSectionRow Maven / Gradle / Ivy
The newest version!
package org.protege.editor.owl.ui.frame.objectproperty;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.editor.OWLObjectEditor;
import org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRow;
import org.protege.editor.owl.ui.frame.OWLFrameSection;
import org.semanticweb.owlapi.model.*;
import java.util.Arrays;
import java.util.List;
/**
* Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 29-Jan-2007
*/
public class OWLObjectPropertyRangeFrameSectionRow extends AbstractOWLFrameSectionRow {
public OWLObjectPropertyRangeFrameSectionRow(OWLEditorKit editorKit,
OWLFrameSection section,
OWLOntology ontology,
OWLObjectProperty rootObject, OWLObjectPropertyRangeAxiom axiom) {
super(editorKit, section, ontology, rootObject, axiom);
}
protected OWLObjectEditor getObjectEditor() {
return getOWLEditorKit().getWorkspace().getOWLComponentFactory().getOWLClassDescriptionEditor(getAxiom().getRange(), AxiomType.OBJECT_PROPERTY_RANGE);
}
protected OWLObjectPropertyRangeAxiom createAxiom(OWLClassExpression editedObject) {
return getOWLDataFactory().getOWLObjectPropertyRangeAxiom(getRoot(), editedObject);
}
/**
* Gets a list of objects contained in this row. These objects
* could be placed on the clip board during a copy operation,
* or navigated to etc.
*/
public List getManipulatableObjects() {
return Arrays.asList(getAxiom().getRange());
}
}