Site fixes
This commit is contained in:
parent
2c52f78eb5
commit
1808896b28
|
@ -223,6 +223,11 @@
|
||||||
<artifactId>maven-jxr-plugin</artifactId>
|
<artifactId>maven-jxr-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>findbugs-maven-plugin</artifactId>
|
||||||
|
<version>2.5.3</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||||
|
@ -411,6 +416,7 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package ca.uhn.fhir.model.api;
|
package ca.uhn.fhir.model.api;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
|
|
||||||
public abstract class BasePrimitive<T> extends BaseElement implements IPrimitiveDatatype<T> {
|
public abstract class BasePrimitive<T> extends BaseElement implements IPrimitiveDatatype<T> {
|
||||||
|
|
||||||
|
@ -13,4 +15,21 @@ public abstract class BasePrimitive<T> extends BaseElement implements IPrimitive
|
||||||
return getClass().getSimpleName() + "[" + getValueAsString() + "]";
|
return getClass().getSimpleName() + "[" + getValueAsString() + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return new HashCodeBuilder().append(getValue()).toHashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (!(obj.getClass() == getClass())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
BasePrimitive<?> o = (BasePrimitive<?>)obj;
|
||||||
|
|
||||||
|
EqualsBuilder b = new EqualsBuilder();
|
||||||
|
b.append(getValue(), o.getValue());
|
||||||
|
return b.isEquals();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class SearchMethodBinding extends BaseResourceReturningMethodBinding {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public GetClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException {
|
public GetClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException {
|
||||||
assert (myQueryName == null || ((theArgs != null ? theArgs.length : 0) == myParameters.size())) : "Wrong number of arguments: " + theArgs;
|
assert (myQueryName == null || ((theArgs != null ? theArgs.length : 0) == myParameters.size())) : "Wrong number of arguments: " + (theArgs!=null?theArgs.length:"null");
|
||||||
|
|
||||||
Map<String, List<String>> queryStringArgs = new LinkedHashMap<String, List<String>>();
|
Map<String, List<String>> queryStringArgs = new LinkedHashMap<String, List<String>>();
|
||||||
|
|
||||||
|
|
|
@ -100,19 +100,19 @@ public class PrettyPrintWriterWrapper implements XMLStreamWriter {
|
||||||
@Override
|
@Override
|
||||||
public void writeEmptyElement(String theNamespaceURI, String theLocalName) throws XMLStreamException {
|
public void writeEmptyElement(String theNamespaceURI, String theLocalName) throws XMLStreamException {
|
||||||
indent();
|
indent();
|
||||||
writeEmptyElement(theNamespaceURI, theLocalName);
|
myTarget.writeEmptyElement(theNamespaceURI, theLocalName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException {
|
public void writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException {
|
||||||
indent();
|
indent();
|
||||||
writeEmptyElement(thePrefix, theLocalName, theNamespaceURI);
|
myTarget.writeEmptyElement(thePrefix, theLocalName, theNamespaceURI);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeEmptyElement(String theLocalName) throws XMLStreamException {
|
public void writeEmptyElement(String theLocalName) throws XMLStreamException {
|
||||||
indent();
|
indent();
|
||||||
writeEmptyElement(theLocalName);
|
myTarget.writeEmptyElement(theLocalName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -826,9 +826,6 @@
|
||||||
<param name="file" value="src/site/example/java/example/RestfulPatientResourceProviderMore.java" />
|
<param name="file" value="src/site/example/java/example/RestfulPatientResourceProviderMore.java" />
|
||||||
</macro>
|
</macro>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The following snippet shows how to define various history methods in a client.
|
The following snippet shows how to define various history methods in a client.
|
||||||
</p>
|
</p>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -30,8 +30,10 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>hapi-fhir-base</module>
|
<module>hapi-fhir-base</module>
|
||||||
<module>hapi-tinder-plugin</module>
|
<module>hapi-tinder-plugin</module>
|
||||||
|
<!--
|
||||||
<module>hapi-tinder-test</module>
|
<module>hapi-tinder-test</module>
|
||||||
<module>hapi-fhir-structures-dstu</module>
|
<module>hapi-fhir-structures-dstu</module>
|
||||||
|
-->
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
Loading…
Reference in New Issue