@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLOntologyChangeRecord)) { return false; } OWLOntologyChangeRecord other = (OWLOntologyChangeRecord) obj; return ontologyID.equals(other.ontologyID) && data.equals(other.data); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLOntologyChangeRecord)) { return false; } OWLOntologyChangeRecord other = (OWLOntologyChangeRecord) obj; return ontologyID.equals(other.ontologyID) && data.equals(other.data); }
@Override public void visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); ontologyIdChanged = !id.equals(ontologyId); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLOntologyChangeRecord)) { return false; } OWLOntologyChangeRecord other = (OWLOntologyChangeRecord) obj; return ontologyID.equals(other.ontologyID) && data.equals(other.data); }
public void visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); if(!id.equals(ontologyID)) { appliedChanges.add(change); ontologyID = id; } }
@Override public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof ImportedOntologyMetadata)) { return false; } ImportedOntologyMetadata other = (ImportedOntologyMetadata) obj; return this.ontologyId.equals(other.ontologyId) && this.originalDocumentLocation.equals(other.originalDocumentLocation) && this.accessTimestamp == other.accessTimestamp; }
@Override public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof OntologyFrame)) { return false; } OntologyFrame other = (OntologyFrame) obj; return this.subject.equals(other.subject) && this.propertyValueList.equals(other.propertyValueList) && this.shortForm.equals(other.shortForm); }
private boolean isRootOntologySingleton(@Nonnull OWLOntologyID ontologyId) { return rootOntology.getOntologyID().equals(ontologyId) && rootOntology.getImports().isEmpty(); }
public void removeOntology(OWLOntology ontology) { ontologiesByID.remove(ontology.getOntologyID()); ontologyFormatsByOntology.remove(ontology); documentIRIsByID.remove(ontology.getOntologyID()); for (Iterator<OWLImportsDeclaration> it = ontologyIDsByImportsDeclaration.keySet().iterator(); it.hasNext();) { if (ontologyIDsByImportsDeclaration.get(it.next()).equals(ontology.getOntologyID())) { it.remove(); } } resetImportsClosureCache(); }
protected OWLOntologyID checkAlias(OWLOntologyID primaryKey, OWLOntologyID alias) { for (OWLOntologyID primary : listPrimaryKeys()) if (listAliases(primary).contains(alias) && !alias.equals(primary)) return primary; return null; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof OntologyIdData) { OntologyIdData that = (OntologyIdData) o; return (this.browserText.equals(that.getBrowserText())) && (this.object.equals(that.getObject())); } return false; }
@Override public ChangeApplied visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); if (!id.equals(ontologyID)) { // force hashcode recomputation hashCode = 0; ontologyID = id; invalidateOntologyCaches(OWLOntologyImpl.this); return SUCCESSFULLY; } return NO_OPERATION; }
@Override public ChangeApplied visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); if (!id.equals(ontologyID)) { // force hashcode recomputation hashCode = 0; ontologyID = id; invalidateOntologyCaches(OWLOntologyImpl.this); return SUCCESSFULLY; } return NO_OPERATION; }
@Override public ChangeApplied visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); if (!id.equals(ontologyID)) { // force hashcode recomputation hashCode = 0; ontologyID = id; invalidateOntologyCaches(OWLOntologyImpl.this); return SUCCESSFULLY; } return NO_OPERATION; }
@Override public ChangeApplied visit(SetOntologyID change) { OWLOntologyID id = change.getNewOntologyID(); if (!id.equals(ontologyID)) { // force hashcode recomputation hashCode = 0; ontologyID = id; invalidateOntologyCaches(OWLOntologyImpl.this); return SUCCESSFULLY; } return NO_OPERATION; }
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLOntology)) { return false; } OWLOntology other = (OWLOntology) obj; return getOntologyID().equals(other.getOntologyID()); }