MultyDecodeType

Inheritance: java.lang.Object, com.aspose.barcode.barcoderecognition.BaseDecodeType

public class MultyDecodeType extends BaseDecodeType

Composite decode type.


CreateThis sample shows how to create compound MultyDecode types that combine SingleDecodeType and MultiDecode types.
 
 MultyDecodeType types1 = new MultyDecodeType(DecodeType.QR, DecodeType.DATA_MATRIX);
 MultyDecodeType types2 = new MultyDecodeType(types1, DecodeType.CODE_128, DecodeType.CODE_39_STANDARD);

Constructors

ConstructorDescription
MultyDecodeType(BaseDecodeType[] barcodeTypes)Initializes a new instance of the MultyDecodeType class.
MultyDecodeType(SingleDecodeType[] barcodeTypes)Initializes a new instance of the MultyDecodeType class.

Methods

MethodDescription
add(SingleDecodeType singleType)Adds one more SingleDecodeType to the MultyDecodeType.
containsAll(BaseDecodeType[] barcodeTypes)Check if this contains all types from barcode types.
containsAny(BaseDecodeType[] decodeTypes)Is contain any of types
equals(Object obj)Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.
exclude(SingleDecodeType singleType)Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance.
getClass()
getGetSingleTypesCount()Returns a number of single types.
getSingleTypes()Represents a list of single types.
hashCode()Returns the hash code for this instance.
notify()
notifyAll()
toString()Overridden method representing MultyDecodeType as a string.
tryParseBaseDecodeType(String parsingType)Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.
tryParseMultyDecodeType(String parsingType)Converts the string representation of a MultyDecodeType to its instance.
tryParseSingleDecodeType(String parsingType)Converts the string representation of a SingleDecodeType to its instance.
wait()
wait(long arg0)
wait(long arg0, int arg1)

MultyDecodeType(BaseDecodeType[] barcodeTypes)

public MultyDecodeType(BaseDecodeType[] barcodeTypes)

Initializes a new instance of the MultyDecodeType class.

Parameters:

ParameterTypeDescription
barcodeTypesBaseDecodeType[]Array of single decode types

MultyDecodeType(SingleDecodeType[] barcodeTypes)

public MultyDecodeType(SingleDecodeType[] barcodeTypes)

Initializes a new instance of the MultyDecodeType class.

Parameters:

ParameterTypeDescription
barcodeTypesSingleDecodeType[]Array of multy and single decode types

add(SingleDecodeType singleType)

public void add(SingleDecodeType singleType)

Adds one more SingleDecodeType to the MultyDecodeType.

Parameters:

ParameterTypeDescription
singleTypeSingleDecodeTypeA Single DecodeType to be added to the list

containsAll(BaseDecodeType[] barcodeTypes)

public boolean containsAll(BaseDecodeType[] barcodeTypes)

Check if this contains all types from barcode types.

Parameters:

ParameterTypeDescription
barcodeTypesBaseDecodeType[]Input single or multy barcode types

Returns: boolean - True if all types are included into

containsAny(BaseDecodeType[] decodeTypes)

public boolean containsAny(BaseDecodeType[] decodeTypes)

Is contain any of types

Parameters:

ParameterTypeDescription
decodeTypesBaseDecodeType[]Decode types

Returns: boolean - Value is a true if any types are included into

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn MultyDecodeType value to compare to this instance.

Returns: boolean - True if obj has the same value as this instance; otherwise, false.

exclude(SingleDecodeType singleType)

public MultyDecodeType exclude(SingleDecodeType singleType)

Excludes SingleDecodeType from the MultyDecodeType and returns new MultyDecodeType instance.

Parameters:

ParameterTypeDescription
singleTypeSingleDecodeTypeA Single DecodeType to be excluded.

Returns: MultyDecodeType - New MultyDecodeType instance with excluded SingleDecodeType.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getGetSingleTypesCount()

public int getGetSingleTypesCount()

Returns a number of single types.

Returns: int

getSingleTypes()

public List<SingleDecodeType> getSingleTypes()

Represents a list of single types.

Returns: java.util.List<com.aspose.barcode.barcoderecognition.SingleDecodeType> - List of single types

hashCode()

public int hashCode()

Returns the hash code for this instance.

Returns: int - A 32-bit signed integer hash code.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Overridden method representing MultyDecodeType as a string.

Returns: java.lang.String - A string representing MultyDecodeType instance as “singleDecodeType1, singleDecodeType2, …”

returns when all types are included.

tryParseBaseDecodeType(String parsingType)

public static BaseDecodeType tryParseBaseDecodeType(String parsingType)

Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a MultyDecodeType representation to convert.

Returns: BaseDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultyDecodeType (“None”).

tryParseMultyDecodeType(String parsingType)

public static MultyDecodeType tryParseMultyDecodeType(String parsingType)

Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string in the format as either “AllSupportedTypes” or “EAN8,EAN13,CodaBar” to convert.

Returns: MultyDecodeType - An actual MultyDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or MultyDecodeType (“NONE”).

tryParseSingleDecodeType(String parsingType)

public static SingleDecodeType tryParseSingleDecodeType(String parsingType)

Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Parameters:

ParameterTypeDescription
parsingTypejava.lang.StringA string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.

Returns: SingleDecodeType - An actual SingleDecodeType is returned, when conversion has completed successfully;

otherwise it returns indefinite type. or SingleDecodeType (-1, “None”).

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int