/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(URI id) { return new IndividualPropertyHelperImpl(new NullIndividualHelper(), this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Term id) { return new IndividualPropertyHelperImpl(new NullIndividualHelper(), this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(String id) { return new IndividualPropertyHelperImpl(new NullIndividualHelper(), this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withLiteral(Object rawValue) { return new IndividualPropertyHelperImpl(new NullIndividualHelper(), this); }
NullPropertyHelper(URI propertyId) { this.propertyId = propertyId; this.iph = new IndividualPropertyHelperImpl(new NullIndividualHelper(), this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(String id) { if(id!=null) { withIndividual(URI.create(id)); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId, String path) { if(id!=null) { return withIndividual(id, managerId, URI.create(path)); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Term id) { if(id!=null) { withIndividual(id.qualifiedEntityName()); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withLiteral(Object rawValue) { if(rawValue!=null) { Literal<?> value = Literals.newLiteral(rawValue); this.individual.addValue(this.propertyId,value); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @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); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(URI id) { if(id!=null) { Individual<?,?> srcIndividual=null; if(id.isAbsolute()) { srcIndividual=this.individual.dataSet().individual(id, ExternalIndividual.class); } else { srcIndividual=this.individual.dataSet().individual(id, NewIndividual.class); } this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId) { if(id!=null) { Individual<?,?> srcIndividual = this.individual. dataSet(). individual( ManagedIndividualId.createId(id, managerId), ManagedIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId, URI path) { if(id!=null) { ManagedIndividualId parentId=ManagedIndividualId.createId(id,managerId); RelativeIndividualId individualId=RelativeIndividualId.createId(parentId, path); Individual<?,?> srcIndividual= this.individual. dataSet(). individual( individualId, RelativeIndividual.class); this.individual.addValue(this.propertyId,srcIndividual); } return new IndividualPropertyHelperImpl(new IndividualHelperImpl(this.individual),this); }