public abstract class FieldMap extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected TreeMap<Integer,Field<?>> |
fields |
protected TreeMap<Integer,List<Group>> |
groups |
Modifier | Constructor and Description |
---|---|
protected |
FieldMap() |
protected |
FieldMap(int[] fieldOrder)
Constructs a FieldMap with the given field order.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group) |
void |
addGroupRef(Group group) |
protected void |
calculateString(StringBuilder buffer,
int[] preFields,
int[] postFields) |
void |
clear() |
boolean |
getBoolean(int field) |
char |
getChar(int field) |
char[] |
getChars(int field) |
protected void |
getComponent(MessageComponent component) |
BigDecimal |
getDecimal(int field) |
double |
getDouble(int field) |
BooleanField |
getField(BooleanField field) |
BytesField |
getField(BytesField field) |
CharField |
getField(CharField field) |
DecimalField |
getField(DecimalField field) |
DoubleField |
getField(DoubleField field) |
IntField |
getField(IntField field) |
StringField |
getField(StringField field) |
UtcDateOnlyField |
getField(UtcDateOnlyField field) |
UtcTimeOnlyField |
getField(UtcTimeOnlyField field) |
UtcTimeStampField |
getField(UtcTimeStampField field) |
int[] |
getFieldOrder()
Returns the order of fields in the group.
|
Group |
getGroup(int num,
Group group) |
Group |
getGroup(int num,
int groupTag) |
int |
getGroupCount(int tag)
Returns the number of groups associated with the specified count tag.
|
List<Group> |
getGroups(int field) |
int |
getInt(int field) |
Optional<BigDecimal> |
getOptionalDecimal(int field) |
Optional<String> |
getOptionalString(int field) |
String |
getString(int field) |
LocalDate |
getUtcDateOnly(int field) |
LocalTime |
getUtcTimeOnly(int field) |
LocalDateTime |
getUtcTimeStamp(int field) |
Iterator<Integer> |
groupKeyIterator() |
boolean |
hasGroup(Group group) |
boolean |
hasGroup(int field) |
boolean |
hasGroup(int num,
Group group) |
boolean |
hasGroup(int num,
int field) |
protected static int |
indexOf(int field,
int[] fieldOrder) |
protected void |
initializeFrom(FieldMap source) |
boolean |
isEmpty() |
boolean |
isSetField(Field<?> field) |
boolean |
isSetField(int field) |
Iterator<Field<?>> |
iterator() |
void |
removeField(int field) |
void |
removeGroup(Group group) |
void |
removeGroup(int field) |
void |
removeGroup(int num,
Group group) |
void |
removeGroup(int num,
int field) |
void |
replaceGroup(int num,
Group group) |
void |
reset() |
void |
setBoolean(int field,
boolean value) |
void |
setBytes(int field,
byte[] value) |
void |
setChar(int field,
char value) |
void |
setChars(int field,
char... value) |
protected void |
setComponent(MessageComponent component) |
void |
setDecimal(int field,
BigDecimal value) |
void |
setDecimal(int field,
BigDecimal value,
int padding) |
void |
setDouble(int field,
double value) |
void |
setDouble(int field,
double value,
int padding) |
void |
setField(BooleanField field) |
void |
setField(BytesField field) |
void |
setField(CharField field) |
void |
setField(DecimalField field) |
void |
setField(DoubleField field) |
void |
setField(IntField field) |
void |
setField(int key,
Field<?> field) |
void |
setField(StringField field) |
void |
setField(UtcDateOnlyField field) |
void |
setField(UtcTimeOnlyField field) |
void |
setField(UtcTimeStampField field) |
void |
setFields(FieldMap fieldMap) |
protected void |
setGroupCount(int countTag,
int groupSize) |
void |
setGroups(FieldMap fieldMap) |
protected void |
setGroups(int key,
List<Group> groupList) |
void |
setInt(int field,
int value) |
void |
setString(int field,
String value) |
void |
setUtcDateOnly(int field,
LocalDate value) |
void |
setUtcTimeOnly(int field,
LocalTime value) |
void |
setUtcTimeOnly(int field,
LocalTime value,
boolean includeMilliseconds) |
void |
setUtcTimeOnly(int field,
LocalTime value,
UtcTimestampPrecision precision) |
void |
setUtcTimeStamp(int field,
LocalDateTime value) |
void |
setUtcTimeStamp(int field,
LocalDateTime value,
boolean includeMilliseconds) |
void |
setUtcTimeStamp(int field,
LocalDateTime value,
UtcTimestampPrecision precision) |
protected FieldMap(int[] fieldOrder)
fieldOrder
- the field order, or null if there is noneprotected FieldMap()
public int[] getFieldOrder()
public void clear()
public void reset()
public boolean isEmpty()
protected static int indexOf(int field, int[] fieldOrder)
public void setFields(FieldMap fieldMap)
protected void setComponent(MessageComponent component)
protected void getComponent(MessageComponent component)
public void setGroups(FieldMap fieldMap)
public void setString(int field, String value)
public void setBytes(int field, byte[] value)
public void setBoolean(int field, boolean value)
public void setChar(int field, char value)
public void setChars(int field, char... value)
public void setInt(int field, int value)
public void setDouble(int field, double value)
public void setDouble(int field, double value, int padding)
public void setDecimal(int field, BigDecimal value)
public void setDecimal(int field, BigDecimal value, int padding)
public void setUtcTimeStamp(int field, LocalDateTime value)
public void setUtcTimeStamp(int field, LocalDateTime value, boolean includeMilliseconds)
public void setUtcTimeStamp(int field, LocalDateTime value, UtcTimestampPrecision precision)
public void setUtcTimeOnly(int field, LocalTime value)
public void setUtcTimeOnly(int field, LocalTime value, boolean includeMilliseconds)
public void setUtcTimeOnly(int field, LocalTime value, UtcTimestampPrecision precision)
public void setUtcDateOnly(int field, LocalDate value)
public String getString(int field) throws FieldNotFound
FieldNotFound
public boolean getBoolean(int field) throws FieldNotFound
FieldNotFound
public char getChar(int field) throws FieldNotFound
FieldNotFound
public char[] getChars(int field) throws FieldNotFound
FieldNotFound
public int getInt(int field) throws FieldNotFound
FieldNotFound
public double getDouble(int field) throws FieldNotFound
FieldNotFound
public BigDecimal getDecimal(int field) throws FieldNotFound
FieldNotFound
public Optional<BigDecimal> getOptionalDecimal(int field)
public LocalDateTime getUtcTimeStamp(int field) throws FieldNotFound
FieldNotFound
public LocalTime getUtcTimeOnly(int field) throws FieldNotFound
FieldNotFound
public LocalDate getUtcDateOnly(int field) throws FieldNotFound
FieldNotFound
public void setField(int key, Field<?> field)
public void setField(StringField field)
public void setField(BooleanField field)
public void setField(CharField field)
public void setField(IntField field)
public void setField(DoubleField field)
public void setField(DecimalField field)
public void setField(UtcTimeStampField field)
public void setField(UtcTimeOnlyField field)
public void setField(UtcDateOnlyField field)
public void setField(BytesField field)
public BytesField getField(BytesField field) throws FieldNotFound
FieldNotFound
public StringField getField(StringField field) throws FieldNotFound
FieldNotFound
public BooleanField getField(BooleanField field) throws FieldNotFound
FieldNotFound
public CharField getField(CharField field) throws FieldNotFound
FieldNotFound
public IntField getField(IntField field) throws FieldNotFound
FieldNotFound
public DoubleField getField(DoubleField field) throws FieldNotFound
FieldNotFound
public DecimalField getField(DecimalField field) throws FieldNotFound
FieldNotFound
public UtcTimeStampField getField(UtcTimeStampField field) throws FieldNotFound
FieldNotFound
public UtcTimeOnlyField getField(UtcTimeOnlyField field) throws FieldNotFound
FieldNotFound
public UtcDateOnlyField getField(UtcDateOnlyField field) throws FieldNotFound
FieldNotFound
public boolean isSetField(int field)
public boolean isSetField(Field<?> field)
public void removeField(int field)
protected void initializeFrom(FieldMap source)
protected void calculateString(StringBuilder buffer, int[] preFields, int[] postFields)
public int getGroupCount(int tag)
tag
- the count tag numberpublic void addGroup(Group group)
public void addGroupRef(Group group)
protected void setGroupCount(int countTag, int groupSize)
public Group getGroup(int num, Group group) throws FieldNotFound
FieldNotFound
public Group getGroup(int num, int groupTag) throws FieldNotFound
FieldNotFound
public void replaceGroup(int num, Group group)
public void removeGroup(int field)
public void removeGroup(int num, int field)
public void removeGroup(int num, Group group)
public void removeGroup(Group group)
public boolean hasGroup(int field)
public boolean hasGroup(int num, int field)
public boolean hasGroup(int num, Group group)
public boolean hasGroup(Group group)
Copyright © 2021. All rights reserved.