Class BaseDecodeType

java.lang.Object
com.aspose.barcode.barcoderecognition.BaseDecodeType
Direct Known Subclasses:
com.aspose.barcode.barcoderecognition.MultiDecodeType, SingleDecodeType

public abstract class BaseDecodeType extends Object

Base class for MultiDecodeType and SingleDecodeType.


 This sample shows how to use BaseDecodeType with SingleDecodeType and MultiDecodeType
 
 BaseDecodeType decodeOne = DecodeType.CODE_128;
 BaseDecodeType decodeTwo = new MultiDecodeType(DecodeType.CODE_128, DecodeType.CODE_39_STANDARD, DecodeType.CODE_39_FULL_ASCII);
 

  • Method Details

    • containsAny

      public abstract boolean containsAny(BaseDecodeType... types)

      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

      public boolean equals(SingleDecodeType other)

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

      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 BaseDecodeType value.

      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(Object other)

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

      Overrides:
      equals in class Object
      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.
    • tryParseSingleDecodeType

      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:
      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

      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:
      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").