diff --git a/.classpath b/.classpath
deleted file mode 100644
index 8778ddd58a3..00000000000
--- a/.classpath
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/.gitignore b/.gitignore
index 7c4ffb73ca9..09734b19d32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -137,9 +137,11 @@ local.properties
.cproject
# JDT-specific (Eclipse Java Development Tools)
-#.project
-#.settings/
-#.classpath
+**/.settings
+**/.target
+**/.project
+**/.classpath
+
# PDT-specific
.buildpath
diff --git a/.project b/.project
deleted file mode 100644
index e65da4447c0..00000000000
--- a/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- hapi-fhir
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.ui.externaltools.ExternalToolBuilder
- full,incremental,
-
-
- LaunchConfigHandle
- <project>/.externalToolBuilders/org.eclipse.m2e.core.maven2Builder.launch
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/.travis.yml b/.travis.yml
index 048e6b014cb..026f024b581 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,4 +20,4 @@ before_script:
script:
# - mvn -e -B clean install && cd hapi-fhir-ra && mvn -e -B -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID clean test jacoco:report coveralls:report
- - mvn -Dci=true -e -B -P ALLMODULES,NOPARALLEL clean install && cd hapi-fhir-jacoco && mvn -e -B -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID jacoco:report coveralls:report
+ - mvn -Dci=true -e -B -P ALLMODULES,NOPARALLEL,ERRORPRONE clean install && cd hapi-fhir-jacoco && mvn -e -B -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID jacoco:report coveralls:report
diff --git a/HELPWANTED.md b/HELPWANTED.md
new file mode 100644
index 00000000000..5ef933eda90
--- /dev/null
+++ b/HELPWANTED.md
@@ -0,0 +1,8 @@
+# Help Wanted
+
+This page is a work in progress!
+
+It serves as a place to list potential help a new volunteer could offer.
+
+* Investigate adding support for FHIR's RDF (Turtle) encoding to HAPI
+
diff --git a/examples/.settings/org.eclipse.core.resources.prefs b/example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.core.resources.prefs
similarity index 100%
rename from examples/.settings/org.eclipse.core.resources.prefs
rename to example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.core.resources.prefs
diff --git a/hapi-fhir-android/.settings/org.eclipse.jdt.core.prefs b/example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.jdt.core.prefs
similarity index 100%
rename from hapi-fhir-android/.settings/org.eclipse.jdt.core.prefs
rename to example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.jdt.core.prefs
diff --git a/examples/.settings/org.eclipse.m2e.core.prefs b/example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.m2e.core.prefs
similarity index 100%
rename from examples/.settings/org.eclipse.m2e.core.prefs
rename to example-projects/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.m2e.core.prefs
diff --git a/hapi-fhir-base-example-embedded-ws/pom.xml b/example-projects/hapi-fhir-base-example-embedded-ws/pom.xml
similarity index 71%
rename from hapi-fhir-base-example-embedded-ws/pom.xml
rename to example-projects/hapi-fhir-base-example-embedded-ws/pom.xml
index a057289c490..ce746e8ae97 100644
--- a/hapi-fhir-base-example-embedded-ws/pom.xml
+++ b/example-projects/hapi-fhir-base-example-embedded-ws/pom.xml
@@ -5,6 +5,7 @@
ca.uhn.hapi.fhirhapi-fhir2.3-SNAPSHOT
+ ../hapi-deployable-pom/pom.xmljar
@@ -26,25 +27,40 @@
com.google.injectguice
- 3.0
+ 4.1.0com.google.inject.extensionsguice-servlet
- 3.0
+ 4.1.0com.sun.jersey.contribsjersey-guice
- 1.18.1
+ 1.19.1
+
+
+ org.ebaysf.web
+ cors-filter
+ 1.0.1ca.uhn.hapi.fhirhapi-fhir-structures-dstu2
- 1.2
+ 2.1-SNAPSHOT
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.21
+
+
+ org.slf4j
+ jul-to-slf4j
+ 1.7.21
-
+
@@ -56,5 +72,5 @@
-
-
\ No newline at end of file
+
+
diff --git a/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java
new file mode 100644
index 00000000000..20cb9c43c7a
--- /dev/null
+++ b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java
@@ -0,0 +1,27 @@
+package embedded;
+
+import javax.inject.Singleton;
+
+import org.ebaysf.web.cors.CORSFilter;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+import com.google.inject.servlet.GuiceServletContextListener;
+import com.sun.jersey.guice.JerseyServletModule;
+
+public class ContextListener extends GuiceServletContextListener {
+
+ @Override
+ protected Injector getInjector() {
+
+ return Guice.createInjector(new JerseyServletModule() {
+
+ @Override
+ protected void configureServlets() {
+ bind(CORSFilter.class).in(Singleton.class);
+ filter("/*").through(CORSFilter.class);
+ serve("/model/*").with(FhirRestfulServlet.class);
+ }
+ });
+ }
+}
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java
similarity index 50%
rename from hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java
rename to example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java
index a7e082015b9..e197c62edda 100644
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java
+++ b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/FhirRestfulServlet.java
@@ -6,8 +6,6 @@ import java.util.List;
import javax.inject.Singleton;
import ca.uhn.fhir.context.FhirContext;
-import ca.uhn.fhir.narrative.DefaultThymeleafNarrativeGenerator;
-import ca.uhn.fhir.narrative.INarrativeGenerator;
import ca.uhn.fhir.rest.server.IResourceProvider;
import ca.uhn.fhir.rest.server.RestfulServer;
import ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor;
@@ -29,29 +27,10 @@ public class FhirRestfulServlet extends RestfulServer {
*/
@Override
public void initialize() {
- /*
- * Two resource providers are defined. Each one handles a specific type
- * of resource.
- */
final List providers = new ArrayList();
providers.add(new SomeResourceProvider());
setResourceProviders(providers);
- /*
- * Use a narrative generator. This is a completely optional step, but
- * can be useful as it causes HAPI to generate narratives for resources
- * which don't otherwise have one.
- */
- final INarrativeGenerator narrativeGen = new DefaultThymeleafNarrativeGenerator();
- getFhirContext().setNarrativeGenerator(narrativeGen);
-
- /*
- * Tells HAPI to use content types which are not technically FHIR
- * compliant when a browser is detected as the requesting client. This
- * prevents browsers from trying to download resource responses instead
- * of displaying them inline which can be handy for troubleshooting.
- */
- setUseBrowserFriendlyContentTypes(true);
registerInterceptor(new ResponseHighlighterInterceptor());
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java
similarity index 65%
rename from hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java
rename to example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java
index fb8dde91365..984829826a2 100644
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java
+++ b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ServerStartup.java
@@ -1,4 +1,5 @@
package embedded;
+
import java.util.EnumSet;
import javax.servlet.DispatcherType;
@@ -6,6 +7,7 @@ import javax.servlet.DispatcherType;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.servlet.ServletContextHandler;
+import org.slf4j.bridge.SLF4JBridgeHandler;
import com.google.inject.servlet.GuiceFilter;
@@ -13,13 +15,18 @@ public class ServerStartup {
public static void main(final String[] args) throws Exception {
+ SLF4JBridgeHandler.removeHandlersForRootLogger();
+ SLF4JBridgeHandler.install();
+
final Server server = new Server(9090);
final ServletContextHandler sch = new ServletContextHandler(server, "/");
sch.addEventListener(new ContextListener());
- sch.addFilter(GuiceFilter.class, "/*",
- EnumSet.of(DispatcherType.REQUEST));
+ sch.addFilter(GuiceFilter.class, "/*", EnumSet.of(DispatcherType.REQUEST));
sch.addServlet(DefaultServlet.class, "/");
- server.start();
+ server.start();
+
+ // Service is now accessible through
+ // http://localhost:9090/model/Practitioner
}
}
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java
similarity index 80%
rename from hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java
rename to example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java
index aac9da8adb9..b1d9d80cbe0 100644
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java
+++ b/example-projects/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/SomeResourceProvider.java
@@ -4,6 +4,8 @@ import java.util.List;
import org.hl7.fhir.instance.model.api.IBaseResource;
+import com.google.common.collect.Lists;
+
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.rest.annotation.RequiredParam;
@@ -21,8 +23,9 @@ public class SomeResourceProvider implements IResourceProvider {
@Search()
public List findPractitionersByName(
@RequiredParam(name = Practitioner.SP_NAME) final StringDt theName) {
- throw new UnprocessableEntityException(
- "Please provide more than 4 characters for the name");
+// throw new UnprocessableEntityException(
+// "Please provide more than 4 characters for the name");
+ return Lists.newArrayList();
}
}
diff --git a/hapi-fhir-oauth2/.settings/org.eclipse.core.resources.prefs b/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.core.resources.prefs
similarity index 76%
rename from hapi-fhir-oauth2/.settings/org.eclipse.core.resources.prefs
rename to example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.core.resources.prefs
index cdfe4f1b669..f9fe34593fc 100644
--- a/hapi-fhir-oauth2/.settings/org.eclipse.core.resources.prefs
+++ b/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.core.resources.prefs
@@ -1,5 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
-encoding//src/test/resources=UTF-8
encoding/=UTF-8
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.jdt.core.prefs b/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..714351aec19
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/hapi-deployable-pom/.settings/org.eclipse.m2e.core.prefs b/example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.m2e.core.prefs
similarity index 100%
rename from hapi-deployable-pom/.settings/org.eclipse.m2e.core.prefs
rename to example-projects/hapi-fhir-standalone-overlay-example/.settings/org.eclipse.m2e.core.prefs
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/pom.xml b/example-projects/hapi-fhir-standalone-overlay-example/pom.xml
new file mode 100644
index 00000000000..fef33f1705c
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/pom.xml
@@ -0,0 +1,81 @@
+
+ 4.0.0
+
+ ca.uhn.hapi.fhir
+ hapi-fhir
+ 2.3-SNAPSHOT
+ ../hapi-deployable-pom/pom.xml
+
+ hapi-fhir-standalone-overlay-example
+
+
+
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-testpage-overlay
+
+
+ fhirtester
+ true
+
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-testpage-overlay
+ 2.3-SNAPSHOT
+ war
+ provided
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-testpage-overlay
+ 2.3-SNAPSHOT
+ classes
+ provided
+
+
+ org.eclipse.jetty
+ jetty-servlet
+
+
+ org.eclipse.jetty
+ jetty-webapp
+
+
+ com.google.inject
+ guice
+ 4.1.0
+
+
+ com.google.inject.extensions
+ guice-servlet
+ 4.1.0
+
+
+ com.sun.jersey.contribs
+ jersey-guice
+ 1.19.1
+
+
+ org.ebaysf.web
+ cors-filter
+ 1.0.1
+
+
+
+
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/ContextListener.java b/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/ContextListener.java
new file mode 100644
index 00000000000..ce89689f297
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/ContextListener.java
@@ -0,0 +1,51 @@
+package embedded.example;
+
+import javax.inject.Singleton;
+import javax.servlet.ServletContextEvent;
+
+import org.ebaysf.web.cors.CORSFilter;
+import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
+import org.springframework.web.servlet.DispatcherServlet;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+import com.google.inject.servlet.GuiceServletContextListener;
+import com.sun.jersey.guice.JerseyServletModule;
+
+public class ContextListener extends GuiceServletContextListener {
+
+ static String username;
+ static String password;
+ static String serverAddress;
+
+ @Override
+ public void contextInitialized(ServletContextEvent servletContextEvent) {
+ super.contextInitialized(servletContextEvent);
+
+ username = servletContextEvent.getServletContext().getInitParameter("username") != null
+ ? servletContextEvent.getServletContext().getInitParameter("username")
+ : null;
+ password = servletContextEvent.getServletContext().getInitParameter("password") != null
+ ? servletContextEvent.getServletContext().getInitParameter("password")
+ : null;
+ serverAddress = servletContextEvent.getServletContext().getInitParameter("serverAddress") != null
+ ? servletContextEvent.getServletContext().getInitParameter("serverAddress")
+ : null;
+ }
+
+ @Override
+ protected Injector getInjector() {
+ return Guice.createInjector(new JerseyServletModule() {
+
+ @Override
+ protected void configureServlets() {
+
+ AnnotationConfigWebApplicationContext webApp = new AnnotationConfigWebApplicationContext();
+ webApp.setConfigLocation(FhirTesterConfig.class.getName());
+ serve("/*").with(new DispatcherServlet(webApp));
+ bind(CORSFilter.class).in(Singleton.class);
+ filter("/*").through(CORSFilter.class);
+ }
+ });
+ }
+}
\ No newline at end of file
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/FhirTesterConfig.java b/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/FhirTesterConfig.java
new file mode 100644
index 00000000000..91a3e9f6b25
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/src/main/java/embedded/example/FhirTesterConfig.java
@@ -0,0 +1,73 @@
+package embedded.example;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import com.google.common.base.Strings;
+
+import ca.uhn.fhir.context.FhirContext;
+import ca.uhn.fhir.context.FhirVersionEnum;
+import ca.uhn.fhir.rest.client.IGenericClient;
+import ca.uhn.fhir.rest.client.interceptor.BasicAuthInterceptor;
+import ca.uhn.fhir.to.FhirTesterMvcConfig;
+import ca.uhn.fhir.to.TesterConfig;
+import ca.uhn.fhir.util.ITestingUiClientFactory;
+
+//@formatter:off
+/**
+ * This spring config file configures the web testing module. It serves two
+ * purposes: 1. It imports FhirTesterMvcConfig, which is the spring config for
+ * the tester itself 2. It tells the tester which server(s) to talk to, via the
+ * testerConfig() method below
+ */
+@Configuration
+@Import(FhirTesterMvcConfig.class)
+public class FhirTesterConfig {
+
+ /**
+ * This bean tells the testing webpage which servers it should configure
+ * itself to communicate with. In this example we configure it to talk to
+ * the local server, as well as one public server. If you are creating a
+ * project to deploy somewhere else, you might choose to only put your own
+ * server's address here.
+ *
+ * Note the use of the ${serverBase} variable below. This will be replaced
+ * with the base URL as reported by the server itself. Often for a simple
+ * Tomcat (or other container) installation, this will end up being
+ * something like "http://localhost:8080/hapi-fhir-jpaserver-example". If
+ * you are deploying your server to a place with a fully qualified domain
+ * name, you might want to use that instead of using the variable.
+ */
+ @Bean
+ public TesterConfig testerConfig() {
+ final TesterConfig retVal = new TesterConfig();
+ retVal.addServer().withId("Test-Server").withFhirVersion(FhirVersionEnum.DSTU2)
+ .withBaseUrl(ContextListener.serverAddress).withName("FHIR Server Test Front End");
+
+ if (!Strings.isNullOrEmpty(ContextListener.username)) {
+ ITestingUiClientFactory clientFactory = new ITestingUiClientFactory() {
+
+ @Override
+ public IGenericClient newClient(FhirContext theFhirContext, HttpServletRequest theRequest,
+ String theServerBaseUrl) {
+ // Create a client
+ IGenericClient client = theFhirContext.newRestfulGenericClient(theServerBaseUrl);
+
+ // Register an interceptor which adds credentials
+ client.registerInterceptor(
+ new BasicAuthInterceptor(ContextListener.username, ContextListener.password));
+
+ return client;
+ }
+
+ };
+ retVal.setClientFactory(clientFactory);
+ }
+ return retVal;
+ }
+
+}
+// @formatter:on
\ No newline at end of file
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/src/main/webapp/WEB-INF/web.xml b/example-projects/hapi-fhir-standalone-overlay-example/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 00000000000..8c985e61d0c
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,22 @@
+
+
+
+ Guice Filter
+ com.google.inject.servlet.GuiceFilter
+
+
+ Guice Filter
+ /*
+
+
+ embedded.example.ContextListener
+
+
+
+
+ serverAddress
+ http://fhirtest.uhn.ca/baseDstu2
+
+
\ No newline at end of file
diff --git a/example-projects/hapi-fhir-standalone-overlay-example/src/test/java/test/WarTester.java b/example-projects/hapi-fhir-standalone-overlay-example/src/test/java/test/WarTester.java
new file mode 100644
index 00000000000..fffbc626c75
--- /dev/null
+++ b/example-projects/hapi-fhir-standalone-overlay-example/src/test/java/test/WarTester.java
@@ -0,0 +1,14 @@
+package test;
+
+import org.eclipse.jetty.server.Server;
+import org.eclipse.jetty.webapp.WebAppContext;
+
+public class WarTester {
+
+ public static void main(String[] args) throws Exception {
+ final Server server = new Server(8080);
+ server.setHandler(new WebAppContext("target/fhirtester.war", "/"));
+ server.start();
+ }
+
+}
diff --git a/examples/.classpath b/examples/.classpath
deleted file mode 100644
index ce99802b301..00000000000
--- a/examples/.classpath
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/.project b/examples/.project
deleted file mode 100644
index a0b8364c52b..00000000000
--- a/examples/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- hapi-fhir-base-examples
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.eclipse.m2e.core.maven2Nature
-
-
diff --git a/examples/.settings/org.eclipse.jdt.core.prefs b/examples/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 1d5aa99261d..00000000000
--- a/examples/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,376 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
-org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
-org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
-org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
-org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
-org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
-org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=80
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=3
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=true
-org.eclipse.jdt.core.formatter.join_wrapped_lines=true
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=200
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=space
-org.eclipse.jdt.core.formatter.tabulation.size=3
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=true
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/examples/.settings/org.eclipse.jdt.ui.prefs b/examples/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 2c0c25e8a13..00000000000
--- a/examples/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-formatter_profile=_hapi-examples
-formatter_settings_version=12
diff --git a/examples/pom.xml b/examples/pom.xml
index 863259dfa56..aff4b8f2b3e 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -18,37 +18,32 @@
ca.uhn.hapi.fhirhapi-fhir-base
- 2.3-SNAPSHOT
+ ${project.version}ca.uhn.hapi.fhirhapi-fhir-structures-dstu2
- 2.3-SNAPSHOT
+ ${project.version}ca.uhn.hapi.fhirhapi-fhir-structures-dstu3
- 2.3-SNAPSHOT
+ ${project.version}ca.uhn.hapi.fhirhapi-fhir-structures-hl7org-dstu2
- 2.3-SNAPSHOT
+ ${project.version}ca.uhn.hapi.fhirhapi-fhir-validation-resources-dstu2
- 2.3-SNAPSHOT
+ ${project.version}ca.uhn.hapi.fhirhapi-fhir-client-okhttp
- 2.3-SNAPSHOT
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-jaxrsserver-base
- 2.3-SNAPSHOT
+ ${project.version}javax.servlet
@@ -59,7 +54,7 @@
ca.uhn.hapi.fhirhapi-fhir-jaxrsserver-base
- 2.3-SNAPSHOT
+ ${project.version}javax.ws.rs
diff --git a/hapi-deployable-pom/.project b/hapi-deployable-pom/.project
deleted file mode 100644
index 4b06e2a7715..00000000000
--- a/hapi-deployable-pom/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- hapi-deployable-pom
-
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
-
-
diff --git a/hapi-deployable-pom/.settings/org.eclipse.core.resources.prefs b/hapi-deployable-pom/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203a..00000000000
--- a/hapi-deployable-pom/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/hapi-fhir-oauth2/.project b/hapi-fhir-android-realm/.project
similarity index 93%
rename from hapi-fhir-oauth2/.project
rename to hapi-fhir-android-realm/.project
index 0545006b46a..13005c6b849 100644
--- a/hapi-fhir-oauth2/.project
+++ b/hapi-fhir-android-realm/.project
@@ -1,6 +1,6 @@
- hapi-fhir-oauth2
+ hapi-fhir-android-realm
diff --git a/hapi-fhir-android/.classpath b/hapi-fhir-android/.classpath
deleted file mode 100644
index 0c4c687478f..00000000000
--- a/hapi-fhir-android/.classpath
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hapi-fhir-android/.project b/hapi-fhir-android/.project
deleted file mode 100644
index 7b7eb9cf3af..00000000000
--- a/hapi-fhir-android/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- hapi-fhir-android
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.eclipse.m2e.core.maven2Nature
-
-
diff --git a/hapi-fhir-android/.settings/org.eclipse.core.resources.prefs b/hapi-fhir-android/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203a..00000000000
--- a/hapi-fhir-android/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/hapi-fhir-android/.settings/org.eclipse.m2e.core.prefs b/hapi-fhir-android/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1cb2..00000000000
--- a/hapi-fhir-android/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/hapi-fhir-android/pom.xml b/hapi-fhir-android/pom.xml
index 768b04308c6..78559a549e3 100644
--- a/hapi-fhir-android/pom.xml
+++ b/hapi-fhir-android/pom.xml
@@ -29,7 +29,7 @@
ca.uhn.hapi.fhirhapi-fhir-base
- 2.3-SNAPSHOT
+ ${project.version}commons-codec
@@ -40,25 +40,25 @@
ca.uhn.hapi.fhirhapi-fhir-structures-dstu
- 2.3-SNAPSHOT
+ ${project.version}trueca.uhn.hapi.fhirhapi-fhir-structures-dstu2
- 2.3-SNAPSHOT
+ ${project.version}trueca.uhn.hapi.fhirhapi-fhir-structures-dstu3
- 2.3-SNAPSHOT
+ ${project.version}trueca.uhn.hapi.fhirhapi-fhir-client-okhttp
- 2.3-SNAPSHOT
+ ${project.version}commons-codec
diff --git a/hapi-fhir-base-example-embedded-ws/.project b/hapi-fhir-base-example-embedded-ws/.project
deleted file mode 100644
index dfe12454643..00000000000
--- a/hapi-fhir-base-example-embedded-ws/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- hapi-fhir-base-example-embedded-ws
-
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
-
-
diff --git a/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.core.resources.prefs b/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203a..00000000000
--- a/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.m2e.core.prefs b/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1cb2..00000000000
--- a/hapi-fhir-base-example-embedded-ws/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java b/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java
deleted file mode 100644
index 02019b886cb..00000000000
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/embedded/ContextListener.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package embedded;
-import java.util.Map;
-
-import com.google.common.base.Joiner;
-import com.google.common.collect.ImmutableMap;
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-import com.google.inject.servlet.GuiceServletContextListener;
-import com.sun.jersey.api.container.filter.GZIPContentEncodingFilter;
-import com.sun.jersey.api.core.ResourceConfig;
-import com.sun.jersey.guice.JerseyServletModule;
-
-import filters.CharsetResponseFilter;
-import filters.CorsResponseFilter;
-
-public class ContextListener extends GuiceServletContextListener {
-
- @Override
- protected Injector getInjector() {
-
- return Guice.createInjector(new JerseyServletModule() {
-
- @Override
- protected void configureServlets() {
- final Map params = ImmutableMap
- . builder()
- .put(ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS,
- Joiner.on(";").join(
- CharsetResponseFilter.class.getName(),
- CorsResponseFilter.class.getName(),
- GZIPContentEncodingFilter.class
- .getName())).build();
- serve("/model/*").with(FhirRestfulServlet.class, params);
- }
- });
- }
-}
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CharsetResponseFilter.java b/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CharsetResponseFilter.java
deleted file mode 100644
index 656f7535578..00000000000
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CharsetResponseFilter.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package filters;
-
-
-import javax.ws.rs.core.HttpHeaders;
-import javax.ws.rs.core.MediaType;
-
-import com.sun.jersey.spi.container.ContainerRequest;
-import com.sun.jersey.spi.container.ContainerResponse;
-import com.sun.jersey.spi.container.ContainerResponseFilter;
-
-public class CharsetResponseFilter implements ContainerResponseFilter {
-
- @Override
- public ContainerResponse filter(final ContainerRequest request,
- final ContainerResponse response) {
-
- final MediaType contentType = response.getMediaType();
- if (contentType != null) {
- response.getHttpHeaders().putSingle(HttpHeaders.CONTENT_TYPE,
- contentType.toString() + ";charset=UTF-8");
- }
- return response;
- }
-}
\ No newline at end of file
diff --git a/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CorsResponseFilter.java b/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CorsResponseFilter.java
deleted file mode 100644
index cab06c28419..00000000000
--- a/hapi-fhir-base-example-embedded-ws/src/main/java/filters/CorsResponseFilter.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package filters;
-
-
-import javax.ws.rs.core.Response;
-import javax.ws.rs.core.Response.ResponseBuilder;
-
-import com.sun.jersey.spi.container.ContainerRequest;
-import com.sun.jersey.spi.container.ContainerResponse;
-import com.sun.jersey.spi.container.ContainerResponseFilter;
-
-public class CorsResponseFilter implements ContainerResponseFilter {
-
- @Override
- public ContainerResponse filter(final ContainerRequest req,
- final ContainerResponse contResp) {
-
- final ResponseBuilder resp = Response.fromResponse(contResp
- .getResponse());
- resp.header("Access-Control-Allow-Origin", "*").header(
- "Access-Control-Allow-Methods", "GET, POST, OPTIONS");
-
- final String reqHead = req
- .getHeaderValue("Access-Control-Request-Headers");
-
- if (null != reqHead && !reqHead.equals("")) {
- resp.header("Access-Control-Allow-Headers", reqHead);
- }
-
- contResp.setResponse(resp.build());
- return contResp;
- }
-
-}
\ No newline at end of file
diff --git a/hapi-fhir-base-test-mindeps-client/.classpath b/hapi-fhir-base-test-mindeps-client/.classpath
deleted file mode 100644
index d1d9fe67b77..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.classpath
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/hapi-fhir-base-test-mindeps-client/.project b/hapi-fhir-base-test-mindeps-client/.project
deleted file mode 100644
index 9cf5c48e336..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- hapi-fhir-base-testmindeps-client
-
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.eclipse.m2e.core.maven2Nature
- org.eclipse.wst.common.project.facet.core.nature
-
-
diff --git a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.core.resources.prefs b/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 99f26c0203a..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.jdt.core.prefs b/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f42de363afa..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.m2e.core.prefs b/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1cb2..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.wst.common.project.facet.core.xml b/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index bc0009a4558..00000000000
--- a/hapi-fhir-base-test-mindeps-client/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/hapi-fhir-base-test-mindeps-client/pom.xml b/hapi-fhir-base-test-mindeps-client/pom.xml
index 28a6d724960..4e11992215e 100644
--- a/hapi-fhir-base-test-mindeps-client/pom.xml
+++ b/hapi-fhir-base-test-mindeps-client/pom.xml
@@ -24,13 +24,18 @@
org.slf4jslf4j-simple1.6.0
+
+
+ slf4j-api
+ org.slf4j
+
+ com.google.code.gsongson
- 2.3.1
@@ -42,7 +37,6 @@
com.google.code.gsongson
- 2.3.1
@@ -48,6 +47,12 @@
com.phlocphloc-schematrontrue
+
+ com.phloc
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
index edcbecb4ea6..8e60f760bb5 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
@@ -82,87 +82,22 @@ public class FhirContext {
private Map> myDefaultTypeForProfile = new HashMap>();
private volatile Map myIdToResourceDefinition = Collections.emptyMap();
private boolean myInitialized;
+ private boolean myInitializing;
private HapiLocalizer myLocalizer = new HapiLocalizer();
private volatile Map> myNameToElementDefinition = Collections.emptyMap();
private volatile Map myNameToResourceDefinition = Collections.emptyMap();
private volatile Map> myNameToResourceType;
private volatile INarrativeGenerator myNarrativeGenerator;
private volatile IParserErrorHandler myParserErrorHandler = new LenientErrorHandler();
+ private ParserOptions myParserOptions = new ParserOptions();
private Set myPerformanceOptions = new HashSet();
private Collection> myResourceTypesToScan;
private volatile IRestfulClientFactory myRestfulClientFactory;
private volatile RuntimeChildUndeclaredExtensionDefinition myRuntimeChildUndeclaredExtensionDefinition;
- private final IFhirVersion myVersion;
- private Map>> myVersionToNameToResourceType = Collections.emptyMap();
- private boolean myInitializing;
private IContextValidationSupport, ?, ?, ?, ?, ?> myValidationSupport;
+ private final IFhirVersion myVersion;
- /**
- * Returns the validation support module configured for this context, creating a default
- * implementation if no module has been passed in via the {@link #setValidationSupport(IContextValidationSupport)}
- * method
- * @see #setValidationSupport(IContextValidationSupport)
- */
- public IContextValidationSupport, ?, ?, ?, ?, ?> getValidationSupport() {
- if (myValidationSupport == null) {
- myValidationSupport = myVersion.createValidationSupport();
- }
- return myValidationSupport;
- }
-
- /**
- * Creates a new FluentPath engine which can be used to exvaluate
- * path expressions over FHIR resources. Note that this engine will use the
- * {@link IContextValidationSupport context validation support} module which is
- * configured on the context at the time this method is called.
- *
- * In other words, call {@link #setValidationSupport(IContextValidationSupport)} before
- * calling {@link #newFluentPath()}
- *
- *
- * Note that this feature was added for FHIR DSTU3 and is not available
- * for contexts configured to use an older version of FHIR. Calling this method
- * on a context for a previous version of fhir will result in an
- * {@link UnsupportedOperationException}
- *
- *
- * @since 2.2
- */
- public IFluentPath newFluentPath() {
- return myVersion.createFluentPathExecutor(this);
- }
-
- /**
- * Sets the validation support module to use for this context. The validation support module
- * is used to supply underlying infrastructure such as conformance resources (StructureDefinition, ValueSet, etc)
- * as well as to provide terminology services to modules such as the validator and FluentPath executor
- */
- public void setValidationSupport(IContextValidationSupport, ?, ?, ?, ?, ?> theValidationSupport) {
- myValidationSupport = theValidationSupport;
- }
-
- private ParserOptions myParserOptions = new ParserOptions();
-
- /**
- * Returns the parser options object which will be used to supply default
- * options to newly created parsers
- *
- * @return The parser options - Will not return null
- */
- public ParserOptions getParserOptions() {
- return myParserOptions;
- }
-
- /**
- * Sets the parser options object which will be used to supply default
- * options to newly created parsers
- *
- * @param theParserOptions The parser options object - Must not be null
- */
- public void setParserOptions(ParserOptions theParserOptions) {
- Validate.notNull(theParserOptions, "theParserOptions must not be null");
- myParserOptions = theParserOptions;
- }
+ private Map>> myVersionToNameToResourceType = Collections.emptyMap();
/**
* @deprecated It is recommended that you use one of the static initializer methods instead
@@ -172,7 +107,7 @@ public class FhirContext {
public FhirContext() {
this(EMPTY_LIST);
}
-
+
/**
* @deprecated It is recommended that you use one of the static initializer methods instead
* of this method, e.g. {@link #forDstu2()} or {@link #forDstu3()}
@@ -282,7 +217,7 @@ public class FhirContext {
validateInitialized();
return myNameToResourceDefinition.values();
}
-
+
/**
* Returns the default resource type for the given profile
*
@@ -332,7 +267,7 @@ public class FhirContext {
validateInitialized();
return Collections.unmodifiableCollection(myClassToElementDefinition.values());
}
-
+
/**
* This feature is not yet in its final state and should be considered an internal part of HAPI for now - use with
* caution
@@ -348,6 +283,16 @@ public class FhirContext {
return myNarrativeGenerator;
}
+ /**
+ * Returns the parser options object which will be used to supply default
+ * options to newly created parsers
+ *
+ * @return The parser options - Will not return null
+ */
+ public ParserOptions getParserOptions() {
+ return myParserOptions;
+ }
+
/**
* Get the configured performance options
*/
@@ -449,6 +394,20 @@ public class FhirContext {
return myIdToResourceDefinition.get(theId);
}
+// /**
+// * Return an unmodifiable collection containing all known resource definitions
+// */
+// public Collection getResourceDefinitions() {
+//
+// Set> datatypes = Collections.emptySet();
+// Map, BaseRuntimeElementDefinition>> existing = Collections.emptyMap();
+// HashMap> types = new HashMap>();
+// ModelScanner.scanVersionPropertyFile(datatypes, types, myVersion.getVersion(), existing);
+// for (int next : types.)
+//
+// return Collections.unmodifiableCollection(myIdToResourceDefinition.values());
+// }
+
/**
* Returns the scanned runtime models. This is an advanced feature which is generally only needed for extending the
* core library.
@@ -476,6 +435,19 @@ public class FhirContext {
return myRuntimeChildUndeclaredExtensionDefinition;
}
+ /**
+ * Returns the validation support module configured for this context, creating a default
+ * implementation if no module has been passed in via the {@link #setValidationSupport(IContextValidationSupport)}
+ * method
+ * @see #setValidationSupport(IContextValidationSupport)
+ */
+ public IContextValidationSupport, ?, ?, ?, ?, ?> getValidationSupport() {
+ if (myValidationSupport == null) {
+ myValidationSupport = myVersion.createValidationSupport();
+ }
+ return myValidationSupport;
+ }
+
public IFhirVersion getVersion() {
return myVersion;
}
@@ -500,6 +472,28 @@ public class FhirContext {
return myVersion.newBundleFactory(this);
}
+ /**
+ * Creates a new FluentPath engine which can be used to exvaluate
+ * path expressions over FHIR resources. Note that this engine will use the
+ * {@link IContextValidationSupport context validation support} module which is
+ * configured on the context at the time this method is called.
+ *
+ * In other words, call {@link #setValidationSupport(IContextValidationSupport)} before
+ * calling {@link #newFluentPath()}
+ *
+ *
+ * Note that this feature was added for FHIR DSTU3 and is not available
+ * for contexts configured to use an older version of FHIR. Calling this method
+ * on a context for a previous version of fhir will result in an
+ * {@link UnsupportedOperationException}
+ *
+ *
+ * @since 2.2
+ */
+ public IFluentPath newFluentPath() {
+ return myVersion.createFluentPathExecutor(this);
+ }
+
/**
* Create and return a new JSON parser.
*
@@ -783,6 +777,17 @@ public class FhirContext {
myParserErrorHandler = theParserErrorHandler;
}
+ /**
+ * Sets the parser options object which will be used to supply default
+ * options to newly created parsers
+ *
+ * @param theParserOptions The parser options object - Must not be null
+ */
+ public void setParserOptions(ParserOptions theParserOptions) {
+ Validate.notNull(theParserOptions, "theParserOptions must not be null");
+ myParserOptions = theParserOptions;
+ }
+
/**
* Sets the configured performance options
*
@@ -818,6 +823,15 @@ public class FhirContext {
this.myRestfulClientFactory = theRestfulClientFactory;
}
+ /**
+ * Sets the validation support module to use for this context. The validation support module
+ * is used to supply underlying infrastructure such as conformance resources (StructureDefinition, ValueSet, etc)
+ * as well as to provide terminology services to modules such as the validator and FluentPath executor
+ */
+ public void setValidationSupport(IContextValidationSupport, ?, ?, ?, ?, ?> theValidationSupport) {
+ myValidationSupport = theValidationSupport;
+ }
+
@SuppressWarnings({ "cast" })
private List> toElementList(Collection> theResourceTypes) {
if (theResourceTypes == null) {
@@ -850,6 +864,13 @@ public class FhirContext {
return new FhirContext(FhirVersionEnum.DSTU2);
}
+ /**
+ * Creates and returns a new FhirContext with version {@link FhirVersionEnum#DSTU2 DSTU2} (2016 May DSTU3 Snapshot)
+ */
+ public static FhirContext forDstu2_1() {
+ return new FhirContext(FhirVersionEnum.DSTU2_1);
+ }
+
/**
* Creates and returns a new FhirContext with version {@link FhirVersionEnum#DSTU2_HL7ORG DSTU2} (using the Reference
* Implementation Structures)
@@ -885,11 +906,4 @@ public class FhirContext {
return retVal;
}
- /**
- * Creates and returns a new FhirContext with version {@link FhirVersionEnum#DSTU2 DSTU2} (2016 May DSTU3 Snapshot)
- */
- public static FhirContext forDstu2_1() {
- return new FhirContext(FhirVersionEnum.DSTU2_1);
- }
-
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/ModelScanner.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/ModelScanner.java
index 42776441e9a..e1d96461213 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/ModelScanner.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/ModelScanner.java
@@ -34,6 +34,7 @@ import java.util.Map.Entry;
import org.apache.commons.io.IOUtils;
import org.hl7.fhir.instance.model.api.*;
+import ca.uhn.fhir.context.RuntimeSearchParam.RuntimeSearchParamStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
@@ -437,7 +438,7 @@ class ModelScanner {
}
- RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType, providesMembershipInCompartments, toTargetList(searchParam.target()));
+ RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType, providesMembershipInCompartments, toTargetList(searchParam.target()), RuntimeSearchParamStatusEnum.ACTIVE);
theResourceDef.addSearchParam(param);
nameToParam.put(param.getName(), param);
}
@@ -457,7 +458,7 @@ class ModelScanner {
compositeOf.add(param);
}
- RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), RestSearchParameterTypeEnum.COMPOSITE, compositeOf, null, toTargetList(searchParam.target()));
+ RuntimeSearchParam param = new RuntimeSearchParam(null, null, searchParam.name(), searchParam.description(), searchParam.path(), RestSearchParameterTypeEnum.COMPOSITE, compositeOf, null, toTargetList(searchParam.target()), RuntimeSearchParamStatusEnum.ACTIVE);
theResourceDef.addSearchParam(param);
}
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeSearchParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeSearchParam.java
index 22da3f10e0f..28c7377674a 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeSearchParam.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeSearchParam.java
@@ -6,6 +6,8 @@ import java.util.List;
import java.util.Set;
import java.util.StringTokenizer;
+import org.hl7.fhir.instance.model.api.IIdType;
+
import ca.uhn.fhir.rest.method.RestSearchParameterTypeEnum;
/*
@@ -29,7 +31,7 @@ import ca.uhn.fhir.rest.method.RestSearchParameterTypeEnum;
*/
public class RuntimeSearchParam {
-
+ private final IIdType myId;
private final List myCompositeOf;
private final String myDescription;
private final String myName;
@@ -37,15 +39,28 @@ public class RuntimeSearchParam {
private final String myPath;
private final Set myTargets;
private final Set myProvidesMembershipInCompartments;
+ private final RuntimeSearchParamStatusEnum myStatus;
+ private final String myUri;
- public RuntimeSearchParam(String theName, String theDescription, String thePath, RestSearchParameterTypeEnum theParamType, List theCompositeOf,
- Set theProvidesMembershipInCompartments, Set theTargets) {
+ public IIdType getId() {
+ return myId;
+ }
+
+ public String getUri() {
+ return myUri;
+ }
+
+ public RuntimeSearchParam(IIdType theId, String theUri, String theName, String theDescription, String thePath, RestSearchParameterTypeEnum theParamType, List theCompositeOf,
+ Set theProvidesMembershipInCompartments, Set theTargets, RuntimeSearchParamStatusEnum theStatus) {
super();
+ myId = theId;
+ myUri = theUri;
myName = theName;
myDescription = theDescription;
myPath = thePath;
myParamType = theParamType;
myCompositeOf = theCompositeOf;
+ myStatus = theStatus;
if (theProvidesMembershipInCompartments != null && !theProvidesMembershipInCompartments.isEmpty()) {
myProvidesMembershipInCompartments = Collections.unmodifiableSet(theProvidesMembershipInCompartments);
} else {
@@ -62,8 +77,12 @@ public class RuntimeSearchParam {
return myTargets;
}
- public RuntimeSearchParam(String theName, String theDescription, String thePath, RestSearchParameterTypeEnum theParamType, Set theProvidesMembershipInCompartments, Set theTargets) {
- this(theName, theDescription, thePath, theParamType, null, theProvidesMembershipInCompartments, theTargets);
+ public RuntimeSearchParamStatusEnum getStatus() {
+ return myStatus;
+ }
+
+ public RuntimeSearchParam(String theName, String theDescription, String thePath, RestSearchParameterTypeEnum theParamType, Set theProvidesMembershipInCompartments, Set theTargets, RuntimeSearchParamStatusEnum theStatus) {
+ this(null, null, theName, theDescription, thePath, theParamType, null, theProvidesMembershipInCompartments, theTargets, theStatus);
}
public List getCompositeOf() {
@@ -108,4 +127,10 @@ public class RuntimeSearchParam {
return myProvidesMembershipInCompartments;
}
+ public enum RuntimeSearchParamStatusEnum {
+ ACTIVE,
+ DRAFT,
+ RETIRED
+ }
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ICompositeElement.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ICompositeElement.java
index 48c78514743..d3cdd977866 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ICompositeElement.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ICompositeElement.java
@@ -28,7 +28,15 @@ public interface ICompositeElement extends IElement {
* Returns a list containing all child elements matching a given type
*
* @param theType The type to match. If set to null, all child elements will be returned
+ *
+ * @deprecated This method is not used by HAPI at this point, so there isn't much
+ * point to keeping it around. We are not deleting it just so that we don't break
+ * existing implementer code, but you do not need to supply an implementation
+ * of this code in your own structures. Deprecated in HAPI FHIR 2.3 (Jan 2017).
+ * See See for
+ * a discussion about this.
*/
+ @Deprecated
List getAllPopulatedChildElementsOfType(Class theType);
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OptionalParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OptionalParam.java
index 5a1b573b030..6b7bf8a3df6 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OptionalParam.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/OptionalParam.java
@@ -1,5 +1,7 @@
package ca.uhn.fhir.rest.annotation;
+import java.lang.annotation.ElementType;
+
/*
* #%L
* HAPI FHIR - Core Library
@@ -10,7 +12,7 @@ package ca.uhn.fhir.rest.annotation;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,19 +24,19 @@ package ca.uhn.fhir.rest.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.model.api.IQueryParameterType;
import ca.uhn.fhir.rest.param.CompositeParam;
import ca.uhn.fhir.rest.param.ReferenceParam;
-//import ca.uhn.fhir.testmodel.Patient; // TODO: qualify this correctly
-
/**
- * Parameter annotation which specifies a search parameter for a {@link Search} method.
+ * Parameter annotation which specifies a search parameter for a {@link Search} method.
*/
@Retention(RetentionPolicy.RUNTIME)
+@Target(value=ElementType.PARAMETER)
public @interface OptionalParam {
public static final String ALLOW_CHAIN_ANY = "*";
@@ -42,63 +44,63 @@ public @interface OptionalParam {
public static final String ALLOW_CHAIN_NOTCHAINED = "";
/**
- * For reference parameters ({@link ReferenceParam}) this value may be
- * used to indicate which chain values (if any) are not valid
- * for the given parameter. Values here will supercede any values specified
- * in {@link #chainWhitelist()}
- *
* If you wish to specify a parameter for a resource reference which
* only accepts a specific chained value, it is also valid to supply
@@ -109,13 +111,13 @@ public @interface OptionalParam {
*/
String name();
- /**
- * For resource reference parameters ({@link ReferenceParam}) this value may be
- * used to indicate the resource type(s) which may be referenced by this param.
- *
- * If the parameter annotated with this annotation is not a {@link ReferenceParam},
- * this value must not be populated.
- *
- */
- Class extends IBaseResource>[] targetTypes() default {};
+ /**
+ * For resource reference parameters ({@link ReferenceParam}) this value may be
+ * used to indicate the resource type(s) which may be referenced by this param.
+ *
+ * If the parameter annotated with this annotation is not a {@link ReferenceParam},
+ * this value must not be populated.
+ *
+ */
+ Class extends IBaseResource>[] targetTypes() default {};
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RawParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RawParam.java
new file mode 100644
index 00000000000..24772e1ecd9
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RawParam.java
@@ -0,0 +1,40 @@
+package ca.uhn.fhir.rest.annotation;
+
+/*
+ * #%L
+ * HAPI FHIR - Core Library
+ * %%
+ * Copyright (C) 2014 - 2017 University Health Network
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * On a {@link Search} method, a parameter marked with this annotation
+ * will receive search parameters not captured by other parameters.
+ *
+ * Parameters with this annotation must be of type
+ * {@code Map>}
+ *
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(value=ElementType.PARAMETER)
+public @interface RawParam {
+ // nothing
+}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RequiredParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RequiredParam.java
index af12e9e14ac..9efda9da757 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RequiredParam.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/annotation/RequiredParam.java
@@ -1,5 +1,7 @@
package ca.uhn.fhir.rest.annotation;
+import java.lang.annotation.ElementType;
+
/*
* #%L
* HAPI FHIR - Core Library
@@ -10,7 +12,7 @@ package ca.uhn.fhir.rest.annotation;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,18 +24,19 @@ package ca.uhn.fhir.rest.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.model.api.IQueryParameterType;
import ca.uhn.fhir.rest.param.CompositeParam;
import ca.uhn.fhir.rest.param.ReferenceParam;
-//import ca.uhn.fhir.testmodel.Patient; // TODO: qualify this correctly
-@Retention(RetentionPolicy.RUNTIME)
/**
- * Parameter annotation which specifies a search parameter for a {@link Search} method.
+ * Parameter annotation which specifies a search parameter for a {@link Search} method.
*/
+@Retention(RetentionPolicy.RUNTIME)
+@Target(value=ElementType.PARAMETER)
public @interface RequiredParam {
/**
@@ -45,32 +48,32 @@ public @interface RequiredParam {
*/
String[] chainBlacklist() default {};
- /**
- * For reference parameters ({@link ReferenceParam}) this value may be
- * used to indicate which chain values (if any) are valid for the given
- * parameter. If the list contains the value {@link OptionalParam#ALLOW_CHAIN_ANY}, all values are valid. (this is the default)
- * If the list contains the value {@link OptionalParam#ALLOW_CHAIN_NOTCHAINED}
- * then the reference param only supports the empty chain (i.e. the resource
- * ID).
- *
- * Valid values for this parameter include:
- *
- *
- *
chainWhitelist={ OptionalParam.ALLOW_CHAIN_NOTCHAINED } - Only allow resource reference (no chaining allowed for this parameter)
- *
chainWhitelist={ OptionalParam.ALLOW_CHAIN_ANY } - Allow any chaining at all (including a non chained value, this is the default)
- *
chainWhitelist={ "foo", "bar" } - Allow property.foo and property.bar
- *
- *
- * Any values specified in
- * {@link #chainBlacklist()} will supercede (have priority over) values
- * here.
- *
- *
- * If the parameter annotated with this annotation is not a {@link ReferenceParam},
- * this value must not be populated.
- *
- */
- String[] chainWhitelist() default {OptionalParam.ALLOW_CHAIN_ANY};
+ /**
+ * For reference parameters ({@link ReferenceParam}) this value may be
+ * used to indicate which chain values (if any) are valid for the given
+ * parameter. If the list contains the value {@link OptionalParam#ALLOW_CHAIN_ANY}, all values are valid. (this is the default)
+ * If the list contains the value {@link OptionalParam#ALLOW_CHAIN_NOTCHAINED}
+ * then the reference param only supports the empty chain (i.e. the resource
+ * ID).
+ *
+ * Valid values for this parameter include:
+ *
+ *
+ *
chainWhitelist={ OptionalParam.ALLOW_CHAIN_NOTCHAINED } - Only allow resource reference (no chaining allowed for this parameter)
+ *
chainWhitelist={ OptionalParam.ALLOW_CHAIN_ANY } - Allow any chaining at all (including a non chained value, this is the default)
+ *
chainWhitelist={ "foo", "bar" } - Allow property.foo and property.bar
+ *
+ *
+ * Any values specified in
+ * {@link #chainBlacklist()} will supercede (have priority over) values
+ * here.
+ *
+ *
+ * If the parameter annotated with this annotation is not a {@link ReferenceParam},
+ * this value must not be populated.
+ *
+
+ ]]>
+
+
+ The JPA server now supports custom search parameters in DSTU3
+ mode. This allows users to create search parameters which contain
+ custom paths, or even override and disable existing search
+ parameters.
+
+ CLI example uploader couldn't find STU3 examples after CI server
+ was moved to build.fhir.org
+
+
+ Fix issue in JPA subscription module that prevented purging stale
+ subscriptions when many were present on Postgres
+
+
+ Server interceptor methods were being called twice unnecessarily
+ by the JPA server, and the DaoConfig interceptor registration
+ framework was not actually useful. Thanks to GitHub user
+ @mattiuusitalo for reporting!
+
+
+ AuthorizationInterceptor on JPA server did not correctly
+ apply rules on deleting resources in a specific compartment
+ because the resource metadata was stripped by the JPA server
+ before the interceptor could see it. Thanks to
+ Eeva Turkka for reporting!
+
+
+ JPA server exported CapabilityStatement includes
+ double entries for the _id parameter and uses the
+ wrong type (string instead of token). Thanks to
+ Robert Lichtenberger for reporting!
+
+
+ Custom resource types which extend Binary must not
+ have declared extensions since this is invalid in
+ FHIR (and HAPI would just ignore them anyhow). Thanks
+ to Thomas S Berg for reporting!
+
+
+ Standard HAPI zip/tar distributions did not include the project
+ sources and JavaDoc JARs. Thanks to Keith Boone for pointing
+ this out!
+
+
+ Server AuthorizationInterceptor always rejects history operation
+ at the type level even if rules should allow it.
+
+
+ JPA server terminology service was not correctly validating or expanding codes
+ in SNOMED CT or LOINC code systems. Thanks to David Hay for reporting!
+
+
+ Attempting to search for an invalid resource type (e.g. GET base/FooResource) should
+ return an HTTP 404 and not a 400, per the HTTP spec. Thanks to
+ GitHub user @CarthageKing for the pull request!
+
+
+ When parsing a Bundle containing placeholder fullUrls and references
+ (e.g. "urn:uuid:0000-0000") the resource reference targets did not get
+ populated with the given resources. Note that as a part of this
+ change, IdType and IdDt]]> have been modified
+ so that when parsing a placeholder ID, the complete placeholder including the
+ "urn:uuid:" or "urn:oid:" prefix will be placed into the ID part. Previously,
+ the prefix was treated as the base URL, which led to strange behaviour
+ like the placeholder being treated as a real IDs. Thanks to GitHub
+ user @jodue for reporting!
+
+
+ Declared extensions with multiple type() options listed in the @Child
+ annotation caused a crash on startup. Now this is supported.
+
+
+ STU3 XHTML parser for narrative choked if the narrative contained
+ an &rsquot;]]> entity string.
+
+
+ When parsing a quantity parameter on the server with a
+ value and units but no system (e.g.
+ GET [base]/Observation?value=5.4||mg]]>)
+ the unit was incorrectly treated as the system. Thanks to
+ @CarthageKing for the pull request!
+
+
+ Correct a typo in the JPA ValueSet ResourceProvider which prevented
+ successful operation under Spring 4.3. Thanks to
+ Robbert van Waveren for the pull request!
+
+
+ Deprecate the method
+ ICompositeElement#getAllPopulatedChildElementsOfType(Class)]]>
+ as it is no longer used by HAPI and is just an annoying step
+ in creating custom structures. Thanks to Allan Bro Hansen
+ for pointing this out.
+
+
+ CapturingInterceptor did not buffer the response meaning
+ that in many circumstances it did not actually capture
+ the response. Thanks to Jenny Syed of Cerner for
+ the pull request and contribution!
+
+
+ Clean up dependencies and remove Eclipse project files from git. Thanks to
+ @sekaijin for the pull request!
+
+
Bump the version of a few dependencies to the
@@ -237,6 +355,35 @@
Declared extensions with multiple type() options listed in the @Child
annotation caused a crash on startup. Now this is supported.
+
+ STU3 XHTML parser for narrative choked if the narrative contained
+ an &rsquot;]]> entity string.
+
+
+ When parsing a quantity parameter on the server with a
+ value and units but no system (e.g.
+ GET [base]/Observation?value=5.4||mg]]>)
+ the unit was incorrectly treated as the system. Thanks to
+ @CarthageKing for the pull request!
+
+
+ Correct a typo in the JPA ValueSet ResourceProvider which prevented
+ successful operation under Spring 4.3. Thanks to
+ Robbert van Waveren for the pull request!
+
+
+ Deprecate the method
+ ICompositeElement#getAllPopulatedChildElementsOfType(Class)]]>
+ as it is no longer used by HAPI and is just an annoying step
+ in creating custom structures. Thanks to Allan Bro Hansen
+ for pointing this out.
+
+
+ CapturingInterceptor did not buffer the response meaning
+ that in many circumstances it did not actually capture
+ the response. Thanks to Jenny Syed of Cerner for
+ the pull request and contribution!
+
diff --git a/src/site/xdoc/doc_resource_references.xml b/src/site/xdoc/doc_resource_references.xml
index 84071153644..fc29addb9c8 100644
--- a/src/site/xdoc/doc_resource_references.xml
+++ b/src/site/xdoc/doc_resource_references.xml
@@ -209,7 +209,7 @@ System.out.println(encoded);]]>
-
+
By default, HAPI will strip resource versions from references between resources.