@Test public void testWithIndividual$nullName() { DataSet data=exampleDataSet(); Individual<?,?> individual = data.individualOfId(BLANK_NODE); PropertyHelperImpl sut = new PropertyHelperImpl(RDF.TYPE.as(URI.class), individual); assertThat(sut.withIndividual((Name<?>)null),notNullValue()); }
@Override public IndividualPropertyHelper withIndividual(Name<?> id) { if(id!=null) { @SuppressWarnings("rawtypes") Individual<?,?> srcIndividual = this.individual.dataSet().individual((Name)id, LocalIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
PropertyHelperImpl implements PropertyHelper { @Override public IndividualPropertyHelper withIndividual(Name<?> id) { if(id!=null) { @SuppressWarnings("rawtypes") Individual<?,?> srcIndividual = this.individual.dataSet().individual((Name)id, LocalIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); } }
PropertyHelperImpl implements PropertyHelper { @Override public IndividualPropertyHelper withIndividual(Name<?> id) { if(id!=null) { @SuppressWarnings("rawtypes") Individual<?,?> srcIndividual = this.individual.dataSet().individual((Name)id, LocalIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); } PropertyHelperImpl(URI propertyId, Individual<?,?> individual); }
PropertyHelperImpl implements PropertyHelper { @Override public IndividualPropertyHelper withIndividual(Name<?> id) { if(id!=null) { @SuppressWarnings("rawtypes") Individual<?,?> srcIndividual = this.individual.dataSet().individual((Name)id, LocalIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); } PropertyHelperImpl(URI propertyId, Individual<?,?> individual); @Override T firstValue(final Class<? extends T> aClazz); @Override IndividualHelper firstIndividual(); @Override T firstIndividual(final Class<? extends S> clazz); @Override IndividualPropertyHelper withLiteral(Object rawValue); @Override IndividualPropertyHelper withIndividual(Name<?> id); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId, URI path); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId, String path); @Override IndividualPropertyHelper withIndividual(URI id); @Override IndividualPropertyHelper withIndividual(String id); @Override IndividualPropertyHelper withIndividual(Term id); }
PropertyHelperImpl implements PropertyHelper { @Override public IndividualPropertyHelper withIndividual(Name<?> id) { if(id!=null) { @SuppressWarnings("rawtypes") Individual<?,?> srcIndividual = this.individual.dataSet().individual((Name)id, LocalIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); } PropertyHelperImpl(URI propertyId, Individual<?,?> individual); @Override T firstValue(final Class<? extends T> aClazz); @Override IndividualHelper firstIndividual(); @Override T firstIndividual(final Class<? extends S> clazz); @Override IndividualPropertyHelper withLiteral(Object rawValue); @Override IndividualPropertyHelper withIndividual(Name<?> id); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId, URI path); @Override IndividualPropertyHelper withIndividual(Name<?> id, String managerId, String path); @Override IndividualPropertyHelper withIndividual(URI id); @Override IndividualPropertyHelper withIndividual(String id); @Override IndividualPropertyHelper withIndividual(Term id);  }