001package org.hl7.fhir.convertors.advisors.impl; 002 003import java.util.ArrayList; 004import java.util.Collections; 005import java.util.List; 006 007import javax.annotation.Nonnull; 008 009import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor40; 010import org.hl7.fhir.r4.model.Expression; 011import org.hl7.fhir.r4.model.Type; 012 013public class BaseAdvisor_14_40 extends BaseAdvisor40<org.hl7.fhir.dstu2016may.model.Extension> { 014 015 private final List<Class<?>> ignoredExtensionTypes = new ArrayList<>(Collections.singletonList(Expression.class)); 016 017 public BaseAdvisor_14_40() { 018 } 019 020 public BaseAdvisor_14_40(Boolean failFast) { 021 this.failFast = failFast; 022 } 023 024 025 public boolean ignoreExtension(@Nonnull String path, 026 @Nonnull String url) { 027 // no globally ignored extensions here. 028 return false; 029 } 030 031 public boolean ignoreType(@Nonnull String path, @Nonnull Type type) { 032 return ignoredExtensionTypes.contains(type.getClass()); 033 } 034}