Package com.solab.iso8583.codecs
Class CompositeField
- java.lang.Object
-
- com.solab.iso8583.codecs.CompositeField
-
- All Implemented Interfaces:
CustomBinaryField<CompositeField>
,CustomField<CompositeField>
,CustomFieldDecoder<CompositeField>
,CustomFieldEncoder<CompositeField>
public class CompositeField extends java.lang.Object implements CustomBinaryField<CompositeField>
A codec to manage subfields inside a field of a certain type.
-
-
Constructor Summary
Constructors Constructor Description CompositeField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeField
addParser(FieldParseInfo fpi)
CompositeField
addValue(IsoValue<?> v)
<T> CompositeField
addValue(T val, CustomField<T> encoder, IsoType t, int length)
CompositeField
decodeBinaryField(byte[] buf, int offset, int length)
CompositeField
decodeField(java.lang.String value)
byte[]
encodeBinaryField(CompositeField value)
java.lang.String
encodeField(CompositeField value)
<T> IsoValue<T>
getField(int idx)
<T> T
getObjectValue(int idx)
java.util.List<FieldParseInfo>
getParsers()
java.util.List<IsoValue>
getValues()
void
setParsers(java.util.List<FieldParseInfo> fpis)
void
setValues(java.util.List<IsoValue> values)
java.lang.String
toString()
-
-
-
Method Detail
-
setValues
public void setValues(java.util.List<IsoValue> values)
-
getValues
public java.util.List<IsoValue> getValues()
-
addValue
public CompositeField addValue(IsoValue<?> v)
-
addValue
public <T> CompositeField addValue(T val, CustomField<T> encoder, IsoType t, int length)
-
getField
public <T> IsoValue<T> getField(int idx)
-
getObjectValue
public <T> T getObjectValue(int idx)
-
setParsers
public void setParsers(java.util.List<FieldParseInfo> fpis)
-
getParsers
public java.util.List<FieldParseInfo> getParsers()
-
addParser
public CompositeField addParser(FieldParseInfo fpi)
-
decodeBinaryField
public CompositeField decodeBinaryField(byte[] buf, int offset, int length)
- Specified by:
decodeBinaryField
in interfaceCustomBinaryField<CompositeField>
-
decodeField
public CompositeField decodeField(java.lang.String value)
- Specified by:
decodeField
in interfaceCustomFieldDecoder<CompositeField>
-
encodeBinaryField
public byte[] encodeBinaryField(CompositeField value)
- Specified by:
encodeBinaryField
in interfaceCustomBinaryField<CompositeField>
-
encodeField
public java.lang.String encodeField(CompositeField value)
- Specified by:
encodeField
in interfaceCustomFieldEncoder<CompositeField>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-