public class Base64BinaryType extends PrimitiveType<byte[]> implements org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>, org.hl7.fhir.instance.model.api.IBaseHasExtensions, ca.uhn.fhir.model.api.IElement, Externalizable
| Constructor and Description |
|---|
Base64BinaryType()
Constructor
|
Base64BinaryType(byte[] theBytes) |
Base64BinaryType(String theValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidBase64(String toCheck)
Checks if the passed in String is a valid
Base64 encoded String. |
Base64BinaryType |
copy() |
protected String |
encode(byte[] theValue)
Subclasses must override to convert a "coerced" value into an encoded one.
|
String |
fhirType() |
byte[] |
getValue() |
String |
getValueAsString() |
boolean |
hasValue() |
boolean |
isEmpty() |
protected byte[] |
parse(String theValue)
Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
|
void |
readExternal(ObjectInput in) |
Base64BinaryType |
setValue(byte[] theValue) |
void |
setValueAsString(String theValue) |
protected Type |
typedCopy() |
void |
writeExternal(ObjectOutput out) |
asStringValue, equalsDeep, equalsShallow, forceStringValue, fpValue, fromStringValue, getProperty, getTypesForProperty, hashCode, hasPrimitiveValue, isPrimitive, makeProperty, primitiveValue, setProperty, setProperty, toString, updateStringValueaddChild, addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, getNamedProperty, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, listChildren, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isResource, listChildrenByName, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDatapublic Base64BinaryType()
public Base64BinaryType(byte[] theBytes)
public Base64BinaryType(String theValue)
protected byte[] parse(String theValue)
PrimitiveTypeparse in class PrimitiveType<byte[]>theValue - Will not be nullprotected String encode(byte[] theValue)
PrimitiveTypeencode in class PrimitiveType<byte[]>theValue - Will not be nullpublic Base64BinaryType copy()
copy in class PrimitiveType<byte[]>protected Type typedCopy()
typedCopy in class PrimitiveType<byte[]>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class PrimitiveType<byte[]>IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class PrimitiveType<byte[]>IOExceptionClassNotFoundExceptionpublic String getValueAsString()
getValueAsString in interface org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>getValueAsString in class PrimitiveType<byte[]>public void setValueAsString(String theValue) throws IllegalArgumentException
setValueAsString in interface org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>setValueAsString in class PrimitiveType<byte[]>IllegalArgumentExceptionpublic byte[] getValue()
getValue in interface org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>getValue in class PrimitiveType<byte[]>public Base64BinaryType setValue(byte[] theValue) throws IllegalArgumentException
setValue in interface org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>setValue in class PrimitiveType<byte[]>IllegalArgumentExceptionpublic boolean hasValue()
hasValue in interface org.hl7.fhir.instance.model.api.IPrimitiveType<byte[]>hasValue in class PrimitiveType<byte[]>public boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class PrimitiveType<byte[]>public void checkValidBase64(String toCheck) throws ca.uhn.fhir.parser.DataFormatException
Base64 encoded String. Will throw a DataFormatException if not
formatted correctly.toCheck - String to check if valid Base64ca.uhn.fhir.parser.DataFormatExceptionCopyright © 2014–2021 Health Level 7. All rights reserved.