MaxiCodeMode
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
public final class MaxiCodeMode extends System.Enum
Encoding mode for MaxiCode barcodes. This sample shows how to genereate MaxiCode barcodes using ComplexBarcodeGenerator
//Mode 2 with standart second message
MaxiCodeCodetextMode2 maxiCodeCodetext = new MaxiCodeCodetextMode2();
maxiCodeCodetext.setPostalCode("524032140");
maxiCodeCodetext.setCountryCode(056);
maxiCodeCodetext.setServiceCategory(999);
MaxiCodeStandartSecondMessage maxiCodeStandartSecondMessage = new MaxiCodeStandartSecondMessage();
maxiCodeStandartSecondMessage.setMessage("Test message");
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
complexGenerator.generateBarCodeImage();
//Mode 2 with structured second message
MaxiCodeCodetextMode2 maxiCodeCodetext = new MaxiCodeCodetextMode2();
maxiCodeCodetext.setPostalCode("524032140");
maxiCodeCodetext.setCountryCode(056);
maxiCodeCodetext.setServiceCategory(999);
MaxiCodeStructuredSecondMessage maxiCodeStructuredSecondMessage = new MaxiCodeStructuredSecondMessage();
maxiCodeStructuredSecondMessage.add("634 ALPHA DRIVE");
maxiCodeStructuredSecondMessage.add("PITTSBURGH");
maxiCodeStructuredSecondMessage.add("PA");
maxiCodeStructuredSecondMessage.setYear(99);
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
complexGenerator.generateBarCodeImage();
//Mode 3 with standart second message
MaxiCodeCodetextMode3 maxiCodeCodetext = new MaxiCodeCodetextMode3();
maxiCodeCodetext.setPostalCode("B1050");
maxiCodeCodetext.setCountryCode(056);
maxiCodeCodetext.setServiceCategory(999);
MaxiCodeStandartSecondMessage maxiCodeStandartSecondMessage = new MaxiCodeStandartSecondMessage();
maxiCodeStandartSecondMessage.setMessage("Test message");
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext);
complexGenerator.generateBarCodeImage();
//Mode 3 with structured second message
MaxiCodeCodetextMode3 maxiCodeCodetext = new MaxiCodeCodetextMode3();
maxiCodeCodetext.setPostalCode("B1050");
maxiCodeCodetext.setCountryCode(056);
maxiCodeCodetext.setServiceCategory(999);
MaxiCodeStructuredSecondMessage maxiCodeStructuredSecondMessage = new MaxiCodeStructuredSecondMessage();
maxiCodeStructuredSecondMessage.add("634 ALPHA DRIVE");
maxiCodeStructuredSecondMessage.add("PITTSBURGH");
maxiCodeStructuredSecondMessage.add("PA");
maxiCodeStructuredSecondMessage.setYear(99);
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage);
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext();
complexGenerator.generateBarCodeImage();
//Mode 4
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_4);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext();
complexGenerator.generateBarCodeImage();
//Mode 5
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_5);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext())
complexGenerator.generateBarCodeImage();
//Mode 6
MaxiCodeStandardCodetext maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_6);
maxiCodeCodetext.setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext();
complexGenerator.generateBarCodeImage();
Fields
Field | Description |
---|---|
EnumSeparatorCharArray | |
MODE_2 | Mode 2 encodes postal information in first message and data in second message. |
MODE_3 | Mode 3 encodes postal information in first message and data in second message. |
MODE_4 | Mode 4 encodes data in first and second message, with short ECC correction. |
MODE_5 | Mode 5 encodes data in first and second message, with long ECC correction. |
MODE_6 | Mode 6 encodes data in first and second message, with short ECC correction. |
Methods
EnumSeparatorCharArray
public static final char[] EnumSeparatorCharArray
MODE_2
public static final int MODE_2
Mode 2 encodes postal information in first message and data in second message. Has 9 digits postal code (used only in USA).
MODE_3
public static final int MODE_3
Mode 3 encodes postal information in first message and data in second message. Has 6 alphanumeric postal code, used in the world.
MODE_4
public static final int MODE_4
Mode 4 encodes data in first and second message, with short ECC correction.
MODE_5
public static final int MODE_5
Mode 5 encodes data in first and second message, with long ECC correction.
MODE_6
public static final int MODE_6
Mode 6 encodes data in first and second message, with short ECC correction. Used to encode device.
Clone()
public System.Enum Clone()
Returns: com.aspose.ms.System.Enum
CloneTo(T that)
public abstract void CloneTo(T that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | T |
CloneTo(System.Enum that)
public void CloneTo(System.Enum that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | com.aspose.ms.System.Enum |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
format(System.Type enumType, Object value, String format)
public static String format(System.Type enumType, Object value, String format)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.Object | |
format | java.lang.String |
Returns: java.lang.String
format(Class enumType, long value, String format)
public static String format(Class<?> enumType, long value, String format)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | long | |
format | java.lang.String |
Returns: java.lang.String
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getName(System.Type enumType, Object value)
public static String getName(System.Type enumType, Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.Object |
Returns: java.lang.String
getName(Class enumType, long value)
public static String getName(Class<?> enumType, long value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | long |
Returns: java.lang.String
getNames(System.Type enumType)
public static String[] getNames(System.Type enumType)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type |
Returns: java.lang.String[]
getNames(Class enumType)
public static Collection<String> getNames(Class<?> enumType)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class |
Returns: java.util.Collection<java.lang.String>
getUnderlyingType(System.Type enumType)
public static System.Type getUnderlyingType(System.Type enumType)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type |
Returns: com.aspose.ms.System.Type
getUnderlyingType(Class enumType)
public static Class<? extends Number> getUnderlyingType(Class<?> enumType)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class |
Returns: java.lang.Class<? extends java.lang.Number>
getValue(Class enumType, String name)
public static long getValue(Class<?> enumType, String name)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
name | java.lang.String |
Returns: long
getValues(System.Type enumType)
public static System.Array getValues(System.Type enumType)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type |
Returns: com.aspose.ms.System.Array
get_Caption()
public String get_Caption()
Returns: java.lang.String
get_Value()
public long get_Value()
Returns: long
hashCode()
public native int hashCode()
Returns: int
isDefined(System.Type enumType, Object value)
public static boolean isDefined(System.Type enumType, Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.Object |
Returns: boolean
isDefined(System.Type enumType, String value)
public static boolean isDefined(System.Type enumType, String value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.String |
Returns: boolean
isDefined(System.Type enumType, long value)
public static boolean isDefined(System.Type enumType, long value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | long |
Returns: boolean
isDefined(Class enumType, long value)
public static boolean isDefined(Class<?> enumType, long value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | long |
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
parse(System.Type enumType, String value)
public static long parse(System.Type enumType, String value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.String |
Returns: long
parse(System.Type enumType, String value, Boolean ignoreCase)
public static long parse(System.Type enumType, String value, Boolean ignoreCase)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.String | |
ignoreCase | java.lang.Boolean |
Returns: long
parse(Class enumType, String value)
public static long parse(Class<?> enumType, String value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | java.lang.String |
Returns: long
parse(Class enumType, String value, Boolean ignoreCase)
public static long parse(Class<?> enumType, String value, Boolean ignoreCase)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | java.lang.String | |
ignoreCase | java.lang.Boolean |
Returns: long
register(System.Enum.AbstractEnum e)
public static void register(System.Enum.AbstractEnum e)
Parameters:
Parameter | Type | Description |
---|---|---|
e | com.aspose.ms.System.Enum.AbstractEnum |
toObject(System.Type enumType, Object value)
public static Object toObject(System.Type enumType, Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | com.aspose.ms.System.Type | |
value | java.lang.Object |
Returns: java.lang.Object
toString()
public String toString()
Returns: java.lang.String
toString(Class enumType, long value)
public static String toString(Class<?> enumType, long value)
Parameters:
Parameter | Type | Description |
---|---|---|
enumType | java.lang.Class | |
value | long |
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |