Restore build

This commit is contained in:
James Agnew 2019-07-17 17:28:04 -04:00
parent 857db5f868
commit eef45d0100
3 changed files with 26 additions and 8 deletions

View File

@ -64,7 +64,7 @@ import java.io.ObjectOutput;
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64 * Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
*/ */
@DatatypeDef(name = "base64Binary") @DatatypeDef(name = "base64Binary")
public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable { public class Base64BinaryType extends PrimitiveType<byte[]> implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable {
private static final long serialVersionUID = 3L; private static final long serialVersionUID = 3L;
private byte[] myValue; private byte[] myValue;
@ -137,8 +137,14 @@ public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IB
} }
@Override @Override
public IPrimitiveType<byte[]> setValue(byte[] theValue) throws IllegalArgumentException { public Base64BinaryType setValue(byte[] theValue) throws IllegalArgumentException {
myValue = theValue; myValue = theValue;
return this; return this;
} }
@Override
public boolean hasValue() {
return myValue != null && myValue.length > 0;
}
} }

View File

@ -65,7 +65,7 @@ import java.io.ObjectOutput;
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64 * Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
*/ */
@DatatypeDef(name = "base64Binary") @DatatypeDef(name = "base64Binary")
public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable { public class Base64BinaryType extends PrimitiveType<byte[]> implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable {
private static final long serialVersionUID = 3L; private static final long serialVersionUID = 3L;
private byte[] myValue; private byte[] myValue;
@ -138,8 +138,14 @@ public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IB
} }
@Override @Override
public IPrimitiveType<byte[]> setValue(byte[] theValue) throws IllegalArgumentException { public Base64BinaryType setValue(byte[] theValue) throws IllegalArgumentException {
myValue = theValue; myValue = theValue;
return this; return this;
} }
@Override
public boolean hasValue() {
return myValue != null && myValue.length > 0;
}
} }

View File

@ -50,9 +50,9 @@ package org.hl7.fhir.r5.model;
import ca.uhn.fhir.model.api.IElement; import ca.uhn.fhir.model.api.IElement;
import org.apache.commons.codec.binary.Base64;
import ca.uhn.fhir.model.api.annotation.DatatypeDef; import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.StringUtils;
import org.hl7.fhir.instance.model.api.IBaseHasExtensions; import org.hl7.fhir.instance.model.api.IBaseHasExtensions;
import org.hl7.fhir.instance.model.api.IPrimitiveType; import org.hl7.fhir.instance.model.api.IPrimitiveType;
@ -65,7 +65,7 @@ import java.io.ObjectOutput;
* Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64 * Primitive type "base64Binary" in FHIR: a sequence of bytes represented in base64
*/ */
@DatatypeDef(name = "base64Binary") @DatatypeDef(name = "base64Binary")
public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable { public class Base64BinaryType extends PrimitiveType<byte[]> implements IPrimitiveType<byte[]>, IBaseHasExtensions, IElement, Externalizable {
private static final long serialVersionUID = 3L; private static final long serialVersionUID = 3L;
private byte[] myValue; private byte[] myValue;
@ -138,8 +138,14 @@ public class Base64BinaryType extends Type implements IPrimitiveType<byte[]>, IB
} }
@Override @Override
public IPrimitiveType<byte[]> setValue(byte[] theValue) throws IllegalArgumentException { public Base64BinaryType setValue(byte[] theValue) throws IllegalArgumentException {
myValue = theValue; myValue = theValue;
return this; return this;
} }
@Override
public boolean hasValue() {
return myValue != null && myValue.length > 0;
}
} }