public class DecimalTagMapper extends java.lang.Object implements TagMapper
TagMapper
provides mappings between decimal tags and subfields.Modifier and Type | Field and Description |
---|---|
protected int |
tagSize |
Modifier | Constructor and Description |
---|---|
protected |
DecimalTagMapper(int tagSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getFieldNumberForTag(int fieldNumber,
java.lang.String tag)
Convert passed
tag to subfield number. |
java.lang.String |
getTagForField(int fieldNumber,
int subFieldNumber)
Convert
subFieldNumber to tag. |
public java.lang.String getTagForField(int fieldNumber, int subFieldNumber)
subFieldNumber
to tag.getTagForField
in interface TagMapper
fieldNumber
- field number (used only in exception message)subFieldNumber
- sufield number to convertsubFieldNumber
public java.lang.Integer getFieldNumberForTag(int fieldNumber, java.lang.String tag)
tag
to subfield number.getFieldNumberForTag
in interface TagMapper
fieldNumber
- field number (used only in exception message)tag
- tag to convert