public class Coding
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Coding.Builder
RecordBuilder for Coding instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Coding()
Default constructor.
|
Coding(String id,
String system,
String version,
String code,
String display,
Boolean userSelected)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<Coding> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static Coding |
fromByteBuffer(ByteBuffer b)
Deserializes a Coding from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
String |
getCode()
Gets the value of the 'code' field.
|
static org.apache.avro.message.BinaryMessageDecoder<Coding> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getDisplay()
Gets the value of the 'display' field.
|
String |
getId()
Gets the value of the 'id' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getSystem()
Gets the value of the 'system' field.
|
Boolean |
getUserSelected()
Gets the value of the 'userSelected' field.
|
String |
getVersion()
Gets the value of the 'version' field.
|
static Coding.Builder |
newBuilder()
Creates a new Coding RecordBuilder.
|
static Coding.Builder |
newBuilder(Coding.Builder other)
Creates a new Coding RecordBuilder by copying an existing Builder.
|
static Coding.Builder |
newBuilder(Coding other)
Creates a new Coding RecordBuilder by copying an existing Coding instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCode(String value)
Sets the value of the 'code' field.
|
void |
setDisplay(String value)
Sets the value of the 'display' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setSystem(String value)
Sets the value of the 'system' field.
|
void |
setUserSelected(Boolean value)
Sets the value of the 'userSelected' field.
|
void |
setVersion(String value)
Sets the value of the 'version' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Coding to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Coding()
newBuilder().public Coding(String id, String system, String version, String code, String display, Boolean userSelected)
id - Field for FHIR property idsystem - Field for FHIR property systemversion - Field for FHIR property versioncode - Field for FHIR property codedisplay - Field for FHIR property displayuserSelected - Field for FHIR property userSelectedpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Coding> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Coding> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static Coding fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getId()
public void setId(String value)
value - the value to set.public String getSystem()
public void setSystem(String value)
value - the value to set.public String getVersion()
public void setVersion(String value)
value - the value to set.public String getCode()
public void setCode(String value)
value - the value to set.public String getDisplay()
public void setDisplay(String value)
value - the value to set.public Boolean getUserSelected()
public void setUserSelected(Boolean value)
value - the value to set.public static Coding.Builder newBuilder()
public static Coding.Builder newBuilder(Coding.Builder other)
other - The existing builder to copy.public static Coding.Builder newBuilder(Coding other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2020. All rights reserved.