private Tag entityToTag(String id, Entity tagEntity) {
    Tag tag = tagFactory.create(id);
    tag.setObjectIri(tagEntity.getString(EMX_TAG_OBJECT_IRI));
    tag.setLabel(tagEntity.getString(EMX_TAG_LABEL));
    tag.setRelationLabel(tagEntity.getString(EMX_TAG_RELATION_LABEL));
    tag.setCodeSystem(tagEntity.getString(EMX_TAG_CODE_SYSTEM));
    tag.setRelationIri(tagEntity.getString(EMX_TAG_RELATION_IRI));

    return tag;
  }
private Tag entityToTag ( String id , Entity tagEntity ) { Tag tag = tagFactory . create ( id ) ; tag . setObjectIri ( tagEntity . getString ( EMX_TAG_OBJECT_IRI ) ) ; tag . setLabel ( tagEntity . getString ( EMX_TAG_LABEL ) ) ; tag . setRelationLabel ( tagEntity . getString ( EMX_TAG_RELATION_LABEL ) ) ; tag . setCodeSystem ( tagEntity . getString ( EMX_TAG_CODE_SYSTEM ) ) ; tag . setRelationIri ( tagEntity . getString ( EMX_TAG_RELATION_IRI ) ) ; return tag ; }
Transforms an {@link Entity} to a {@link Tag}