001package org.hl7.fhir.common.hapi.validation.support;
002
003import ca.uhn.fhir.context.FhirContext;
004import ca.uhn.fhir.context.support.IValidationSupport;
005import org.apache.commons.lang3.Validate;
006
007public abstract class BaseValidationSupport implements IValidationSupport {
008        protected final FhirContext myCtx;
009
010        /**
011         * Constructor
012         */
013        public BaseValidationSupport(FhirContext theFhirContext) {
014                Validate.notNull(theFhirContext, "theFhirContext must not be null");
015                myCtx = theFhirContext;
016        }
017
018        @Override
019        public FhirContext getFhirContext() {
020                return myCtx;
021        }
022}