public <T extends OWLEntity> OWLEntityCreationSet<T> preview(Class<T> type, String shortName, IRI base) throws OWLEntityCreationException { // There is probably a better way round this. if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).checkpoint(); } try{ return createOWLEntity(type, shortName, base); } catch(OWLEntityCreationException e){ throw e; } finally{ if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).revert(); } } }
public <T extends OWLEntity> OWLEntityCreationSet<T> preview(Class<T> type, String shortName, IRI base) throws OWLEntityCreationException { // There is probably a better way round this. if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).checkpoint(); } try{ return createOWLEntity(type, shortName, base); } catch(OWLEntityCreationException e){ throw e; } finally{ if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).revert(); } } }
public <T extends OWLEntity> OWLEntityCreationSet<T> preview(Class<T> type, String shortName, IRI base) throws OWLEntityCreationException { // There is probably a better way round this. if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).checkpoint(); } try{ return createOWLEntity(type, shortName, base); } catch(OWLEntityCreationException e){ throw e; } finally{ if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).revert(); } } }
public <T extends OWLEntity> OWLEntityCreationSet<T> preview(Class<T> type, String shortName, IRI base) throws OWLEntityCreationException { // There is probably a better way round this. if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).checkpoint(); } try{ return createOWLEntity(type, shortName, base); } catch(OWLEntityCreationException e){ throw e; } finally{ if (getAutoIDGenerator() instanceof Revertable){ ((Revertable)getAutoIDGenerator()).revert(); } } }