@Test public void testSelf() throws Exception { DataSet dataSet = exampleDataSet(); DataSetHelper newHelper = DataSetUtils.newHelper(dataSet); Individual<?,?> self = newHelper.self(); assertThat(self.property(URI.create(HAS_TITLE)).hasLiteralValue(Literals.of("self")),equalTo(true)); }
public abstract <T extends Individual<URI,T>> T self();
DataSetHelper { public abstract <T extends Individual<URI,T>> T self(); }
DataSetHelper { public abstract <T extends Individual<URI,T>> T self(); DataSetHelper(); }
DataSetHelper { public abstract <T extends Individual<URI,T>> T self(); 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 Individual<URI,T>> T self(); 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; }