summaryrefslogtreecommitdiffstats
path: root/src/org/uic/header/Extension.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-04-30 14:39:47 +0200
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-04-30 14:39:47 +0200
commita7515e3c057ef00ade3ae093b179c2787f07803b (patch)
treeec36c0520415879268db1ca0d57f132eca1d7876 /src/org/uic/header/Extension.java
parentCreate README.md (diff)
downloadUIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.gz
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.bz2
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.lz
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.xz
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.tar.zst
UIC-barcode-a7515e3c057ef00ade3ae093b179c2787f07803b.zip
Diffstat (limited to 'src/org/uic/header/Extension.java')
-rw-r--r--src/org/uic/header/Extension.java72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/org/uic/header/Extension.java b/src/org/uic/header/Extension.java
new file mode 100644
index 0000000..98f44d7
--- /dev/null
+++ b/src/org/uic/header/Extension.java
@@ -0,0 +1,72 @@
+package org.uic.header;
+
+
+import net.gcdc.asn1.datatypes.CharacterRestriction;
+import net.gcdc.asn1.datatypes.RestrictedString;
+import net.gcdc.asn1.datatypes.Sequence;
+import net.gcdc.asn1.datatypesimpl.OctetString;
+
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Class Extension.
+ */
+@Sequence
+public class Extension extends Object {
+
+ /**
+ * Instantiates a new extension.
+ */
+ public Extension() {}
+
+ /** The extension id. */
+ @RestrictedString(CharacterRestriction.IA5String)
+ public String extensionId;
+
+ /** The extension data. */
+ public OctetString extensionData;
+
+ /**
+ * Gets the extension id.
+ *
+ * @return the extension id
+ */
+ public String getExtensionId() {
+
+ return this.extensionId;
+ }
+
+ /**
+ * Gets the extension data.
+ *
+ * @return the extension data
+ */
+ public byte[] getExtensionData() {
+
+ return extensionData.toByteArray();
+ }
+
+ /**
+ * Sets the extension id.
+ *
+ * @param extensionId the new extension id
+ */
+ public void setExtensionId(String extensionId) {
+
+ this.extensionId = extensionId;
+ }
+
+ /**
+ * Sets the extension data.
+ *
+ * @param extensionData the new extension data
+ */
+ public void setExtensionData(byte[] extensionData) {
+
+ this.extensionData = new OctetString(extensionData);
+
+ }
+
+
+
+}