001/* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal.entity; 018 019public class ScanResult { 020 021 private String content; 022 private String format; 023 024 /** 025 * @return <div class="zh"> 获取扫码内容 </div> <div class="en">Getting scanned content </div> 026 */ 027 public String getContent() { 028 return content; 029 } 030 031 /** 032 * @param content 033 * <div class="zh"> 设置扫码内容 </div> <div class="en"> set scanned content </div> 034 */ 035 public void setContent(String content) { 036 this.content = content; 037 } 038 039 /** 040 * <div class="zh"> 获取扫码内容格式</div> <div class="en">Get the scanned content format</div> 041 * @return <div class="zh">如果成功则返回条形码格式,失败则返回空字符串<br> 042 * 返回的条码类型: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 043 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 044 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 045 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 046 * <div class="en">Returns the barcode format on success, or an empty string on failure<br> 047 * Returned barcode types: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 048 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 049 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 050 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 051 */ 052 public String getFormat() { 053 return format; 054 } 055 056 /** 057 * <div class="zh"> 设置扫码内容格式</div> <div class="en"> set the scanned content format </div> 058 * @param format <div class="zh">条形码格式<br> 059 * 支持的条码类型: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 060 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 061 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 062 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 063 * <div class="en">barcode format<br> 064 * Supported barcode types: "UPC-A", "C39", "C128", "I25", "C93", "GS1 DATABAR", "MSI", 065 * "CODEBLOCK F", "PDF417", "MICROPDF", "MAXICODE", "QR CODE", "TELEPEN", 066 * "DATA MATRIX", "AZTEC", "HAXIN", "MATRIX 25", "TRIOPTIC", "STRAIGHT 25", 067 * "C11", "NEC25", "CodaBar", "HK25", "Postal", "UPC-E", "EAN-13", "EAN-8"</div> 068 * 069 */ 070 public void setFormat(String format) { 071 this.format = format; 072 } 073 074}