/** * For backwards compatibility, always returns a new instance of * {@link ReportingValidationExceptionHandler} */ @Override protected ValidationExceptionHandler<Boolean> initializeHandler() { return new ReportingValidationExceptionHandler(theFailOnErrorFlag); }
/** * If the validation failed, throws Exception or returns <code>false</code>, * depending on {link {@link #throwFirstException}. * * @throws HL7Exception if validation has failed and * {@link #throwFirstException} is true * @see ca.uhn.hl7v2.validation.DefaultValidationExceptionHandler#result() */ public Boolean result() throws HL7Exception { if (hasFailed() && throwFirstException) throw new HL7Exception(firstException.getMessage(), firstException); return !hasFailed(); }
/** * If the validation failed, throws Exception or returns <code>false</code>, * depending on {link {@link #throwFirstException}. * * @throws HL7Exception if validation has failed and * {@link #throwFirstException} is true * @see ca.uhn.hl7v2.validation.DefaultValidationExceptionHandler#result() */ public Boolean result() throws HL7Exception { if (hasFailed() && throwFirstException) throw new HL7Exception(firstException.getMessage(), firstException); return !hasFailed(); }
/** * For backwards compatibility, always returns a new instance of * {@link ReportingValidationExceptionHandler} */ @Override protected ValidationExceptionHandler<Boolean> initializeHandler() { return new ReportingValidationExceptionHandler(theFailOnErrorFlag); }
public ValidationExceptionHandler<Boolean> getNewInstance(HapiContext context) { return new ReportingValidationExceptionHandler(throwFirstException); }
public ValidationExceptionHandler<Boolean> getNewInstance(HapiContext context) { return new ReportingValidationExceptionHandler(throwFirstException); }
public DefaultHapiContext(ParserConfiguration parserConfiguration, ValidationContext validationContext, ModelClassFactory modelClassFactory) { VersionLogger.init(); setParserConfiguration(parserConfiguration); setValidationContext(validationContext); setModelClassFactory(modelClassFactory); setLowerLayerProtocol(new MinLowerLayerProtocol(false)); setSocketFactory(new StandardSocketFactory()); setValidationExceptionHandlerFactory(new ReportingValidationExceptionHandler(true)); setProfileStore(ProfileStoreFactory.getProfileStore()); setCodeStoreRegistry(new DefaultCodeStoreRegistry()); setServerConfiguration(new ServerConfiguration()); }
public DefaultHapiContext(ParserConfiguration parserConfiguration, ValidationContext validationContext, ModelClassFactory modelClassFactory) { VersionLogger.init(); setParserConfiguration(parserConfiguration); setValidationContext(validationContext); setModelClassFactory(modelClassFactory); setLowerLayerProtocol(new MinLowerLayerProtocol(false)); setSocketFactory(new StandardSocketFactory()); setValidationExceptionHandlerFactory(new ReportingValidationExceptionHandler(true)); setProfileStore(ProfileStoreFactory.getProfileStore()); setCodeStoreRegistry(new DefaultCodeStoreRegistry()); setServerConfiguration(new ServerConfiguration()); }