Examples of ValidationRuleBuilder


Examples of ca.uhn.hl7v2.validation.builder.ValidationRuleBuilder

  private static final EncodingRule[] EMPTY_ENCODING_RULES_ARRAY = new EncodingRule[0];

  private ValidationContext context;

  public DefaultValidator(HapiContext context) {
    ValidationRuleBuilder builder = context.getDefaultValidationRuleBuilder();
    this.context = (builder != null ?
        ValidationContextFactory.fromBuilder(builder) :
        context.getDefaultValidationContext());
  }
View Full Code Here

Examples of ca.uhn.hl7v2.validation.builder.ValidationRuleBuilder

  public static void main(String[] args) {
   
    @SuppressWarnings("serial")
    final ValidationContextImpl context = new ValidationContextImpl(
      new ValidationRuleBuilder() {

      protected void configure() {
        forVersion(Version.V22)
          .message("ADT", "*")
            .description("blorg gedönds")
View Full Code Here

Examples of ca.uhn.hl7v2.validation.builder.ValidationRuleBuilder

   */
  public Parser(HapiContext context) {
    super();
    this.myFactory = context.getDefaultModelClassFactory();
    this.myParserConfiguration = context.getDefaultParserConfiguration();
    ValidationRuleBuilder builder = context.getDefaultValidationRuleBuilder();
    setValidationContext(builder != null ?
        ValidationContextFactory.fromBuilder(builder) :
        context.getDefaultValidationContext());
  }
View Full Code Here

Examples of ca.uhn.hl7v2.validation.builder.ValidationRuleBuilder

        defaultValidationContext = ValidationContextFactory.defaultValidation();
        defaultContext = new DefaultHapiContext(defaultValidationContext);
        // we validate separately, not during parsing or rendering
        defaultContext.getParserConfiguration().setValidating(false);

        ValidationRuleBuilder builder = new ValidationRuleBuilder() {
            @Override
            protected void configure() {
                forVersion(Version.V24)
                        .message("ADT", "A01")
                        .terser("PID-8", not(empty()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.