@Beta public class Correspondence extends Object implements IMimdMetadataValue, INestedKlvValue
| Constructor and Description |
|---|
Correspondence()
Create a new empty Correspondence local set.
|
Correspondence(byte[] bytes)
Construct Correspondence Local Set from encoded bytes.
|
Correspondence(byte[] data,
int offset,
int numBytes)
Build a Correspondence Local Set from encoded bytes.
|
Correspondence(Map<CorrespondenceMetadataKey,IMimdMetadataValue> values)
Create the Correspondence local set from the given key/value pairs.
|
| Modifier and Type | Method and Description |
|---|---|
static Correspondence |
fromBytes(byte[] bytes)
Create Correspondence Local Set from encoded bytes.
|
byte[] |
getBytes()
Get the encoded bytes.
|
Correspondence_Col |
getCol()
Get the
col attribute value. |
MimdIdReference |
getCrossRef()
Get the
crossRef attribute value. |
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
IKlvValue |
getField(IKlvKey tag)
Get the value of a given item.
|
Set<? extends IKlvKey> |
getIdentifiers()
Get the set of identifiers for populated values.
|
MimdId |
getMimdId()
Get the
mimdId attribute value. |
NumericalPrecision |
getNumericPrecision()
Get the
numericPrecision attribute value. |
Position |
getPosition()
Get the
position attribute value. |
Range |
getRange()
Get the
range attribute value. |
Correspondence_Row |
getRow()
Get the
row attribute value. |
MimdIdReference |
getSecurity()
Get the
security attribute value. |
MimdIdReference |
getTimer()
Get the
timer attribute value. |
Base_TimerOffset |
getTimerOffset()
Get the
timerOffset attribute value. |
CorrType |
getType()
Get the
type attribute value. |
void |
setCol(Correspondence_Col col)
Set the
col attribute value. |
void |
setCrossRef(MimdIdReference crossRef)
Set the
crossRef attribute value. |
void |
setMimdId(MimdId mimdId)
Set the
mimdId attribute value. |
void |
setNumericPrecision(NumericalPrecision numericPrecision)
Set the
numericPrecision attribute value. |
void |
setPosition(Position position)
Set the
position attribute value. |
void |
setRange(Range range)
Set the
range attribute value. |
void |
setRow(Correspondence_Row row)
Set the
row attribute value. |
void |
setSecurity(MimdIdReference security)
Set the
security attribute value. |
void |
setTimer(MimdIdReference timer)
Set the
timer attribute value. |
void |
setTimerOffset(Base_TimerOffset timerOffset)
Set the
timerOffset attribute value. |
void |
setType(CorrType type)
Set the
type attribute value. |
public Correspondence()
public Correspondence(Map<CorrespondenceMetadataKey,IMimdMetadataValue> values)
values - Tag/value pairs to be included in the local setpublic Correspondence(byte[] data,
int offset,
int numBytes)
throws KlvParseException
data - the bytes to build from.offset - the offset into bytes to start parsing from.numBytes - the number of bytes to parse.KlvParseException - if parsing fails (depending on InvalidDataHandler strategy)public Correspondence(byte[] bytes)
throws KlvParseException
bytes - Encoded byte array.KlvParseException - if the array could not be parsedpublic MimdId getMimdId()
mimdId attribute value.public void setMimdId(MimdId mimdId)
mimdId attribute value.mimdId - the MimdId value to set.public MimdIdReference getTimer()
timer attribute value.MimdIdReference value, or null if not set.public void setTimer(MimdIdReference timer)
timer attribute value.timer - the MimdIdReference value to set.public Base_TimerOffset getTimerOffset()
timerOffset attribute value.public void setTimerOffset(Base_TimerOffset timerOffset)
timerOffset attribute value.timerOffset - the org.jmisb.api.klv.st1904.Base_TimerOffset value to set.public NumericalPrecision getNumericPrecision()
numericPrecision attribute value.public void setNumericPrecision(NumericalPrecision numericPrecision)
numericPrecision attribute value.numericPrecision - the NumericPrecision value to set.public MimdIdReference getSecurity()
security attribute value.MimdIdReference value, or null if not set.public void setSecurity(MimdIdReference security)
security attribute value.security - the MimdIdReference value to set.public Correspondence_Col getCol()
col attribute value.public void setCol(Correspondence_Col col)
col attribute value.col - the org.jmisb.api.klv.st1907.Correspondence_Col value to set.public Correspondence_Row getRow()
row attribute value.public void setRow(Correspondence_Row row)
row attribute value.row - the org.jmisb.api.klv.st1907.Correspondence_Row value to set.public CorrType getType()
type attribute value.public void setType(CorrType type)
type attribute value.type - the Type value to set.public MimdIdReference getCrossRef()
crossRef attribute value.MimdIdReference value, or null if not set.public void setCrossRef(MimdIdReference crossRef)
crossRef attribute value.crossRef - the MimdIdReference value to set.public Position getPosition()
position attribute value.public void setPosition(Position position)
position attribute value.position - the Position value to set.public Range getRange()
range attribute value.public void setRange(Range range)
range attribute value.range - the Range value to set.public static Correspondence fromBytes(byte[] bytes) throws KlvParseException
bytes - Encoded byte arrayKlvParseException - if the array could not be parsedpublic byte[] getBytes()
IMimdMetadataValuegetBytes in interface IMimdMetadataValuepublic String getDisplayName()
IKlvValuegetDisplayName in interface IKlvValuepublic String getDisplayableValue()
IKlvValuegetDisplayableValue in interface IKlvValuepublic IKlvValue getField(IKlvKey tag)
INestedKlvValuegetField in interface INestedKlvValuetag - Tag or other identifier of the value to retrievepublic Set<? extends IKlvKey> getIdentifiers()
INestedKlvValuegetIdentifiers in interface INestedKlvValueCopyright © 2022 West Ridge Systems. All rights reserved.