Class BaseDecodeType
- Direct Known Subclasses:
com.aspose.barcode.barcoderecognition.MultiDecodeType,SingleDecodeType
Base class for MultiDecodeType and SingleDecodeType.
This sample shows how to use BaseDecodeType with SingleDecodeType and MultiDecodeTypeBaseDecodeType decodeOne = DecodeType.CODE_128; BaseDecodeType decodeTwo = new MultiDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_FULL_ASCII);
-
Method Summary
Modifier and TypeMethodDescriptionabstract booleancontainsAny(BaseDecodeType... types) Determines whether any of the given decode types is included intobooleanequals(com.aspose.barcode.barcoderecognition.MultiDecodeType other) Returns a value indicating whether this instance is equal to a specifiedBaseDecodeTypevalue.booleanequals(SingleDecodeType other) Returns a value indicating whether this instance is equal to a specifiedBaseDecodeTypevalue.booleanReturns a value indicating whether this instance is equal to a specifiedBaseDecodeTypevalue.static BaseDecodeTypetryParseBaseDecodeType(String parsingType) Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type.static com.aspose.barcode.barcoderecognition.MultiDecodeTypetryParseMultiDecodeType(String parsingType) Converts the string representation of a MultiDecodeType to its instance.static SingleDecodeTypetryParseSingleDecodeType(String parsingType) Converts the string representation of a SingleDecodeType to its instance.
-
Method Details
-
containsAny
Determines whether any of the given decode types is included into
- Parameters:
types- Types to verify.- Returns:
- Value is a true if any types are included into.
-
equals
Returns a value indicating whether this instance is equal to a specified
BaseDecodeTypevalue.- Parameters:
other- An java.lang.Object value to compare to this instance.- Returns:
- True if obj has the same value as this instance; otherwise, false.
-
equals
public boolean equals(com.aspose.barcode.barcoderecognition.MultiDecodeType other) Returns a value indicating whether this instance is equal to a specified
BaseDecodeTypevalue.- Parameters:
other- An java.lang.Object value to compare to this instance.- Returns:
- True if obj has the same value as this instance; otherwise, false.
-
equals
Returns a value indicating whether this instance is equal to a specified
BaseDecodeTypevalue. -
tryParseSingleDecodeType
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
- Parameters:
parsingType- A string containing a SingleDecodeType in the format as "EAN8" or "EAN13" or "CodaBar"... to convert.- Returns:
- An actual SingleDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or SingleDecodeType (-1, "None").
-
tryParseMultiDecodeType
public static com.aspose.barcode.barcoderecognition.MultiDecodeType tryParseMultiDecodeType(String parsingType) Converts the string representation of a MultiDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
- Parameters:
parsingType- A string containing a MultiDecodeType representation to convert.- Returns:
- An actual MultiDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultiDecodeType ("None").
-
tryParseBaseDecodeType
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:
parsingType- A string containing a MultiDecodeType representation to convert.- Returns:
- An actual MultiDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultiDecodeType ("None").
-