public abstract class MaxiCodeStructuredCodetext extends MaxiCodeCodetext
BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MAXI_CODE); for (BarCodeResult result : reader.readBarCodes()) { MaxiCodeCodetext resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText()); if (resultMaxiCodeCodetext instanceof MaxiCodeStructuredCodetext) { MaxiCodeStructuredCodetext maxiCodeStructuredCodetext = (MaxiCodeStructuredCodetext)resultMaxiCodeCodetext; System.out.println("BarCode Type: " + maxiCodeStructuredCodetext.getPostalCode()); System.out.println("MaxiCode mode: " + maxiCodeStructuredCodetext.getCountryCode()); System.out.println("BarCode CodeText: " + maxiCodeStructuredCodetext.getServiceCategory()); } }
Constructor and Description |
---|
MaxiCodeStructuredCodetext() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified MaxiCodeStructuredCodetext value.
|
java.lang.String |
getConstructedCodetext()
Constructs codetext
|
int |
getCountryCode()
Identifies 3 digit country code.
|
int |
getHashCode()
Returns the hash code for this instance.
|
java.lang.String |
getPostalCode()
Identifies the postal code.
|
MaxiCodeSecondMessage |
getSecondMessage()
Identifies second message of the barcode.
|
int |
getServiceCategory()
Identifies 3 digit service category.
|
void |
initFromString(java.lang.String constructedCodetext)
Initializes instance from constructed codetext.
|
void |
setCountryCode(int value)
Identifies 3 digit country code.
|
void |
setSecondMessage(MaxiCodeSecondMessage value)
Identifies second message of the barcode.
|
void |
setServiceCategory(int value)
Identifies 3 digit service category.
|
getBarcodeType, getECIEncoding, getMaxiCodeEncodeMode, getMode, setECIEncoding, setMaxiCodeEncodeMode
public java.lang.String getPostalCode()
public int getCountryCode()
public void setCountryCode(int value)
public int getServiceCategory()
public void setServiceCategory(int value)
public MaxiCodeSecondMessage getSecondMessage()
public void setSecondMessage(MaxiCodeSecondMessage value)
public java.lang.String getConstructedCodetext()
getConstructedCodetext
in interface IComplexCodetext
getConstructedCodetext
in class MaxiCodeCodetext
public void initFromString(java.lang.String constructedCodetext)
initFromString
in interface IComplexCodetext
initFromString
in class MaxiCodeCodetext
constructedCodetext
- Constructed codetext.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- An MaxiCodeStructuredCodetext value to compare to this instancepublic int getHashCode()