@Test public void removeIgnorableValue() throws Exception { final Value[] ignorableValues = { buildLiteral(randomString()), buildBNode(randomString()) }; for (final Value value : ignorableValues) { _cut.removeValue(value, _isPredicate); verify(_decoratee).removeValue(value, _isPredicate); } }
@Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value instanceof URI && contains(((URI) value).getNamespace())) { final String n3 = NTriplesUtil.toNTriplesString(value); _index.remove(n3); } else { _decoratee.removeValue(value, p); } }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value instanceof URI && contains(((URI) value).getNamespace())) { final String n3 = NTriplesUtil.toNTriplesString(value); _index.remove(n3); } else { _decoratee.removeValue(value, p); } } }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value instanceof URI && contains(((URI) value).getNamespace())) { final String n3 = NTriplesUtil.toNTriplesString(value); _index.remove(n3); } else { _decoratee.removeValue(value, p); } } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value instanceof URI && contains(((URI) value).getNamespace())) { final String n3 = NTriplesUtil.toNTriplesString(value); _index.remove(n3); } else { _decoratee.removeValue(value, p); } } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); @Override void initialiseInternal(final DataAccessLayerFactory factory); @Override void removeValue(final Value value, final boolean p); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override long getIdKnownURIsHitsCount(); @Override long getValueKnownURIsHitsCount(); }
KnownURIsDictionary extends SingleIndexValueDictionary implements ManageableKnownURIsDictionary { @Override public void removeValue(final Value value, final boolean p) throws DataAccessLayerException { if (value instanceof URI && contains(((URI) value).getNamespace())) { final String n3 = NTriplesUtil.toNTriplesString(value); _index.remove(n3); } else { _decoratee.removeValue(value, p); } } KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee);  KnownURIsDictionary(final String id, final ITopLevelDictionary decoratee, final String ... domains); @Override void initialiseInternal(final DataAccessLayerFactory factory); @Override void removeValue(final Value value, final boolean p); @Override boolean isBNode(final byte[] id); @Override boolean isLiteral(final byte[] id); @Override boolean isResource(final byte[] id); @Override long getIdKnownURIsHitsCount(); @Override long getValueKnownURIsHitsCount();  }