public class CountryCodingMethodUtilities extends Object
These methods are only valid for "Tag 12" values, such as Object Country Coding in ST0102 and Country Codes in ST0601.
They are not valid for ST0102 Tag 2 "Classifying Country and Releasing Instructions Country Coding Method".
Constructor and Description |
---|
CountryCodingMethodUtilities() |
Modifier and Type | Method and Description |
---|---|
static CountryCodingMethod |
getMethodForValue(int value)
Convert the given country coding method to an enumerated value.
|
static byte |
getValueForCodingMethod(CountryCodingMethod method)
Convert the given country coding method to an encoded value.
|
public static byte getValueForCodingMethod(CountryCodingMethod method) throws IllegalArgumentException
This method is only valid for "Tag 12" values, such as Object Country Coding in ST0102 and Country Codes in ST0601.
It is not valid for ST0102 Tag 2 "Classifying Country and Releasing Instructions Country Coding Method".
method
- the country coding methodIllegalArgumentException
- if the country coding method is not validpublic static CountryCodingMethod getMethodForValue(int value)
This method is only valid for "Tag 12" values, such as Object Country Coding in ST0102 and Country Codes in ST0601.
It is not valid for ST0102 Tag 2 "Classifying Country and Releasing Instructions Country Coding Method".
value
- the encoded country coding method, or OMITTED_VALUE for unknown.Copyright © 2022 West Ridge Systems. All rights reserved.