/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(this + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException( this + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(this + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException( this + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(this + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException( this + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
public void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
public void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
public void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (totalOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
definition); if (!target.setDefinition(definition, reason)) throw new ElkUnexpectedIndexingException(target);
definition); if (!target.setDefinition(definition, reason)) throw new ElkUnexpectedIndexingException(target);
definition); if (!target.setDefinition(definition, reason)) throw new ElkUnexpectedIndexingException(target);
@Override public boolean addOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.addToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }
@Override public boolean addOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.addToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }
@Override public boolean removeOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.removeToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }
@Override public boolean addOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.addToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }
@Override public boolean removeOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.removeToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }
@Override public boolean removeOccurrence(ModifiableOntologyIndex index) { ElkAxiom reason = getOriginalAxiom(); ModifiableIndexedPropertyChain subPropertyChain = getSubPropertyChain(); ModifiableIndexedObjectProperty superProperty = getSuperProperty(); if (!subPropertyChain.removeToldSuperObjectProperty(superProperty, reason)) return false; if (!superProperty.removeToldSubPropertyChain(subPropertyChain, reason)) { // revert the changes if (!subPropertyChain.addToldSuperObjectProperty(superProperty, reason)) throw new ElkUnexpectedIndexingException(this); return false; } // success return true; }