use of com.b2international.snowowl.snomed.core.domain.SnomedRelationship in project snow-owl by b2ihealthcare.
the class SnomedRelationshipConverter method toResource.
@Override
protected SnomedRelationship toResource(final SnomedRelationshipIndexEntry input) {
final SnomedRelationship result = new SnomedRelationship();
result.setActive(input.isActive());
result.setCharacteristicTypeId(input.getCharacteristicTypeId());
result.setDestinationNegated(input.isDestinationNegated());
result.setEffectiveTime(toEffectiveTime(input.getEffectiveTime()));
result.setId(input.getId());
result.setModifierId(toRelationshipModifier(input.isUniversal()));
result.setModuleId(input.getModuleId());
result.setIconId(input.getIconId());
result.setReleased(input.isReleased());
result.setRelationshipGroup(input.getRelationshipGroup());
result.setUnionGroup(input.getUnionGroup());
result.setDestinationId(input.getDestinationId());
result.setValueAsObject(input.getValueAsObject());
result.setSourceId(input.getSourceId());
result.setTypeId(input.getTypeId());
result.setScore(input.getScore());
if (input.getMemberOf() != null) {
result.setMemberOf(ImmutableSortedSet.copyOf(input.getMemberOf()));
}
if (input.getActiveMemberOf() != null) {
result.setActiveMemberOf(ImmutableSortedSet.copyOf(input.getActiveMemberOf()));
}
return result;
}
Aggregations