public synchronized PipeParser getPipeParser() { if (pipeParser == null) { pipeParser = new PipeParser(this); } return pipeParser; }
public synchronized PipeParser getPipeParser() { if (pipeParser == null) { pipeParser = new PipeParser(this); } return pipeParser; }
/** * <p>Returns the parser to be used when parse/encode methods are called on this * Message, as well as its children. The default value is a new {@link PipeParser}.</p> * * <p>Serialization note: The message parser is marked as transient, so it will not * survive serialization.</p> */ public Parser getParser() { if (myParser == null) { myParser = new PipeParser(); } return myParser; }
/** * <p>Returns the parser to be used when parse/encode methods are called on this * Message, as well as its children. The default value is a new {@link PipeParser}.</p> * * <p>Serialization note: The message parser is marked as transient, so it will not * survive serialization.</p> */ public Parser getParser() { if (myParser == null) { myParser = new PipeParser(); } return myParser; }
/** * Creates a new instance of SimpleServer that listens on the given port, * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}. */ public SimpleServer(int port) { this(port, new MinLowerLayerProtocol(), new PipeParser(), false); }
/** * Creates a new instance of SimpleServer that listens on the given port, * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}. */ public SimpleServer(int port) { this(port, new MinLowerLayerProtocol(), new PipeParser(), false); }
/** * Creates a new instance of SimpleServer that listens on the given port, * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}. */ public SimpleServer(int port, boolean tls) { this(port, new MinLowerLayerProtocol(), new PipeParser(), tls); }
/** * Creates a new instance of SimpleServer that listens on the given port, * using the {@link MinLowerLayerProtocol} and a standard {@link PipeParser}. */ public SimpleServer(int port, boolean tls) { this(port, new MinLowerLayerProtocol(), new PipeParser(), tls); }
/** * Creates a parser for the given transaction and HL7 version. * * @deprecated the correct parser should be obtained from the {@link ca.uhn.hl7v2.HapiContext} * that has been configured with the correct {@link ca.uhn.hl7v2.parser.ModelClassFactory}. */ public static Parser createParser(String transaction, String version) { return new PipeParser(createFactory(transaction, version)); }
PipeParser parser = new PipeParser(); IMessage hl7Message = parser.Parse(hl7); IStructure msa = hl7Message.GetStructure("MSA"); IType ackCode = ((ISegment)msa).GetField(1)[0]; MessageBox.Show(((AbstractPrimitive)ackCode).Value);
public TwoPortService(int inboundPort, int outboundPort) { this(new PipeParser(), new MinLowerLayerProtocol(), inboundPort, outboundPort, false); }
public TwoPortService(int inboundPort, int outboundPort, boolean tls) { this(new PipeParser(), new MinLowerLayerProtocol(), inboundPort, outboundPort, tls); }
public TwoPortService(int inboundPort, int outboundPort, boolean tls) { this(new PipeParser(), new MinLowerLayerProtocol(), inboundPort, outboundPort, tls); }
/** * @param context the HapiContext to be used */ public GenericParser(HapiContext context) { super(context); pipeParser = new PipeParser(context); xmlParser = new DefaultXMLParser(context); setPipeParserAsPrimary(); }
/** * Creates a new instance of GenericParser * * @param theFactory custom factory to use for model class lookup */ public GenericParser(ModelClassFactory theFactory) { super(theFactory); pipeParser = new PipeParser(theFactory); xmlParser = new DefaultXMLParser(theFactory); setPipeParserAsPrimary(); }
/** * @param context the HapiContext to be used */ public GenericParser(HapiContext context) { super(context); pipeParser = new PipeParser(context); xmlParser = new DefaultXMLParser(context); setPipeParserAsPrimary(); }
/** * Creates a new instance of GenericParser * * @param theFactory custom factory to use for model class lookup */ public GenericParser(ModelClassFactory theFactory) { super(theFactory); pipeParser = new PipeParser(theFactory); xmlParser = new DefaultXMLParser(theFactory); setPipeParserAsPrimary(); }
/** * Convenience factory method which returns an instance that has a new * {@link DefaultHapiContext} initialized with a {@link NoValidation * NoValidation validation context}. * * @return PipeParser with disabled validation */ public static PipeParser getInstanceWithNoValidation() { HapiContext context = new DefaultHapiContext(); context.setValidationContext(ValidationContextFactory.noValidation()); return new PipeParser(context); }
/** * Convenience factory method which returns an instance that has a new * {@link DefaultHapiContext} initialized with a {@link NoValidation * NoValidation validation context}. * * @return PipeParser with disabled validation */ public static PipeParser getInstanceWithNoValidation() { HapiContext context = new DefaultHapiContext(); context.setValidationContext(ValidationContextFactory.noValidation()); return new PipeParser(context); }
@Override public void initialize(Arguments args) throws DirectiveParseException { this.column = ((ColumnName) args.value("column")).value(); if (args.contains("depth")) { this.depth = ((Numeric) args.value("depth")).value().intValue(); } else { this.depth = Integer.MAX_VALUE; } context = new DefaultHapiContext(); context.setValidationContext(new NoValidation()); ModelClassFactory modelClassFactory = new GenericModelClassFactory(); parser = new PipeParser(modelClassFactory); parser.getParserConfiguration().setAllowUnknownVersions(true); }