public class RelatedArtifact
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
RelatedArtifact.Builder
RecordBuilder for RelatedArtifact instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
RelatedArtifact()
Default constructor.
|
RelatedArtifact(String id,
String type,
String display,
String citation,
String url,
Attachment document,
ResourceReference resource)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<RelatedArtifact> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static RelatedArtifact |
fromByteBuffer(ByteBuffer b)
Deserializes a RelatedArtifact from a ByteBuffer.
|
Object |
get(int field$) |
String |
getCitation()
Gets the value of the 'citation' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<RelatedArtifact> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getDisplay()
Gets the value of the 'display' field.
|
Attachment |
getDocument()
Gets the value of the 'document' field.
|
String |
getId()
Gets the value of the 'id' field.
|
ResourceReference |
getResource()
Gets the value of the 'resource' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getType()
Gets the value of the 'type' field.
|
String |
getUrl()
Gets the value of the 'url' field.
|
static RelatedArtifact.Builder |
newBuilder()
Creates a new RelatedArtifact RecordBuilder.
|
static RelatedArtifact.Builder |
newBuilder(RelatedArtifact.Builder other)
Creates a new RelatedArtifact RecordBuilder by copying an existing Builder.
|
static RelatedArtifact.Builder |
newBuilder(RelatedArtifact other)
Creates a new RelatedArtifact RecordBuilder by copying an existing RelatedArtifact instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCitation(String value)
Sets the value of the 'citation' field.
|
void |
setDisplay(String value)
Sets the value of the 'display' field.
|
void |
setDocument(Attachment value)
Sets the value of the 'document' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setResource(ResourceReference value)
Sets the value of the 'resource' field.
|
void |
setType(String value)
Sets the value of the 'type' field.
|
void |
setUrl(String value)
Sets the value of the 'url' field.
|
ByteBuffer |
toByteBuffer()
Serializes this RelatedArtifact to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public RelatedArtifact()
newBuilder().public RelatedArtifact(String id, String type, String display, String citation, String url, Attachment document, ResourceReference resource)
id - Field for FHIR property idtype - Field for FHIR property typedisplay - Field for FHIR property displaycitation - Field for FHIR property citationurl - Field for FHIR property urldocument - Field for FHIR property documentresource - Field for FHIR property resourcepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<RelatedArtifact> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<RelatedArtifact> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static RelatedArtifact 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 getType()
public void setType(String value)
value - the value to set.public String getDisplay()
public void setDisplay(String value)
value - the value to set.public String getCitation()
public void setCitation(String value)
value - the value to set.public String getUrl()
public void setUrl(String value)
value - the value to set.public Attachment getDocument()
public void setDocument(Attachment value)
value - the value to set.public ResourceReference getResource()
public void setResource(ResourceReference value)
value - the value to set.public static RelatedArtifact.Builder newBuilder()
public static RelatedArtifact.Builder newBuilder(RelatedArtifact.Builder other)
other - The existing builder to copy.public static RelatedArtifact.Builder newBuilder(RelatedArtifact 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.