cdm.base.staticdata.party.processor.BuyerMappingProcessor Maven / Gradle / Ivy
package cdm.base.staticdata.party.processor;
import cdm.base.staticdata.party.BuyerSeller;
import cdm.base.staticdata.party.CounterpartyRoleEnum;
import com.regnosys.rosetta.common.translation.MappingContext;
import com.regnosys.rosetta.common.translation.Path;
import com.rosetta.model.lib.RosettaModelObjectBuilder;
import com.rosetta.model.lib.path.RosettaPath;
import java.util.List;
import java.util.Optional;
import java.util.function.Consumer;
/**
* FpML mapping processor.
*/
@SuppressWarnings("unused")
public class BuyerMappingProcessor extends BuyerSellerMappingProcessor {
public BuyerMappingProcessor(RosettaPath modelPath, List synonymPaths, MappingContext mappingContext) {
super(modelPath, synonymPaths, mappingContext);
}
@Override
protected Optional> getSetter(RosettaModelObjectBuilder builder) {
if (builder instanceof BuyerSeller.BuyerSellerBuilder) {
return Optional.of(((BuyerSeller.BuyerSellerBuilder) builder)::setBuyer);
} else {
return Optional.empty();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy