@Test public void testReplacesBlankNode() throws Exception { DataSet dataSet = exampleDataSet(); Individual<?,?> original = dataSet.individualOfId(BLANK_NODE); Individual<?,?> individual= DataSetUtils. newHelper(dataSet). replace( original.id(), managedIndividualId("other","managerId"), ManagedIndividual.class); assertIsProperlyRenamed(dataSet, original, individual, "bnode"); }
public abstract <T extends Serializable, S extends Individual<T, S>> S replace(Serializable from, T to, Class<? extends S> clazz);
DataSetHelper { public abstract <T extends Serializable, S extends Individual<T, S>> S replace(Serializable from, T to, Class<? extends S> clazz); }
DataSetHelper { public abstract <T extends Serializable, S extends Individual<T, S>> S replace(Serializable from, T to, Class<? extends S> clazz); DataSetHelper(); }
DataSetHelper { public abstract <T extends Serializable, S extends Individual<T, S>> S replace(Serializable from, T to, Class<? extends S> clazz); DataSetHelper(); abstract S replace(Serializable from, T to, Class<? extends S> clazz); abstract ManagedIndividual manage(ManagedIndividualId id); abstract T self(); abstract T relative(URI path); abstract IndividualHelper externalIndividual(URI uri); abstract IndividualHelper managedIndividual(Name<?> name, String managerId); abstract IndividualHelper relativeIndividual(Name<?> name, String managerId, URI path); abstract IndividualHelper localIndividual(Name<?> name); }
DataSetHelper { public abstract <T extends Serializable, S extends Individual<T, S>> S replace(Serializable from, T to, Class<? extends S> clazz); DataSetHelper(); abstract S replace(Serializable from, T to, Class<? extends S> clazz); abstract ManagedIndividual manage(ManagedIndividualId id); abstract T self(); abstract T relative(URI path); abstract IndividualHelper externalIndividual(URI uri); abstract IndividualHelper managedIndividual(Name<?> name, String managerId); abstract IndividualHelper relativeIndividual(Name<?> name, String managerId, URI path); abstract IndividualHelper localIndividual(Name<?> name); static final URI SELF; }