├── .gitignore ├── _config.yml ├── epctagcoder ├── .gitignore ├── .settings │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.jdt.core.prefs ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── epctagcoder │ │ │ ├── exception │ │ │ └── EPCParseException.java │ │ │ ├── option │ │ │ ├── PrefixLength.java │ │ │ ├── GSRN │ │ │ │ ├── GSRNTagSize.java │ │ │ │ ├── GSRNFilterValue.java │ │ │ │ ├── GSRNHeader.java │ │ │ │ └── partitionTable │ │ │ │ │ └── GSRNPartitionTableList.java │ │ │ ├── SSCC │ │ │ │ ├── SSCCTagSize.java │ │ │ │ ├── SSCCFilterValue.java │ │ │ │ ├── SSCCExtensionDigit.java │ │ │ │ ├── SSCCHeader.java │ │ │ │ └── partitionTable │ │ │ │ │ └── SSCCPartitionTableList.java │ │ │ ├── GSRNP │ │ │ │ ├── GSRNPTagSize.java │ │ │ │ ├── GSRNPHeader.java │ │ │ │ ├── GSRNPFilterValue.java │ │ │ │ └── partitionTable │ │ │ │ │ └── GSRNPPartitionTableList.java │ │ │ ├── CPI │ │ │ │ ├── CPIFilterValue.java │ │ │ │ ├── CPIHeader.java │ │ │ │ ├── CPITagSize.java │ │ │ │ └── partitionTable │ │ │ │ │ └── CPIPartitionTableList.java │ │ │ ├── GDTI │ │ │ │ ├── GDTIFilterValue.java │ │ │ │ ├── GDTIHeader.java │ │ │ │ ├── partitionTable │ │ │ │ │ └── GDTIPartitionTableList.java │ │ │ │ └── GDTITagSize.java │ │ │ ├── GIAI │ │ │ │ ├── GIAIFilterValue.java │ │ │ │ ├── GIAIHeader.java │ │ │ │ ├── GIAITagSize.java │ │ │ │ └── partitionTable │ │ │ │ │ └── GIAIPartitionTableList.java │ │ │ ├── GRAI │ │ │ │ ├── GRAIFilterValue.java │ │ │ │ ├── GRAIHeader.java │ │ │ │ ├── partitionTable │ │ │ │ │ └── GRAIPartitionTableList.java │ │ │ │ └── GRAITagSize.java │ │ │ ├── SGLN │ │ │ │ ├── SGLNFilterValue.java │ │ │ │ ├── SGLNHeader.java │ │ │ │ ├── partitionTable │ │ │ │ │ └── SGLNPartitionTableList.java │ │ │ │ └── SGLNTagSize.java │ │ │ ├── SGTIN │ │ │ │ ├── SGTINFilterValue.java │ │ │ │ ├── SGTINExtensionDigit.java │ │ │ │ ├── SGTINHeader.java │ │ │ │ ├── partitionTable │ │ │ │ │ └── SGTINPartitionTableList.java │ │ │ │ └── SGTINTagSize.java │ │ │ └── TableItem.java │ │ │ └── result │ │ │ ├── GIAI.java │ │ │ ├── GSRNP.java │ │ │ ├── CPI.java │ │ │ ├── GDTI.java │ │ │ ├── SSCC.java │ │ │ ├── GRAI.java │ │ │ ├── SGLN.java │ │ │ ├── SGTIN.java │ │ │ ├── GSRN.java │ │ │ └── Base.java │ └── test │ │ └── java │ │ └── org │ │ └── epctagcoder │ │ └── parse │ │ └── SGTIN │ │ └── TestParseSGTINWithRfidTag.java ├── .eclipse-pmd ├── doc │ ├── package-list │ ├── org │ │ └── epctagcoder │ │ │ ├── util │ │ │ ├── package-frame.html │ │ │ ├── package-use.html │ │ │ ├── class-use │ │ │ │ └── Converter.html │ │ │ ├── package-tree.html │ │ │ └── package-summary.html │ │ │ ├── option │ │ │ ├── CPI │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ ├── package-use.html │ │ │ │ │ └── class-use │ │ │ │ │ │ └── CPIPartitionTableList.html │ │ │ │ └── package-frame.html │ │ │ ├── GDTI │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ ├── package-use.html │ │ │ │ │ └── class-use │ │ │ │ │ │ └── GDTIPartitionTableList.html │ │ │ │ └── package-frame.html │ │ │ ├── GRAI │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ ├── package-use.html │ │ │ │ │ └── class-use │ │ │ │ │ │ └── GRAIPartitionTableList.html │ │ │ │ └── package-frame.html │ │ │ ├── GSRN │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ └── package-use.html │ │ │ │ └── package-frame.html │ │ │ ├── SSCC │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ └── package-use.html │ │ │ │ └── package-frame.html │ │ │ ├── SGTIN │ │ │ │ ├── partitionTable │ │ │ │ │ ├── package-frame.html │ │ │ │ │ └── package-use.html │ │ │ │ └── package-frame.html │ │ │ └── package-frame.html │ │ │ ├── result │ │ │ ├── package-frame.html │ │ │ └── class-use │ │ │ │ ├── GIAI.html │ │ │ │ ├── SGLN.html │ │ │ │ └── GSRNP.html │ │ │ └── parse │ │ │ ├── GSRN │ │ │ └── package-frame.html │ │ │ ├── GDTI │ │ │ └── package-frame.html │ │ │ ├── CPI │ │ │ └── package-frame.html │ │ │ ├── GRAI │ │ │ └── package-frame.html │ │ │ ├── SSCC │ │ │ └── package-frame.html │ │ │ └── SGTIN │ │ │ └── package-frame.html │ ├── script.js │ ├── index.html │ ├── overview-frame.html │ ├── deprecated-list.html │ └── constant-values.html ├── pom.xml ├── .classpath └── .project ├── .gitattributes ├── .github └── FUNDING.yml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /epctagcoder/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /How to add Google Analytics Tracking ID to GitHub Pages - Stack Overflow.url 3 | /JAutodoc - Eclipse Plugin.url 4 | -------------------------------------------------------------------------------- /epctagcoder/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /epctagcoder/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.java linguist-detectable=true 2 | *.js linguist-detectable=false 3 | *.html linguist-detectable=false 4 | *.xml linguist-detectable=false 5 | *.css linguist-detectable=false 6 | -------------------------------------------------------------------------------- /epctagcoder/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/exception/EPCParseException.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.exception; 2 | 3 | public class EPCParseException extends Exception { 4 | 5 | public EPCParseException(String message) { 6 | super(message); 7 | } 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /epctagcoder/.eclipse-pmd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: ["https://www.paypal.com/donate?hosted_button_id=HC57PQV9TXCAC"] 13 | -------------------------------------------------------------------------------- /epctagcoder/doc/package-list: -------------------------------------------------------------------------------- 1 | org.epctagcoder.option 2 | org.epctagcoder.option.CPI 3 | org.epctagcoder.option.CPI.partitionTable 4 | org.epctagcoder.option.GDTI 5 | org.epctagcoder.option.GDTI.partitionTable 6 | org.epctagcoder.option.GRAI 7 | org.epctagcoder.option.GRAI.partitionTable 8 | org.epctagcoder.option.GSRN 9 | org.epctagcoder.option.GSRN.partitionTable 10 | org.epctagcoder.option.SGTIN 11 | org.epctagcoder.option.SGTIN.partitionTable 12 | org.epctagcoder.option.SSCC 13 | org.epctagcoder.option.SSCC.partitionTable 14 | org.epctagcoder.parse.CPI 15 | org.epctagcoder.parse.GDTI 16 | org.epctagcoder.parse.GRAI 17 | org.epctagcoder.parse.GSRN 18 | org.epctagcoder.parse.SGTIN 19 | org.epctagcoder.parse.SSCC 20 | org.epctagcoder.result 21 | org.epctagcoder.util 22 | -------------------------------------------------------------------------------- /epctagcoder/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 13 | org.eclipse.jdt.core.compiler.release=disabled 14 | org.eclipse.jdt.core.compiler.source=1.8 15 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/PrefixLength.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum PrefixLength { 7 | DIGIT_6(6), 8 | DIGIT_7(7), 9 | DIGIT_8(8), 10 | DIGIT_9(9), 11 | DIGIT_10(10), 12 | DIGIT_11(11), 13 | DIGIT_12(12); 14 | 15 | private int value; 16 | 17 | private PrefixLength(int value) { 18 | this.value = value; 19 | } 20 | 21 | public int getValue() { 22 | return value; 23 | } 24 | 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (PrefixLength rae : PrefixLength.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static PrefixLength forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRN/GSRNTagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GSRNTagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 45; 10 | } 11 | }; 12 | 13 | private int value; 14 | public abstract Integer getHeader(); 15 | 16 | private GSRNTagSize(int value) { 17 | this.value = value; 18 | } 19 | 20 | public int getValue() { 21 | return value; 22 | } 23 | 24 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 25 | static { 26 | for (GSRNTagSize rae : GSRNTagSize.values()) { 27 | BY_CODE_MAP.put(rae.value, rae); 28 | } 29 | } 30 | 31 | public static GSRNTagSize forCode(int code) { 32 | return BY_CODE_MAP.get(code); 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SSCC/SSCCTagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SSCC; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SSCCTagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 49; 10 | } 11 | }; 12 | 13 | private int value; 14 | public abstract Integer getHeader(); 15 | 16 | private SSCCTagSize(int value) { 17 | this.value = value; 18 | } 19 | 20 | public int getValue() { 21 | return value; 22 | } 23 | 24 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 25 | static { 26 | for (SSCCTagSize rae : SSCCTagSize.values()) { 27 | BY_CODE_MAP.put(rae.value, rae); 28 | } 29 | } 30 | 31 | public static SSCCTagSize forCode(int code) { 32 | return BY_CODE_MAP.get(code); 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRNP/GSRNPTagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRNP; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GSRNPTagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 46; 10 | } 11 | }; 12 | 13 | private int value; 14 | public abstract Integer getHeader(); 15 | 16 | private GSRNPTagSize(int value) { 17 | this.value = value; 18 | } 19 | 20 | public int getValue() { 21 | return value; 22 | } 23 | 24 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 25 | static { 26 | for (GSRNPTagSize rae : GSRNPTagSize.values()) { 27 | BY_CODE_MAP.put(rae.value, rae); 28 | } 29 | } 30 | 31 | public static GSRNPTagSize forCode(int code) { 32 | return BY_CODE_MAP.get(code); 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/util/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.util 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.util

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRNP/GSRNPHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRNP; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GSRNPHeader { 7 | HEADER_00101110("00101110") { 8 | public Integer getTagSize() { 9 | return 96; 10 | } 11 | }; 12 | 13 | private String value; 14 | public abstract Integer getTagSize(); 15 | 16 | 17 | private GSRNPHeader(String value) { 18 | this.value = value; 19 | } 20 | 21 | public String getValue() { 22 | return value; 23 | } 24 | 25 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 26 | static { 27 | for (GSRNPHeader rae : GSRNPHeader.values()) { 28 | BY_CODE_MAP.put(rae.value, rae); 29 | } 30 | } 31 | 32 | public static GSRNPHeader forCode(String code) { 33 | return BY_CODE_MAP.get(code); 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/CPI/CPIFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.CPI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum CPIFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private CPIFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (CPIFilterValue rae : CPIFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static CPIFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/doc/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GDTI/GDTIFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GDTI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GDTIFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private GDTIFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GDTIFilterValue rae : GDTIFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GDTIFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GIAI/GIAIFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GIAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GIAIFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private GIAIFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GIAIFilterValue rae : GIAIFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GIAIFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GRAI/GRAIFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GRAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GRAIFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private GRAIFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GRAIFilterValue rae : GRAIFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GRAIFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRN/GSRNFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GSRNFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private GSRNFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GSRNFilterValue rae : GSRNFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GSRNFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SSCC/SSCCFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SSCC; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SSCCFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | CASE_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | UNIT_LOAD_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private SSCCFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (SSCCFilterValue rae : SSCCFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static SSCCFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGLN/SGLNFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGLN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SGLNFilterValue { 7 | 8 | ALL_OTHERS_0(0), 9 | RESERVED_1(1), 10 | RESERVED_2(2), 11 | RESERVED_3(3), 12 | RESERVED_4(4), 13 | RESERVED_5(5), 14 | RESERVED_6(6), 15 | RESERVED_7(7); 16 | 17 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 18 | 19 | static { 20 | for (SGLNFilterValue rae : SGLNFilterValue.values()) { 21 | BY_CODE_MAP.put(rae.value, rae); 22 | } 23 | } 24 | 25 | private int value; 26 | 27 | private SGLNFilterValue(int value) { 28 | this.value = value; 29 | } 30 | 31 | public static SGLNFilterValue forCode(int code) { 32 | return BY_CODE_MAP.get(code); 33 | } 34 | 35 | public int getValue() { 36 | return this.value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRNP/GSRNPFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRNP; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GSRNPFilterValue { 7 | ALL_OTHERS_0(0), 8 | RESERVED_1(1), 9 | RESERVED_2(2), 10 | RESERVED_3(3), 11 | RESERVED_4(4), 12 | RESERVED_5(5), 13 | RESERVED_6(6), 14 | RESERVED_7(7); 15 | 16 | private int value; 17 | 18 | private GSRNPFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GSRNPFilterValue rae : GSRNPFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GSRNPFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGTIN/SGTINFilterValue.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGTIN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SGTINFilterValue { 7 | ALL_OTHERS_0(0), 8 | POS_ITEM_1(1), 9 | CASE_2(2), 10 | RESERVED_3(3), 11 | INNER_PACK_4(4), 12 | RESERVED_5(5), 13 | UNIT_LOAD_6(6), 14 | COMPONENT_7(7); 15 | 16 | private int value; 17 | 18 | private SGTINFilterValue(int value) { 19 | this.value = value; 20 | } 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (SGTINFilterValue rae : SGTINFilterValue.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static SGTINFilterValue forCode(int code) { 34 | return BY_CODE_MAP.get(code); 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /epctagcoder/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | org.epctagcoder 6 | epctagcoder 7 | 0.0.9-SNAPSHOT 8 | jar 9 | 10 | epctagcoder 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 9 16 | 9 17 | 18 | 19 | 20 | 21 | 22 | junit 23 | junit 24 | 4.13.2 25 | test 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GIAI/GIAIHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GIAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GIAIHeader { 7 | HEADER_00110100("00110100") { 8 | public Integer getTagSize() { 9 | return 96; 10 | } 11 | }, 12 | HEADER_00111000("00111000") { 13 | public Integer getTagSize() { 14 | return 202; 15 | } 16 | }; 17 | 18 | private String value; 19 | public abstract Integer getTagSize(); 20 | 21 | 22 | private GIAIHeader(String value) { 23 | this.value = value; 24 | } 25 | 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 31 | static { 32 | for (GIAIHeader rae : GIAIHeader.values()) { 33 | BY_CODE_MAP.put(rae.value, rae); 34 | } 35 | } 36 | 37 | public static GIAIHeader forCode(String code) { 38 | return BY_CODE_MAP.get(code); 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/CPI/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.CPI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.CPI.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SSCC/SSCCExtensionDigit.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SSCC; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SSCCExtensionDigit { 7 | EXTENSION_0(0), 8 | EXTENSION_1(1), 9 | EXTENSION_2(2), 10 | EXTENSION_3(3), 11 | EXTENSION_4(4), 12 | EXTENSION_5(5), 13 | EXTENSION_6(6), 14 | EXTENSION_7(7), 15 | EXTENSION_8(8), 16 | EXTENSION_9(9); 17 | 18 | private int value; 19 | 20 | private SSCCExtensionDigit(int value) { 21 | this.value = value; 22 | } 23 | 24 | public int getValue() { 25 | return value; 26 | } 27 | 28 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 29 | static { 30 | for (SSCCExtensionDigit rae : SSCCExtensionDigit.values()) { 31 | BY_CODE_MAP.put(rae.value, rae); 32 | } 33 | } 34 | 35 | public static SSCCExtensionDigit forCode(int code) { 36 | return BY_CODE_MAP.get(code); 37 | } 38 | 39 | 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGTIN/SGTINExtensionDigit.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGTIN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SGTINExtensionDigit { 7 | EXTENSION_0(0), 8 | EXTENSION_1(1), 9 | EXTENSION_2(2), 10 | EXTENSION_3(3), 11 | EXTENSION_4(4), 12 | EXTENSION_5(5), 13 | EXTENSION_6(6), 14 | EXTENSION_7(7), 15 | EXTENSION_8(8), 16 | EXTENSION_9(9); 17 | 18 | private int value; 19 | 20 | private SGTINExtensionDigit(int value) { 21 | this.value = value; 22 | } 23 | 24 | public int getValue() { 25 | return value; 26 | } 27 | 28 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 29 | static { 30 | for (SGTINExtensionDigit rae : SGTINExtensionDigit.values()) { 31 | BY_CODE_MAP.put(rae.value, rae); 32 | } 33 | } 34 | 35 | public static SGTINExtensionDigit forCode(int code) { 36 | return BY_CODE_MAP.get(code); 37 | } 38 | 39 | 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GDTI/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GDTI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GDTI.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GRAI/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GRAI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GRAI.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GSRN/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GSRN.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GSRN.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SSCC/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.SSCC.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.SSCC.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SGTIN/partitionTable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.SGTIN.partitionTable 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.SGTIN.partitionTable

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option

13 |
14 |

Classes

15 | 18 |

Enums

19 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /epctagcoder/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SSCC/SSCCHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SSCC; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SSCCHeader { 7 | HEADER_00110001("00110001") { 8 | public Integer getTagSize() { 9 | return 96; 10 | } 11 | }; 12 | 13 | private String value; 14 | public abstract Integer getTagSize(); 15 | 16 | 17 | private SSCCHeader(String value) { 18 | this.value = value; 19 | } 20 | 21 | public String getValue() { 22 | return value; 23 | } 24 | 25 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 26 | static { 27 | for (SSCCHeader rae : SSCCHeader.values()) { 28 | BY_CODE_MAP.put(rae.value, rae); 29 | } 30 | } 31 | 32 | public static SSCCHeader forCode(String code) { 33 | SSCCHeader header = BY_CODE_MAP.get(code); 34 | 35 | if (header==null) { 36 | throw new IllegalArgumentException(String.format("SSCC header [%s] is invalid. Allowed only 00110001", code)); 37 | } 38 | 39 | return header; 40 | } 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRN/GSRNHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | 7 | public enum GSRNHeader { 8 | HEADER_00101101("00101101") { 9 | public Integer getTagSize() { 10 | return 96; 11 | } 12 | }; 13 | 14 | private String value; 15 | public abstract Integer getTagSize(); 16 | 17 | 18 | private GSRNHeader(String value) { 19 | this.value = value; 20 | } 21 | 22 | public String getValue() { 23 | return value; 24 | } 25 | 26 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 27 | static { 28 | for (GSRNHeader rae : GSRNHeader.values()) { 29 | BY_CODE_MAP.put(rae.value, rae); 30 | } 31 | } 32 | 33 | public static GSRNHeader forCode(String code) { 34 | GSRNHeader header = BY_CODE_MAP.get(code); 35 | 36 | if (header==null) { 37 | throw new IllegalArgumentException(String.format("GSRN header [%s] is invalid. Allowed only 00101101", code)); 38 | } 39 | 40 | return header; 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/CPI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.CPI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.CPI

13 |
14 |

Enums

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GDTI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GDTI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GDTI

13 |
14 |

Enums

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GRAI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GRAI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GRAI

13 |
14 |

Enums

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GSRN/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.GSRN 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.GSRN

13 |
14 |

Enums

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GRAI/GRAIHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GRAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | 7 | public enum GRAIHeader { 8 | HEADER_00110011("00110011") { 9 | public Integer getTagSize() { 10 | return 96; 11 | } 12 | }, 13 | HEADER_00110111("00110111") { 14 | public Integer getTagSize() { 15 | return 170; 16 | } 17 | }; 18 | 19 | private String value; 20 | public abstract Integer getTagSize(); 21 | 22 | 23 | private GRAIHeader(String value) { 24 | this.value = value; 25 | } 26 | 27 | public String getValue() { 28 | return value; 29 | } 30 | 31 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 32 | static { 33 | for (GRAIHeader rae : GRAIHeader.values()) { 34 | BY_CODE_MAP.put(rae.value, rae); 35 | } 36 | } 37 | 38 | public static GRAIHeader forCode(String code) { 39 | GRAIHeader header = BY_CODE_MAP.get(code); 40 | 41 | if (header==null) { 42 | throw new IllegalArgumentException(String.format("GRAI header [%s] is invalid. Allowed only 00110011 or 00110111", code)); 43 | } 44 | 45 | return header; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GDTI/GDTIHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GDTI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | 7 | public enum GDTIHeader { 8 | HEADER_00101100("00101100") { 9 | public Integer getTagSize() { 10 | return 96; 11 | } 12 | }, 13 | HEADER_00111110("00111110") { 14 | public Integer getTagSize() { 15 | return 174; 16 | } 17 | }; 18 | 19 | private String value; 20 | public abstract Integer getTagSize(); 21 | 22 | 23 | private GDTIHeader(String value) { 24 | this.value = value; 25 | } 26 | 27 | public String getValue() { 28 | return value; 29 | } 30 | 31 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 32 | static { 33 | for (GDTIHeader rae : GDTIHeader.values()) { 34 | BY_CODE_MAP.put(rae.value, rae); 35 | } 36 | } 37 | 38 | public static GDTIHeader forCode(String code) { 39 | GDTIHeader header = BY_CODE_MAP.get(code); 40 | 41 | if (header==null) { 42 | throw new IllegalArgumentException(String.format("GDTI header [%s] is invalid. Allowed only 00101100 or 00111110", code)); 43 | } 44 | 45 | return header; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/CPI/CPIHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.CPI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | 7 | 8 | public enum CPIHeader { 9 | HEADER_00111100("00111100") { 10 | public Integer getTagSize() { 11 | return 96; 12 | } 13 | }, 14 | HEADER_00111101("00111101") { 15 | public Integer getTagSize() { 16 | return 0; //null; // variable 17 | } 18 | }; 19 | 20 | private String value; 21 | public abstract Integer getTagSize(); 22 | 23 | 24 | private CPIHeader(String value) { 25 | this.value = value; 26 | } 27 | 28 | public String getValue() { 29 | return value; 30 | } 31 | 32 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 33 | static { 34 | for (CPIHeader rae : CPIHeader.values()) { 35 | BY_CODE_MAP.put(rae.value, rae); 36 | } 37 | } 38 | 39 | public static CPIHeader forCode(String code) { 40 | CPIHeader header = BY_CODE_MAP.get(code); 41 | 42 | if (header==null) { 43 | throw new IllegalArgumentException(String.format("CPI header [%s] is invalid. Allowed only 00111100 or 00111101", code)); 44 | } 45 | 46 | return header; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGLN/SGLNHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGLN; 2 | 3 | 4 | import java.util.LinkedHashMap; 5 | import java.util.Map; 6 | 7 | public enum SGLNHeader { 8 | 9 | HEADER_00110010("00110010") { 10 | public Integer getTagSize() { 11 | return 96; 12 | } 13 | }, 14 | HEADER_00111001("00111001") { 15 | public Integer getTagSize() { 16 | return 195; 17 | } 18 | }; 19 | 20 | private String value; 21 | public abstract Integer getTagSize(); 22 | 23 | 24 | private SGLNHeader(String value) { 25 | this.value = value; 26 | } 27 | 28 | public String getValue() { 29 | return value; 30 | } 31 | 32 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 33 | static { 34 | for (SGLNHeader rae : SGLNHeader.values()) { 35 | BY_CODE_MAP.put(rae.value, rae); 36 | } 37 | } 38 | 39 | public static SGLNHeader forCode(String code) { 40 | SGLNHeader header = BY_CODE_MAP.get(code); 41 | 42 | if (header==null) { 43 | throw new IllegalArgumentException(String.format("SGLN header [%s] is invalid. Allowed only 00110010 or 00111001", code)); 44 | } 45 | 46 | return header; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/TableItem.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option; 2 | 3 | public class TableItem { 4 | private int partitionValue; 5 | private int l; 6 | private int m; 7 | private int n; 8 | private int digits; 9 | 10 | 11 | public TableItem(int partitionValue, int m, int l, int n, int digits) { 12 | this.partitionValue = partitionValue; 13 | this.m = m; 14 | this.l = l; 15 | this.n = n; 16 | this.digits = digits; 17 | } 18 | 19 | 20 | public int getPartitionValue() { 21 | return partitionValue; 22 | } 23 | 24 | 25 | public void setPartitionValue(int partitionValue) { 26 | this.partitionValue = partitionValue; 27 | } 28 | 29 | 30 | public int getL() { 31 | return l; 32 | } 33 | 34 | 35 | public void setL(int l) { 36 | this.l = l; 37 | } 38 | 39 | 40 | public int getM() { 41 | return m; 42 | } 43 | 44 | 45 | public void setM(int m) { 46 | this.m = m; 47 | } 48 | 49 | 50 | public int getN() { 51 | return n; 52 | } 53 | 54 | 55 | public void setN(int n) { 56 | this.n = n; 57 | } 58 | 59 | 60 | public int getDigits() { 61 | return digits; 62 | } 63 | 64 | 65 | public void setDigits(int digits) { 66 | this.digits = digits; 67 | } 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SSCC/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.SSCC 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.SSCC

13 |
14 |

Enums

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SGTIN/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.option.SGTIN 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.option.SGTIN

13 |
14 |

Enums

15 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGTIN/SGTINHeader.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGTIN; 2 | 3 | import org.epctagcoder.exception.EPCParseException; 4 | 5 | import java.util.LinkedHashMap; 6 | import java.util.Map; 7 | 8 | public enum SGTINHeader { 9 | HEADER_00110000("00110000") { 10 | public Integer getTagSize() { 11 | return 96; 12 | } 13 | }, 14 | HEADER_00110110("00110110") { 15 | public Integer getTagSize() { 16 | return 198; 17 | } 18 | }; 19 | 20 | private final String value; 21 | public abstract Integer getTagSize(); 22 | 23 | 24 | SGTINHeader(String value) { 25 | this.value = value; 26 | } 27 | 28 | public String getValue() { 29 | return value; 30 | } 31 | 32 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 33 | static { 34 | for (SGTINHeader rae : SGTINHeader.values()) { 35 | BY_CODE_MAP.put(rae.value, rae); 36 | } 37 | } 38 | 39 | public static SGTINHeader forCode(String code) throws EPCParseException { 40 | SGTINHeader header = BY_CODE_MAP.get(code); 41 | 42 | if (header==null) { 43 | throw new EPCParseException(String.format("SGTIN header [%s] is invalid. Allowed only 00110000 or 00110110", code)); 44 | } 45 | 46 | return header; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRN/partitionTable/GSRNPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRN.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | 8 | 9 | public class GSRNPartitionTableList { 10 | static final private List list = new ArrayList(); 11 | 12 | static { 13 | list.add( new TableItem(0, 40, 12, 18, 5) ); 14 | list.add( new TableItem(1, 37, 11, 21, 6) ); 15 | list.add( new TableItem(2, 34, 10, 24, 7) ); 16 | list.add( new TableItem(3, 30, 9, 28, 8) ); 17 | list.add( new TableItem(4, 27, 8, 31, 9) ); 18 | list.add( new TableItem(5, 24, 7, 34, 10) ); 19 | list.add( new TableItem(6, 20, 6, 38, 11) ); 20 | } 21 | 22 | public GSRNPartitionTableList() { 23 | 24 | } 25 | 26 | public TableItem getPartitionByL(Integer index) { 27 | TableItem tableItem = null; 28 | for (TableItem item : list) { 29 | if (item.getL()==index) { 30 | tableItem = item; 31 | break; 32 | } 33 | } 34 | return tableItem; 35 | } 36 | 37 | public TableItem getPartitionByValue(Integer index) { 38 | TableItem tableItem = null; 39 | for (TableItem item : list) { 40 | if (item.getPartitionValue()==index) { 41 | tableItem = item; 42 | break; 43 | } 44 | } 45 | return tableItem; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SSCC/partitionTable/SSCCPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SSCC.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | 8 | 9 | public class SSCCPartitionTableList { 10 | static final private List list = new ArrayList(); 11 | 12 | static { 13 | list.add( new TableItem(0, 40, 12, 18, 5) ); 14 | list.add( new TableItem(1, 37, 11, 21, 6) ); 15 | list.add( new TableItem(2, 34, 10, 24, 7) ); 16 | list.add( new TableItem(3, 30, 9, 28, 8) ); 17 | list.add( new TableItem(4, 27, 8, 31, 9) ); 18 | list.add( new TableItem(5, 24, 7, 34, 10) ); 19 | list.add( new TableItem(6, 20, 6, 38, 11) ); 20 | } 21 | 22 | public SSCCPartitionTableList() { 23 | 24 | } 25 | 26 | public TableItem getPartitionByL(Integer index) { 27 | TableItem tableItem = null; 28 | for (TableItem item : list) { 29 | if (item.getL()==index) { 30 | tableItem = item; 31 | break; 32 | } 33 | } 34 | return tableItem; 35 | } 36 | 37 | public TableItem getPartitionByValue(Integer index) { 38 | TableItem tableItem = null; 39 | for (TableItem item : list) { 40 | if (item.getPartitionValue()==index) { 41 | tableItem = item; 42 | break; 43 | } 44 | } 45 | return tableItem; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GDTI/partitionTable/GDTIPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GDTI.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | 8 | 9 | public class GDTIPartitionTableList { 10 | static final private List list = new ArrayList(); 11 | 12 | static { 13 | list.add( new TableItem(0, 40, 12, 1, 0) ); 14 | list.add( new TableItem(1, 37, 11, 4, 1) ); 15 | list.add( new TableItem(2, 34, 10, 7, 2) ); 16 | list.add( new TableItem(3, 30, 9, 11, 3) ); 17 | list.add( new TableItem(4, 27, 8, 14, 4) ); 18 | list.add( new TableItem(5, 24, 7, 17, 5) ); 19 | list.add( new TableItem(6, 20, 6, 21, 6) ); 20 | } 21 | 22 | public GDTIPartitionTableList() { 23 | 24 | } 25 | 26 | 27 | public TableItem getPartitionByL(Integer index) { 28 | TableItem tableItem = null; 29 | for (TableItem item : list) { 30 | if (item.getL()==index) { 31 | tableItem = item; 32 | break; 33 | } 34 | } 35 | return tableItem; 36 | } 37 | 38 | public TableItem getPartitionByValue(Integer index) { 39 | TableItem tableItem = null; 40 | for (TableItem item : list) { 41 | if (item.getPartitionValue()==index) { 42 | tableItem = item; 43 | break; 44 | } 45 | } 46 | return tableItem; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GIAI/GIAITagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GIAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GIAITagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 52; 10 | } 11 | public Integer getSerialBitCount() { 12 | return 38; 13 | } 14 | public Integer getSerialMaxLenght() { 15 | return 13; 16 | } 17 | }, 18 | BITS_202(202) { 19 | public Integer getHeader() { 20 | return 56; 21 | } 22 | public Integer getSerialBitCount() { 23 | return 112; 24 | } 25 | public Integer getSerialMaxLenght() { 26 | return 20; 27 | } 28 | }; 29 | 30 | private int value; 31 | public abstract Integer getHeader(); 32 | public abstract Integer getSerialBitCount(); 33 | public abstract Integer getSerialMaxLenght(); 34 | 35 | private GIAITagSize(int value) { 36 | this.value = value; 37 | } 38 | 39 | public int getValue() { 40 | return value; 41 | } 42 | 43 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 44 | static { 45 | for (GIAITagSize rae : GIAITagSize.values()) { 46 | BY_CODE_MAP.put(rae.value, rae); 47 | } 48 | } 49 | 50 | public static GIAITagSize forCode(int code) { 51 | return BY_CODE_MAP.get(code); 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GRAI/partitionTable/GRAIPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GRAI.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | 8 | 9 | public class GRAIPartitionTableList { 10 | static final private List list = new ArrayList(); 11 | 12 | static { 13 | list.add( new TableItem(0, 40, 12, 4, 0) ); 14 | list.add( new TableItem(1, 37, 11, 7, 1) ); 15 | list.add( new TableItem(2, 34, 10, 10, 2) ); 16 | list.add( new TableItem(3, 30, 9, 14, 3) ); 17 | list.add( new TableItem(4, 27, 8, 17, 4) ); 18 | list.add( new TableItem(5, 24, 7, 20, 5) ); 19 | list.add( new TableItem(6, 20, 6, 24, 6) ); 20 | } 21 | 22 | public GRAIPartitionTableList() { 23 | 24 | } 25 | 26 | 27 | public TableItem getPartitionByL(Integer index) { 28 | TableItem tableItem = null; 29 | for (TableItem item : list) { 30 | if (item.getL()==index) { 31 | tableItem = item; 32 | break; 33 | } 34 | } 35 | return tableItem; 36 | } 37 | 38 | public TableItem getPartitionByValue(Integer index) { 39 | TableItem tableItem = null; 40 | for (TableItem item : list) { 41 | if (item.getPartitionValue()==index) { 42 | tableItem = item; 43 | break; 44 | } 45 | } 46 | return tableItem; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GSRNP/partitionTable/GSRNPPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GSRNP.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | 8 | 9 | public class GSRNPPartitionTableList { 10 | static final private List list = new ArrayList(); 11 | 12 | static { 13 | list.add( new TableItem(0, 40, 12, 18, 5) ); 14 | list.add( new TableItem(1, 37, 11, 21, 6) ); 15 | list.add( new TableItem(2, 34, 10, 24, 7) ); 16 | list.add( new TableItem(3, 30, 9, 28, 8) ); 17 | list.add( new TableItem(4, 27, 8, 31, 9) ); 18 | list.add( new TableItem(5, 24, 7, 34, 10) ); 19 | list.add( new TableItem(6, 20, 6, 38, 11) ); 20 | } 21 | 22 | public GSRNPPartitionTableList() { 23 | 24 | } 25 | 26 | public TableItem getPartitionByL(Integer index) { 27 | TableItem tableItem = null; 28 | for (TableItem item : list) { 29 | if (item.getL()==index) { 30 | tableItem = item; 31 | break; 32 | } 33 | } 34 | return tableItem; 35 | } 36 | 37 | public TableItem getPartitionByValue(Integer index) { 38 | TableItem tableItem = null; 39 | for (TableItem item : list) { 40 | if (item.getPartitionValue()==index) { 41 | tableItem = item; 42 | break; 43 | } 44 | } 45 | return tableItem; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | epctagcoder 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.babel.editor.rbeBuilder 20 | 21 | 22 | 23 | 24 | ch.acanda.eclipse.pmd.builder.PMDBuilder 25 | 26 | 27 | 28 | 29 | net.sourceforge.pmd.eclipse.plugin.pmdBuilder 30 | 31 | 32 | 33 | 34 | org.eclipse.m2e.core.maven2Builder 35 | 36 | 37 | 38 | 39 | 40 | org.eclipse.jdt.core.javanature 41 | org.eclipse.m2e.core.maven2Nature 42 | org.eclipse.wst.common.project.facet.core.nature 43 | com.jaspersoft.studio.babel.editor.rbeNature 44 | ch.acanda.eclipse.pmd.builder.PMDNature 45 | net.sourceforge.pmd.eclipse.plugin.pmdNature 46 | 47 | 48 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGLN/partitionTable/SGLNPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGLN.partitionTable; 2 | 3 | import org.epctagcoder.option.TableItem; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | public class SGLNPartitionTableList { 9 | static final private List list = new ArrayList(); 10 | 11 | static { 12 | list.add( new TableItem(0, 40, 12, 1, 0) ); 13 | list.add( new TableItem(1, 37, 11, 4, 1) ); 14 | list.add( new TableItem(2, 34, 10, 7, 2) ); 15 | list.add( new TableItem(3, 30, 9, 11, 3) ); 16 | list.add( new TableItem(4, 27, 8, 14, 4) ); 17 | list.add( new TableItem(5, 24, 7, 17, 5) ); 18 | list.add( new TableItem(6, 20, 6, 21, 6) ); 19 | } 20 | 21 | public SGLNPartitionTableList() { 22 | 23 | } 24 | 25 | 26 | public TableItem getPartitionByL(Integer index) { 27 | TableItem tableItem = null; 28 | for (TableItem item : list) { 29 | if (item.getL()==index) { 30 | tableItem = item; 31 | break; 32 | } 33 | } 34 | return tableItem; 35 | } 36 | 37 | public TableItem getPartitionByValue(Integer index) { 38 | TableItem tableItem = null; 39 | for (TableItem item : list) { 40 | if (item.getPartitionValue()==index) { 41 | tableItem = item; 42 | break; 43 | } 44 | } 45 | return tableItem; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGTIN/partitionTable/SGTINPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGTIN.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.exception.EPCParseException; 7 | import org.epctagcoder.option.TableItem; 8 | 9 | 10 | public class SGTINPartitionTableList { 11 | static final private List list = new ArrayList<>(); 12 | 13 | static { 14 | list.add( new TableItem(0, 40, 12, 4, 1) ); 15 | list.add( new TableItem(1, 37, 11, 7, 2) ); 16 | list.add( new TableItem(2, 34, 10, 10, 3) ); 17 | list.add( new TableItem(3, 30, 9, 14, 4) ); 18 | list.add( new TableItem(4, 27, 8, 17, 5) ); 19 | list.add( new TableItem(5, 24, 7, 20, 6) ); 20 | list.add( new TableItem(6, 20, 6, 24, 7) ); 21 | } 22 | 23 | public SGTINPartitionTableList() { 24 | 25 | } 26 | 27 | 28 | public TableItem getPartitionByL(Integer index) { 29 | TableItem tableItem = null; 30 | for (TableItem item : list) { 31 | if (item.getL()==index) { 32 | tableItem = item; 33 | break; 34 | } 35 | } 36 | return tableItem; 37 | } 38 | 39 | public TableItem getPartitionByValue(int index) throws EPCParseException { 40 | if(index < 0 || index >= list.size()) { 41 | String message = "Partition value %d is not within expected range (0 - %d)"; 42 | throw new EPCParseException(String.format(message, index, list.size() - 1)); 43 | } 44 | 45 | return list.get(index); 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/CPI/CPITagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.CPI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum CPITagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 60; 10 | } 11 | public Integer getSerialBitCount() { 12 | return 31; 13 | } 14 | public Integer getSerialMaxLenght() { 15 | return 0; 16 | } 17 | public Long getSerialMaxValue() { 18 | return 2_147_483_647L; 19 | } 20 | }, 21 | BITS_VARIABLE(0) { 22 | public Integer getHeader() { 23 | return 61; 24 | } 25 | public Integer getSerialBitCount() { 26 | return 40; 27 | } 28 | public Integer getSerialMaxLenght() { 29 | return 12; 30 | } 31 | public Long getSerialMaxValue() { 32 | return null; // not used 33 | } 34 | }; 35 | 36 | private int value; 37 | public abstract Integer getHeader(); 38 | public abstract Integer getSerialBitCount(); 39 | public abstract Integer getSerialMaxLenght(); 40 | public abstract Long getSerialMaxValue(); 41 | 42 | private CPITagSize(int value) { 43 | this.value = value; 44 | } 45 | 46 | public int getValue() { 47 | return value; 48 | } 49 | 50 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 51 | static { 52 | for (CPITagSize rae : CPITagSize.values()) { 53 | BY_CODE_MAP.put(rae.value, rae); 54 | } 55 | } 56 | 57 | public static CPITagSize forCode(int code) { 58 | return BY_CODE_MAP.get(code); 59 | } 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GRAI/GRAITagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GRAI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GRAITagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 51; 10 | } 11 | public Integer getSerialBitCount() { 12 | return 38; 13 | } 14 | public Integer getSerialMaxLenght() { 15 | return 13; 16 | } 17 | public Long getSerialMaxValue() { 18 | return 274_877_906_943L; 19 | } 20 | }, 21 | BITS_170(170) { 22 | public Integer getHeader() { 23 | return 55; 24 | } 25 | public Integer getSerialBitCount() { 26 | return 112; 27 | } 28 | public Integer getSerialMaxLenght() { 29 | return 16; 30 | } 31 | public Long getSerialMaxValue() { 32 | return null; // not used 33 | } 34 | }; 35 | 36 | private int value; 37 | public abstract Integer getHeader(); 38 | public abstract Integer getSerialBitCount(); 39 | public abstract Integer getSerialMaxLenght(); 40 | public abstract Long getSerialMaxValue(); 41 | 42 | private GRAITagSize(int value) { 43 | this.value = value; 44 | } 45 | 46 | public int getValue() { 47 | return value; 48 | } 49 | 50 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 51 | static { 52 | for (GRAITagSize rae : GRAITagSize.values()) { 53 | BY_CODE_MAP.put(rae.value, rae); 54 | } 55 | } 56 | 57 | public static GRAITagSize forCode(int code) { 58 | return BY_CODE_MAP.get(code); 59 | } 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GDTI/GDTITagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GDTI; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum GDTITagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 44; 10 | } 11 | public Integer getSerialBitCount() { 12 | return 41; 13 | } 14 | public Integer getSerialMaxLenght() { 15 | return 13; 16 | } 17 | public Long getSerialMaxValue() { // confirmar isso 18 | return 2_199_023_255_551L; 19 | 20 | } 21 | }, 22 | BITS_174(174) { 23 | public Integer getHeader() { 24 | return 62; 25 | } 26 | public Integer getSerialBitCount() { 27 | return 119; 28 | } 29 | public Integer getSerialMaxLenght() { 30 | return 17; 31 | } 32 | public Long getSerialMaxValue() { 33 | return null; // not used 34 | } 35 | }; 36 | 37 | private int value; 38 | public abstract Integer getHeader(); 39 | public abstract Integer getSerialBitCount(); 40 | public abstract Integer getSerialMaxLenght(); 41 | public abstract Long getSerialMaxValue(); 42 | 43 | private GDTITagSize(int value) { 44 | this.value = value; 45 | } 46 | 47 | public int getValue() { 48 | return value; 49 | } 50 | 51 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 52 | static { 53 | for (GDTITagSize rae : GDTITagSize.values()) { 54 | BY_CODE_MAP.put(rae.value, rae); 55 | } 56 | } 57 | 58 | public static GDTITagSize forCode(int code) { 59 | return BY_CODE_MAP.get(code); 60 | } 61 | 62 | 63 | } 64 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/GIAI.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class GIAI extends Base { 4 | private String individualAssetReference; 5 | 6 | public GIAI() { 7 | 8 | } 9 | 10 | public String getIndividualAssetReference() { 11 | return individualAssetReference; 12 | } 13 | 14 | public void setIndividualAssetReference(String individualAssetReference) { 15 | this.individualAssetReference = individualAssetReference; 16 | } 17 | 18 | 19 | @Override 20 | public String toString() { 21 | StringBuilder json = new StringBuilder(); 22 | 23 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 24 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 25 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 26 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 27 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 28 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 29 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 30 | .append(String.format(", \"individualAssetReference\": \"%s\"", getIndividualAssetReference())) 31 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 32 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 33 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 34 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 35 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 36 | 37 | return json.toString(); 38 | } 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/result/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.result 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.result

13 |
14 |

Classes

15 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGTIN/SGTINTagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGTIN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SGTINTagSize { 7 | BITS_96(96) { 8 | public Integer getHeader() { 9 | return 48; 10 | } 11 | public Integer getSerialBitCount() { 12 | return 38; 13 | } 14 | public Integer getSerialMaxLenght() { 15 | return 11; 16 | } 17 | public Long getSerialMaxValue() { 18 | return 274_877_906_943L; 19 | } 20 | }, 21 | BITS_198(198) { 22 | public Integer getHeader() { 23 | return 54; 24 | } 25 | public Integer getSerialBitCount() { 26 | return 140; 27 | } 28 | public Integer getSerialMaxLenght() { 29 | return 20; 30 | } 31 | public Long getSerialMaxValue() { 32 | return null; // not used 33 | } 34 | }; 35 | 36 | private int value; 37 | public abstract Integer getHeader(); 38 | public abstract Integer getSerialBitCount(); 39 | public abstract Integer getSerialMaxLenght(); 40 | public abstract Long getSerialMaxValue(); 41 | 42 | private SGTINTagSize(int value) { 43 | this.value = value; 44 | } 45 | 46 | public int getValue() { 47 | return value; 48 | } 49 | 50 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 51 | static { 52 | for (SGTINTagSize rae : SGTINTagSize.values()) { 53 | BY_CODE_MAP.put(rae.value, rae); 54 | } 55 | } 56 | 57 | public static SGTINTagSize forCode(int code) { 58 | SGTINTagSize bits = BY_CODE_MAP.get(code); 59 | 60 | if (bits==null) { 61 | throw new IllegalArgumentException(String.format("SGTIN tag size %d is invalid. Only 96 bits or 198 bits supported.", code)); 62 | } 63 | 64 | return bits; 65 | } 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/GSRN/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.GSRN 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.GSRN

13 |
14 |

Interfaces

15 | 22 |

Classes

23 | 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/GSRNP.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class GSRNP extends Base { 4 | private String serviceReference; 5 | private String checkDigit; 6 | 7 | public GSRNP() { 8 | 9 | } 10 | 11 | 12 | public String getServiceReference() { 13 | return serviceReference; 14 | } 15 | 16 | public void setServiceReference(String serviceReference) { 17 | this.serviceReference = serviceReference; 18 | } 19 | 20 | public String getCheckDigit() { 21 | return checkDigit; 22 | } 23 | 24 | public void setCheckDigit(String checkDigit) { 25 | this.checkDigit = checkDigit; 26 | } 27 | 28 | 29 | @Override 30 | public String toString() { 31 | StringBuilder json = new StringBuilder(); 32 | 33 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 34 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 35 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 36 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 37 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 38 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 39 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 40 | .append(String.format(", \"serviceReference\": \"%s\"", getServiceReference())) 41 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 42 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 43 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 44 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 45 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 46 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 47 | 48 | return json.toString(); 49 | } 50 | 51 | 52 | 53 | 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/CPI/partitionTable/CPIPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.CPI.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | import org.epctagcoder.option.CPI.CPITagSize; 8 | 9 | 10 | public class CPIPartitionTableList { 11 | static final private List list = new ArrayList(); 12 | 13 | 14 | 15 | public CPIPartitionTableList(CPITagSize tagSize) { 16 | if ( tagSize.getValue()==96 ) { 17 | list.clear(); 18 | list.add( new TableItem(0, 40, 12, 11, 3) ); 19 | list.add( new TableItem(1, 37, 11, 14, 4) ); 20 | list.add( new TableItem(2, 34, 10, 17, 5) ); 21 | list.add( new TableItem(3, 30, 9, 21, 6) ); 22 | list.add( new TableItem(4, 27, 8, 24, 7) ); 23 | list.add( new TableItem(5, 24, 7, 27, 8) ); 24 | list.add( new TableItem(6, 20, 6, 31, 9) ); 25 | } else { //if ( tagSize.getValue()==202 ) { // variable 26 | list.clear(); 27 | list.add( new TableItem(0, 40, 12, 114, 18) ); 28 | list.add( new TableItem(1, 37, 11, 120, 19) ); 29 | list.add( new TableItem(2, 34, 10, 126, 20) ); 30 | list.add( new TableItem(3, 30, 9, 132, 21) ); 31 | list.add( new TableItem(4, 27, 8, 138, 22) ); 32 | list.add( new TableItem(5, 24, 7, 144, 23) ); 33 | list.add( new TableItem(6, 20, 6, 150, 24) ); 34 | } 35 | } 36 | 37 | 38 | public TableItem getPartitionByL(Integer index) { 39 | TableItem tableItem = null; 40 | for (TableItem item : list) { 41 | if (item.getL()==index) { 42 | tableItem = item; 43 | break; 44 | } 45 | } 46 | return tableItem; 47 | } 48 | 49 | public TableItem getPartitionByValue(Integer index) { 50 | TableItem tableItem = null; 51 | for (TableItem item : list) { 52 | if (item.getPartitionValue()==index) { 53 | tableItem = item; 54 | break; 55 | } 56 | } 57 | return tableItem; 58 | } 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/GIAI/partitionTable/GIAIPartitionTableList.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.GIAI.partitionTable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.epctagcoder.option.TableItem; 7 | import org.epctagcoder.option.GIAI.GIAITagSize; 8 | 9 | 10 | public class GIAIPartitionTableList { 11 | static final private List list = new ArrayList(); 12 | 13 | 14 | public GIAIPartitionTableList(GIAITagSize tagSize) { 15 | if ( tagSize.getValue()==96 ) { 16 | list.clear(); 17 | list.add( new TableItem(0, 40, 12, 42, 13) ); 18 | list.add( new TableItem(1, 37, 11, 45, 14) ); 19 | list.add( new TableItem(2, 34, 10, 48, 15) ); 20 | list.add( new TableItem(3, 30, 9, 52, 16) ); 21 | list.add( new TableItem(4, 27, 8, 55, 17) ); 22 | list.add( new TableItem(5, 24, 7, 58, 18) ); 23 | list.add( new TableItem(6, 20, 6, 62, 19) ); 24 | } else if ( tagSize.getValue()==202 ) { 25 | list.clear(); 26 | list.add( new TableItem(0, 40, 12, 148, 18) ); 27 | list.add( new TableItem(1, 37, 11, 151, 19) ); 28 | list.add( new TableItem(2, 34, 10, 154, 20) ); 29 | list.add( new TableItem(3, 30, 9, 158, 21) ); 30 | list.add( new TableItem(4, 27, 8, 161, 22) ); 31 | list.add( new TableItem(5, 24, 7, 164, 23) ); 32 | list.add( new TableItem(6, 20, 6, 168, 24) ); 33 | } 34 | 35 | 36 | } 37 | 38 | public TableItem getPartitionByL(Integer index) { 39 | TableItem tableItem = null; 40 | for (TableItem item : list) { 41 | if (item.getL()==index) { 42 | tableItem = item; 43 | break; 44 | } 45 | } 46 | return tableItem; 47 | } 48 | 49 | public TableItem getPartitionByValue(Integer index) { 50 | TableItem tableItem = null; 51 | for (TableItem item : list) { 52 | if (item.getPartitionValue()==index) { 53 | tableItem = item; 54 | break; 55 | } 56 | } 57 | return tableItem; 58 | } 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/option/SGLN/SGLNTagSize.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.option.SGLN; 2 | 3 | import java.util.LinkedHashMap; 4 | import java.util.Map; 5 | 6 | public enum SGLNTagSize { 7 | 8 | BITS_96(96) { 9 | @Override 10 | public Integer getHeader() { 11 | return 51; 12 | } 13 | 14 | @Override 15 | public Integer getSerialBitCount() { 16 | return 41; 17 | } 18 | 19 | @Override 20 | public Integer getSerialMaxLenght() { 21 | return 13; 22 | } 23 | 24 | @Override 25 | public Long getSerialMaxValue() { 26 | return 2_199_023_255_551L; 27 | } 28 | }, 29 | BITS_195(195) { 30 | @Override 31 | public Integer getHeader() { 32 | return 55; 33 | } 34 | 35 | @Override 36 | public Integer getSerialBitCount() { 37 | return 140; 38 | } 39 | 40 | @Override 41 | public Integer getSerialMaxLenght() { 42 | return 20; 43 | } 44 | 45 | @Override 46 | public Long getSerialMaxValue() { 47 | return null; // not used 48 | } 49 | }; 50 | 51 | private static final Map BY_CODE_MAP = new LinkedHashMap<>(); 52 | 53 | static { 54 | for (SGLNTagSize rae : SGLNTagSize.values()) { 55 | BY_CODE_MAP.put(rae.value, rae); 56 | } 57 | } 58 | 59 | 60 | private int value; 61 | 62 | private SGLNTagSize(int value) { 63 | this.value = value; 64 | } 65 | 66 | public static SGLNTagSize forCode(int code) { 67 | return BY_CODE_MAP.get(code); 68 | } 69 | 70 | public abstract Integer getHeader(); 71 | 72 | public abstract Integer getSerialBitCount(); 73 | 74 | public abstract Integer getSerialMaxLenght(); 75 | 76 | public abstract Long getSerialMaxValue(); 77 | 78 | public int getValue() { 79 | return value; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/GDTI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.GDTI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.GDTI

13 |
14 |

Interfaces

15 | 23 |

Classes

24 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/CPI.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class CPI extends Base { 4 | private String componentPartReference; 5 | private String serial; 6 | 7 | 8 | 9 | public CPI() { 10 | 11 | } 12 | 13 | 14 | 15 | 16 | @Override 17 | public String toString() { 18 | StringBuilder json = new StringBuilder(); 19 | 20 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 21 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 22 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 23 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 24 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 25 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 26 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 27 | .append(String.format(", \"componentPartReference\": \"%s\"", getComponentPartReference())) 28 | .append(String.format(", \"serial\": \"%s\"", getSerial())) 29 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 30 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 31 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 32 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 33 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 34 | 35 | return json.toString(); 36 | } 37 | 38 | 39 | 40 | 41 | public String getComponentPartReference() { 42 | return componentPartReference; 43 | } 44 | 45 | 46 | 47 | 48 | public void setComponentPartReference(String componentPartReference) { 49 | this.componentPartReference = componentPartReference; 50 | } 51 | 52 | 53 | 54 | 55 | public String getSerial() { 56 | return serial; 57 | } 58 | 59 | 60 | 61 | 62 | public void setSerial(String serial) { 63 | this.serial = serial; 64 | } 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | } 73 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/CPI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.CPI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.CPI

13 |
14 |

Interfaces

15 | 23 |

Classes

24 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/GRAI/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.GRAI 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.GRAI

13 |
14 |

Interfaces

15 | 23 |

Classes

24 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/SSCC/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.SSCC 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.SSCC

13 |
14 |

Interfaces

15 | 23 |

Classes

24 | 27 |
28 | 29 | 30 | -------------------------------------------------------------------------------- /epctagcoder/src/test/java/org/epctagcoder/parse/SGTIN/TestParseSGTINWithRfidTag.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.parse.SGTIN; 2 | 3 | import org.epctagcoder.exception.EPCParseException; 4 | import org.epctagcoder.result.SGTIN; 5 | import org.junit.Test; 6 | 7 | import static org.epctagcoder.parse.SGTIN.ParseSGTIN.Builder; 8 | import static org.junit.Assert.*; 9 | 10 | public class TestParseSGTINWithRfidTag { 11 | 12 | @Test 13 | public void whenRfidTagIsNotGS1_thenParseExceptionIsRaised() { 14 | assertThrows(EPCParseException.class, () -> Builder().withRFIDTag("F45349FB11DF49FA935AB6FF").build()); 15 | } 16 | 17 | @Test 18 | public void whenPartitionIsWrong_thenParseExceptionIsRaised() { 19 | assertThrows(EPCParseException.class, () -> Builder().withRFIDTag("303C83F1B7DD441678901234").build()); 20 | } 21 | 22 | @Test 23 | public void parseEpcSerialTest() throws EPCParseException { 24 | SGTIN sgtin = Builder().withRFIDTag("3024698E2CB1005678901234").build().getSGTIN(); 25 | 26 | assertEquals("96511988276", sgtin.getSerial()); 27 | } 28 | 29 | @Test 30 | public void parseEpcEanTest() throws EPCParseException { 31 | SGTIN sgtin = Builder().withRFIDTag("3024698E2CB1005678901234").build().getSGTIN(); 32 | 33 | assertEquals("141674018641", sgtin.getCompanyPrefix() + sgtin.getItemReference()); 34 | } 35 | 36 | @Test 37 | public void parseEpcFilterTest() throws EPCParseException { 38 | SGTIN sgtin = Builder().withRFIDTag("3024698E2CB1005678901234").build().getSGTIN(); 39 | 40 | assertEquals("1", sgtin.getFilterValue()); 41 | } 42 | 43 | @Test 44 | public void parseEpcPartitionTest() throws EPCParseException { 45 | SGTIN sgtin = Builder().withRFIDTag("30285471BD5A0A5678901234").build().getSGTIN(); 46 | 47 | assertEquals("2", sgtin.getPartitionValue()); 48 | } 49 | 50 | @Test 51 | public void parseNonHexEpc() { 52 | assertThrows(IllegalArgumentException.class, () -> Builder().withRFIDTag("30285471BD5A0A56789G1234").build()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/GDTI.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class GDTI extends Base { 4 | private String docType; 5 | private String serial; 6 | private String checkDigit; 7 | 8 | public GDTI() { 9 | 10 | } 11 | 12 | 13 | public String getDocType() { 14 | return docType; 15 | } 16 | 17 | public void setDocType(String docType) { 18 | this.docType = docType; 19 | } 20 | 21 | public String getSerial() { 22 | return serial; 23 | } 24 | 25 | public void setSerial(String serial) { 26 | this.serial = serial; 27 | } 28 | 29 | public String getCheckDigit() { 30 | return checkDigit; 31 | } 32 | 33 | public void setCheckDigit(String checkDigit) { 34 | this.checkDigit = checkDigit; 35 | } 36 | 37 | 38 | 39 | @Override 40 | public String toString() { 41 | StringBuilder json = new StringBuilder(); 42 | 43 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 44 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 45 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 46 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 47 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 48 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 49 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 50 | .append(String.format(", \"docType\": \"%s\"", getDocType())) 51 | .append(String.format(", \"serial\": \"%s\"", getSerial())) 52 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 53 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 54 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 55 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 56 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 57 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 58 | 59 | return json.toString(); 60 | } 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | } 73 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/SSCC.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class SSCC extends Base { 4 | private String extensionDigit; 5 | private String serial; 6 | private String checkDigit; 7 | 8 | public SSCC() { 9 | 10 | } 11 | 12 | public String getExtensionDigit() { 13 | return extensionDigit; 14 | } 15 | 16 | public void setExtensionDigit(String extensionDigit) { 17 | this.extensionDigit = extensionDigit; 18 | } 19 | 20 | public String getSerial() { 21 | return serial; 22 | } 23 | 24 | public void setSerial(String serial) { 25 | this.serial = serial; 26 | } 27 | 28 | public String getCheckDigit() { 29 | return checkDigit; 30 | } 31 | 32 | public void setCheckDigit(String checkDigit) { 33 | this.checkDigit = checkDigit; 34 | } 35 | 36 | 37 | 38 | @Override 39 | public String toString() { 40 | StringBuilder json = new StringBuilder(); 41 | 42 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 43 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 44 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 45 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 46 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 47 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 48 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 49 | .append(String.format(", \"extensionDigit\": \"%s\"", getExtensionDigit())) 50 | .append(String.format(", \"serial\": \"%s\"", getSerial())) 51 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 52 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 53 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 54 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 55 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 56 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 57 | 58 | return json.toString(); 59 | } 60 | 61 | 62 | 63 | } 64 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/GRAI.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class GRAI extends Base { 4 | private String assetType; 5 | private String serial; 6 | private String checkDigit; 7 | 8 | public GRAI() { 9 | 10 | } 11 | 12 | 13 | public String getAssetType() { 14 | return assetType; 15 | } 16 | 17 | public void setAssetType(String assetType) { 18 | this.assetType = assetType; 19 | } 20 | 21 | public String getSerial() { 22 | return serial; 23 | } 24 | 25 | public void setSerial(String serial) { 26 | this.serial = serial; 27 | } 28 | 29 | public String getCheckDigit() { 30 | return checkDigit; 31 | } 32 | 33 | public void setCheckDigit(String checkDigit) { 34 | this.checkDigit = checkDigit; 35 | } 36 | 37 | 38 | 39 | @Override 40 | public String toString() { 41 | StringBuilder json = new StringBuilder(); 42 | 43 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 44 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 45 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 46 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 47 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 48 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 49 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 50 | .append(String.format(", \"assetType\": \"%s\"", getAssetType())) 51 | .append(String.format(", \"serial\": \"%s\"", getSerial())) 52 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 53 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 54 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 55 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 56 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 57 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 58 | 59 | return json.toString(); 60 | } 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | } 73 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/parse/SGTIN/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.parse.SGTIN 7 | 8 | 9 | 10 | 11 | 12 |

org.epctagcoder.parse.SGTIN

13 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### EPCtagCoder 4 | 5 | An extremely intuitive, small and ultra fast EPC encoding and decoding library for java. 6 | 7 | ### Download binary release 8 | [EPCtagCoder v0.0.9](https://github.com/jlcout/epctagcoder/releases) 9 | 10 | ### Features 11 | 12 | - Implemented in accordance with [EPC Tag Data Standard 1.9](http://www.gs1.org/epc/tag-data-standard) 13 | - Easy to understand, developed with step builder pattern 14 | - Small library, only 160kb 15 | - Ultra fast, encode / decode 10.000 EPC on 200 milliseconds 16 | 17 | 18 | ### Epc implementations: 19 | 20 | - SGTIN - _Serialized Global Trade Item Number_ 21 | - SSCC - _Serial Shipping Container Code_ 22 | - SGLN - _Global Location Number With or Without Extension_ 23 | - GRAI - _Global Returnable Asset Identifier_ 24 | - GIAI - _Global Individual Asset Identifier_ 25 | - GSRN - _Global Service Relation Number – Recipient_ 26 | - GSRNP - _Global Service Relation Number – Provider_ 27 | - GDTI - _Global Document Type Identifier_ 28 | - CPI - _Component / Part Identifier_ 29 | - SGCN - _Serialized Global Coupon Number_ 30 | 31 | 32 | ### Examples 33 | 34 | ```markdown 35 | ParseSSCC parseSSCC = ParseSSCC.Builder() 36 | .withCompanyPrefix("023356789") 37 | .withExtensionDigit( SSCCExtensionDigit.EXTENSION_3 ) 38 | .withSerial("0200002") 39 | .withTagSize( SSCCTagSize.BITS_96 ) 40 | .withFilterValue( SSCCFilterValue.RESERVED_5 ) 41 | .build(); 42 | SSCC sscc = parseSSCC.getSSCC(); 43 | System.out.println("parseSSCC "+ sscc.toString() ); 44 | 45 | 46 | 47 | 48 | ParseSSCC parseSSCC = ParseSSCC.Builder() 49 | .withRFIDTag( "31AC16465751CCD0C2000000" ) 50 | .build(); 51 | SSCC sscc = parseSSCC.getSSCC(); 52 | System.out.println("parseSSCC "+ sscc.toString() ); 53 | 54 | 55 | 56 | 57 | ParseSSCC parseSSCC = ParseSSCC.Builder() 58 | .withEPCTagURI( "urn:epc:tag:sscc-96:5.023356789.30200002" ) 59 | .build(); 60 | SSCC sscc = parseSSCC.getSSCC(); 61 | System.out.println("parseSSCC "+ sscc.toString() ); 62 | 63 | 64 | 65 | 66 | ParseSSCC parseSSCC = ParseSSCC.Builder() 67 | .withEPCPureIdentityURI( "urn:epc:id:sscc:023356789.30200002" ) 68 | .withTagSize( SSCCTagSize.BITS_96 ) 69 | .withFilterValue( SSCCFilterValue.RESERVED_5 ) 70 | .build(); 71 | SSCC sscc = parseSSCC.getSSCC(); 72 | System.out.println("parseSSCC "+ sscc.toString() ); 73 | 74 | ``` 75 | 76 | ### Donate 77 | 78 | If EPCtagCoder helped you. Consider making a donation 79 | 80 | https://www.paypal.com/donate?hosted_button_id=HC57PQV9TXCAC 81 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/SGLN.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class SGLN extends Base { 4 | private String locationReference; 5 | private String extension; 6 | private String checkDigit; 7 | 8 | 9 | public SGLN() { 10 | 11 | } 12 | 13 | 14 | @Override 15 | public String toString() { 16 | StringBuilder json = new StringBuilder(); 17 | 18 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 19 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 20 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 21 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 22 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 23 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 24 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 25 | .append(String.format(", \"locationReference\": \"%s\"", getLocationReference())) 26 | .append(String.format(", \"extension\": \"%s\"", getExtension())) 27 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 28 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 29 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 30 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 31 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 32 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 33 | 34 | return json.toString(); 35 | } 36 | 37 | 38 | public String getLocationReference() { 39 | return locationReference; 40 | } 41 | 42 | 43 | public void setLocationReference(String locationReference) { 44 | this.locationReference = locationReference; 45 | } 46 | 47 | 48 | public String getExtension() { 49 | return extension; 50 | } 51 | 52 | 53 | public void setExtension(String extension) { 54 | this.extension = extension; 55 | } 56 | 57 | 58 | public String getCheckDigit() { 59 | return checkDigit; 60 | } 61 | 62 | 63 | public void setCheckDigit(String checkDigit) { 64 | this.checkDigit = checkDigit; 65 | } 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/SGTIN.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class SGTIN extends Base { 4 | private String extensionDigit; 5 | private String itemReference; 6 | private String serial; 7 | private String checkDigit; 8 | 9 | public SGTIN() { 10 | 11 | } 12 | 13 | public String getExtensionDigit() { 14 | return extensionDigit; 15 | } 16 | 17 | public void setExtensionDigit(String extensionDigit) { 18 | this.extensionDigit = extensionDigit; 19 | } 20 | 21 | public String getItemReference() { 22 | return itemReference; 23 | } 24 | 25 | public void setItemReference(String itemReference) { 26 | this.itemReference = itemReference; 27 | } 28 | 29 | public String getSerial() { 30 | return serial; 31 | } 32 | 33 | public void setSerial(String serial) { 34 | this.serial = serial; 35 | } 36 | 37 | public String getCheckDigit() { 38 | return checkDigit; 39 | } 40 | 41 | public void setCheckDigit(String checkDigit) { 42 | this.checkDigit = checkDigit; 43 | } 44 | 45 | 46 | 47 | @Override 48 | public String toString() { 49 | StringBuilder json = new StringBuilder(); 50 | 51 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 52 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 53 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 54 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 55 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 56 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 57 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 58 | .append(String.format(", \"extensionDigit\": \"%s\"", getExtensionDigit())) 59 | .append(String.format(", \"itemReference\": \"%s\"", getItemReference())) 60 | .append(String.format(", \"serial\": \"%s\"", getSerial())) 61 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 62 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 63 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 64 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 65 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 66 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 67 | 68 | return json.toString(); 69 | } 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | } 79 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/GSRN.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public class GSRN extends Base { 4 | private String serviceReference; 5 | private String checkDigit; 6 | 7 | public GSRN() { 8 | 9 | } 10 | 11 | 12 | public String getServiceReference() { 13 | return serviceReference; 14 | } 15 | 16 | public void setServiceReference(String serviceReference) { 17 | this.serviceReference = serviceReference; 18 | } 19 | 20 | public String getCheckDigit() { 21 | return checkDigit; 22 | } 23 | 24 | public void setCheckDigit(String checkDigit) { 25 | this.checkDigit = checkDigit; 26 | } 27 | 28 | 29 | @Override 30 | public String toString() { 31 | StringBuilder json = new StringBuilder(); 32 | 33 | json.append(String.format("{ \"epcScheme\": \"%s\"", getEpcScheme())) 34 | .append(String.format(", \"applicationIdentifier\": \"%s\"", getApplicationIdentifier())) 35 | .append(String.format(", \"tagSize\": \"%s\"", getTagSize())) 36 | .append(String.format(", \"filterValue\": \"%s\"", getFilterValue())) 37 | .append(String.format(", \"partitionValue\": \"%s\"", getPartitionValue())) 38 | .append(String.format(", \"prefixLength\": \"%s\"", getPrefixLength())) 39 | .append(String.format(", \"companyPrefix\": \"%s\"", getCompanyPrefix())) 40 | .append(String.format(", \"serviceReference\": \"%s\"", getServiceReference())) 41 | .append(String.format(", \"checkDigit\": \"%s\"", getCheckDigit())) 42 | .append(String.format(", \"epcPureIdentityURI\": \"%s\"", getEpcPureIdentityURI())) 43 | .append(String.format(", \"epcTagURI\": \"%s\"", getEpcTagURI())) 44 | .append(String.format(", \"epcRawURI\": \"%s\"", getEpcRawURI())) 45 | .append(String.format(", \"binary\": \"%s\"", getBinary())) 46 | .append(String.format(", \"rfidTag\": \"%s\"", getRfidTag())).append(" }"); 47 | 48 | 49 | /* 50 | json.append("{ \"epcScheme\": \"").append(getEpcScheme()).append("\"") 51 | .append(", \"applicationIdentifier\": \"").append(getApplicationIdentifier()).append("\"") 52 | .append(", \"tagSize\": \"").append(getTagSize()).append("\"") 53 | .append(", \"filterValue\": \"").append(getFilterValue()).append("\"") 54 | .append(", \"partitionValue\": \"").append(getPartitionValue()).append("\"") 55 | .append(", \"prefixLength\": \"").append(getPrefixLength()).append("\"") 56 | .append(", \"companyPrefix\": \"").append(getCompanyPrefix()).append("\"") 57 | .append(", \"serviceReference\": \"").append(getServiceReference()).append("\"") 58 | .append(", \"checkDigit\": \"").append(getCheckDigit()).append("\"") 59 | .append(", \"epcPureIdentityURI\": \"").append(getEpcPureIdentityURI()).append("\"") 60 | .append(", \"epcTagURI\": \"").append(getEpcTagURI()).append("\"") 61 | .append(", \"epcRawURI\": \"").append(getEpcRawURI()).append("\"") 62 | .append(", \"binary\": \"").append(getBinary()).append("\"") 63 | .append(", \"rfidTag\": \"").append(getRfidTag()).append("\" }"); 64 | */ 65 | 66 | 67 | return json.toString(); 68 | } 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /epctagcoder/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | <noscript> 68 | <div>JavaScript is disabled on your browser.</div> 69 | </noscript> 70 | <h2>Frame Alert</h2> 71 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /epctagcoder/src/main/java/org/epctagcoder/result/Base.java: -------------------------------------------------------------------------------- 1 | package org.epctagcoder.result; 2 | 3 | public abstract class Base { 4 | private String epcScheme; 5 | private String applicationIdentifier; 6 | private String tagSize; 7 | private String filterValue; 8 | private String partitionValue; 9 | private String prefixLength; 10 | private String companyPrefix; 11 | private String epcPureIdentityURI; 12 | private String epcTagURI; 13 | private String epcRawURI; 14 | private String binary; 15 | private String rfidTag; 16 | private String exception; 17 | 18 | 19 | public Base() { 20 | 21 | } 22 | 23 | 24 | public String getEpcScheme() { 25 | return epcScheme; 26 | } 27 | 28 | 29 | public void setEpcScheme(String epcScheme) { 30 | this.epcScheme = epcScheme; 31 | } 32 | 33 | 34 | public String getApplicationIdentifier() { 35 | return applicationIdentifier; 36 | } 37 | 38 | 39 | public void setApplicationIdentifier(String applicationIdentifier) { 40 | this.applicationIdentifier = applicationIdentifier; 41 | } 42 | 43 | 44 | public String getTagSize() { 45 | return tagSize; 46 | } 47 | 48 | 49 | public void setTagSize(String tagSize) { 50 | this.tagSize = tagSize; 51 | } 52 | 53 | 54 | public String getFilterValue() { 55 | return filterValue; 56 | } 57 | 58 | 59 | public void setFilterValue(String filterValue) { 60 | this.filterValue = filterValue; 61 | } 62 | 63 | 64 | public String getPartitionValue() { 65 | return partitionValue; 66 | } 67 | 68 | 69 | public void setPartitionValue(String partitionValue) { 70 | this.partitionValue = partitionValue; 71 | } 72 | 73 | 74 | public String getPrefixLength() { 75 | return prefixLength; 76 | } 77 | 78 | 79 | public void setPrefixLength(String prefixLength) { 80 | this.prefixLength = prefixLength; 81 | } 82 | 83 | 84 | public String getCompanyPrefix() { 85 | return companyPrefix; 86 | } 87 | 88 | 89 | public void setCompanyPrefix(String companyPrefix) { 90 | this.companyPrefix = companyPrefix; 91 | } 92 | 93 | 94 | public String getEpcPureIdentityURI() { 95 | return epcPureIdentityURI; 96 | } 97 | 98 | 99 | public void setEpcPureIdentityURI(String epcPureIdentityURI) { 100 | this.epcPureIdentityURI = epcPureIdentityURI; 101 | } 102 | 103 | 104 | public String getEpcTagURI() { 105 | return epcTagURI; 106 | } 107 | 108 | 109 | public void setEpcTagURI(String epcTagURI) { 110 | this.epcTagURI = epcTagURI; 111 | } 112 | 113 | 114 | public String getEpcRawURI() { 115 | return epcRawURI; 116 | } 117 | 118 | 119 | public void setEpcRawURI(String epcRawURI) { 120 | this.epcRawURI = epcRawURI; 121 | } 122 | 123 | 124 | public String getBinary() { 125 | return binary; 126 | } 127 | 128 | 129 | public void setBinary(String binary) { 130 | this.binary = binary; 131 | } 132 | 133 | 134 | public String getRfidTag() { 135 | return rfidTag; 136 | } 137 | 138 | 139 | public void setRfidTag(String rfidTag) { 140 | this.rfidTag = rfidTag; 141 | } 142 | 143 | 144 | public String getException() { 145 | return exception; 146 | } 147 | 148 | 149 | public void setException(String exception) { 150 | this.exception = exception; 151 | } 152 | 153 | 154 | 155 | 156 | 157 | 158 | } 159 | -------------------------------------------------------------------------------- /epctagcoder/doc/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 39 |

 

40 | 41 | 42 | -------------------------------------------------------------------------------- /epctagcoder/doc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Deprecated API

74 |

Contents

75 |
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Constant Field Values

74 |

Contents

75 |
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/util/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.util 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.util

74 |
75 |
No usage of org.epctagcoder.util
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/CPI/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.CPI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.CPI.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.CPI.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GDTI/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.GDTI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.GDTI.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.GDTI.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GRAI/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.GRAI.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.GRAI.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.GRAI.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GSRN/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.GSRN.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.GSRN.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.GSRN.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SSCC/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.SSCC.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.SSCC.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.SSCC.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/SGTIN/partitionTable/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package org.epctagcoder.option.SGTIN.partitionTable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
org.epctagcoder.option.SGTIN.partitionTable

74 |
75 |
No usage of org.epctagcoder.option.SGTIN.partitionTable
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/result/class-use/GIAI.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.result.GIAI 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.result.GIAI

74 |
75 |
No usage of org.epctagcoder.result.GIAI
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/result/class-use/SGLN.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.result.SGLN 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.result.SGLN

74 |
75 |
No usage of org.epctagcoder.result.SGLN
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/result/class-use/GSRNP.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.result.GSRNP 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.result.GSRNP

74 |
75 |
No usage of org.epctagcoder.result.GSRNP
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/util/class-use/Converter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.util.Converter 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.util.Converter

74 |
75 |
No usage of org.epctagcoder.util.Converter
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/util/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.util Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package org.epctagcoder.util

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Class Hierarchy

81 |
    82 |
  • java.lang.Object 83 | 86 |
  • 87 |
88 |
89 | 90 |
91 | 92 | 93 | 94 | 95 | 96 | 97 | 107 |
108 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/CPI/partitionTable/class-use/CPIPartitionTableList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.option.CPI.partitionTable.CPIPartitionTableList 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.option.CPI.partitionTable.CPIPartitionTableList

74 |
75 |
No usage of org.epctagcoder.option.CPI.partitionTable.CPIPartitionTableList
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/util/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.epctagcoder.util 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package org.epctagcoder.util

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
    Class Summary 
    ClassDescription
    Converter 
    91 |
  • 92 |
93 |
94 | 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 112 |
113 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GDTI/partitionTable/class-use/GDTIPartitionTableList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.option.GDTI.partitionTable.GDTIPartitionTableList 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.option.GDTI.partitionTable.GDTIPartitionTableList

74 |
75 |
No usage of org.epctagcoder.option.GDTI.partitionTable.GDTIPartitionTableList
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /epctagcoder/doc/org/epctagcoder/option/GRAI/partitionTable/class-use/GRAIPartitionTableList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class org.epctagcoder.option.GRAI.partitionTable.GRAIPartitionTableList 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
org.epctagcoder.option.GRAI.partitionTable.GRAIPartitionTableList

74 |
75 |
No usage of org.epctagcoder.option.GRAI.partitionTable.GRAIPartitionTableList
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | --------------------------------------------------------------------------------