public MappingSetInfoBean(MappingSetInfo info) { id = info.getIntId(); source = DataSetInfoBean.asBean(info.getSource()); predicate = info.getPredicate(); target = DataSetInfoBean.asBean(info.getTarget()); justification = info.getJustification(); mappingResource = info.getMappingResource(); mappingSource = info.getMappingSource(); symmetric = info.getSymmetric(); numberOfLinks = info.getNumberOfLinks(); numberOfSources = info.getNumberOfSources(); numberOfTargets = info.getNumberOfTargets(); }
public MappingSetInfo asMappingSetInfo() { return new MappingSetInfo( getId(), DataSetInfoBean.asDataSetInfo(getSource()), getPredicate(), DataSetInfoBean.asDataSetInfo(getTarget()), getJustification(), getMappingResource(), getMappingSource(), getSymmetric(), getNumberOfLinks(), getNumberOfSources(), getNumberOfTargets()); }