Package eu.europa.ted.eforms.sdk.entity
Class SdkCodelist
- java.lang.Object
-
- eu.europa.ted.eforms.sdk.entity.SdkCodelist
-
- All Implemented Interfaces:
Comparable<SdkCodelist>
- Direct Known Subclasses:
SdkCodelist06,SdkCodelist07,SdkCodelistV1
public abstract class SdkCodelist extends Object implements Comparable<SdkCodelist>
Representation of an SdkCodelist for usage in the symbols map.- Author:
- rouschr
-
-
Constructor Summary
Constructors Constructor Description SdkCodelist(String codelistId, String codelistVersion, List<String> codes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SdkCodelist cl)booleanequals(Object obj)StringgetCodelistId()List<String>getCodes()StringgetVersion()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SdkCodelist
public SdkCodelist(String codelistId, String codelistVersion, List<String> codes)
- Parameters:
codelistId- The identifier, not really unique as the version also matters, see .gc LongName tag. Inside the same SDK we should not have different versions of the same file.codelistVersion- The codelist version string, see Version tag in .gc files. This is NOT the SDK version. It can be useful for debug purposes and to avoid conflicts.
-
-
Method Detail
-
getCodelistId
public String getCodelistId()
-
getVersion
public String getVersion()
-
compareTo
public int compareTo(SdkCodelist cl)
- Specified by:
compareToin interfaceComparable<SdkCodelist>
-
-