static ParserState<TagList> getPreTagListInstance(IParser theParser, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) { ParserState<TagList> retVal = new ParserState<TagList>(theParser, theContext, theJsonMode, theErrorHandler); retVal.push(retVal.new PreTagListState()); return retVal; }
/** * @param theResourceType * May be null */ static <T extends IBaseResource> ParserState<T> getPreResourceInstance(IParser theParser, Class<T> theResourceType, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) throws DataFormatException { ParserState<T> retVal = new ParserState<T>(theParser, theContext, theJsonMode, theErrorHandler); if (theResourceType == null) { if (theContext.getVersion().getVersion().isRi()) { retVal.push(retVal.new PreResourceStateHl7Org(theResourceType)); } else { retVal.push(retVal.new PreResourceStateHapi(theResourceType)); } } else { if (IResource.class.isAssignableFrom(theResourceType)) { retVal.push(retVal.new PreResourceStateHapi(theResourceType)); } else { retVal.push(retVal.new PreResourceStateHl7Org(theResourceType)); } } return retVal; }
static ParserState<TagList> getPreTagListInstance(IParser theParser, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) { ParserState<TagList> retVal = new ParserState<TagList>(theParser, theContext, theJsonMode, theErrorHandler); retVal.push(retVal.new PreTagListState()); return retVal; }
/** * @param theResourceType * May be null */ static <T extends IBaseResource> ParserState<T> getPreResourceInstance(IParser theParser, Class<T> theResourceType, FhirContext theContext, boolean theJsonMode, IParserErrorHandler theErrorHandler) throws DataFormatException { ParserState<T> retVal = new ParserState<T>(theParser, theContext, theJsonMode, theErrorHandler); if (theResourceType == null) { if (theContext.getVersion().getVersion().isRi()) { retVal.push(retVal.new PreResourceStateHl7Org(theResourceType)); } else { retVal.push(retVal.new PreResourceStateHapi(theResourceType)); } } else { if (IResource.class.isAssignableFrom(theResourceType)) { retVal.push(retVal.new PreResourceStateHapi(theResourceType)); } else { retVal.push(retVal.new PreResourceStateHl7Org(theResourceType)); } } return retVal; }