protected int compareObjectOfSameType(OWLObject object) { if (object == this) { return 0; } OWLOntology other = (OWLOntology) object; return getOntologyID().compareTo(other.getOntologyID()); }
public int compare(OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o1, OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o2) { if (o1.isInferred()) { if (!o2.isInferred()) { return 1; } } else { if (o2.isInferred()) { return -1; } } int val = getOWLModelManager().getOWLObjectComparator().compare(o1.getAxiom(), o2.getAxiom()); if(val == 0) { return o1.getOntology().getOntologyID().compareTo(o2.getOntology().getOntologyID()); } else { return val; } } };
public int compare(OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o1, OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o2) { if (o1.isInferred()) { if (!o2.isInferred()) { return 1; } } else { if (o2.isInferred()) { return -1; } } int val = getOWLModelManager().getOWLObjectComparator().compare(o1.getAxiom(), o2.getAxiom()); if(val == 0) { return o1.getOntology().getOntologyID().compareTo(o2.getOntology().getOntologyID()); } else { return val; } } };
public int compare(OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o1, OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o2) { if (o1.isInferred()) { if (!o2.isInferred()) { return 1; } } else { if (o2.isInferred()) { return -1; } } int val = getOWLModelManager().getOWLObjectComparator().compare(o1.getAxiom(), o2.getAxiom()); if(val == 0) { return o1.getOntology().getOntologyID().compareTo(o2.getOntology().getOntologyID()); } else { return val; } } };
public int compare(OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o1, OWLFrameSectionRow<OWLClassExpression, OWLSubClassOfAxiom, OWLClassExpression> o2) { if (o1.isInferred()) { if (!o2.isInferred()) { return 1; } } else { if (o2.isInferred()) { return -1; } } int val = getOWLModelManager().getOWLObjectComparator().compare(o1.getAxiom(), o2.getAxiom()); if(val == 0) { return o1.getOntology().getOntologyID().compareTo(o2.getOntology().getOntologyID()); } else { return val; } } };
OWLOntologyID newId1 = ((SetOntologyIDData) changeData1).getNewId(); OWLOntologyID newId2 = ((SetOntologyIDData) changeData2).getNewId(); return newId1.compareTo(newId2);