Class BaseEncodeType

java.lang.Object
com.aspose.barcode.generation.BaseEncodeType
Direct Known Subclasses:
SymbologyEncodeType

public class BaseEncodeType extends Object

Base class for SymbologyEncodeType.

  • Constructor Details

    • BaseEncodeType

      protected BaseEncodeType(short typeIndex, String typeName, BarcodeClassifications classification)

      Initializes a new instance of BaseEncodeType class by type index and name

      Parameters:
      typeIndex - type index
      typeName - name of symbology
      classification - EncodeType classification.
  • Method Details

    • getTypeIndex

      public short getTypeIndex()

      Gets an index of encode type

    • getTypeName

      public String getTypeName()

      Gets a name of encode type

    • getClassification

      public BarcodeClassifications getClassification()

      Gets a classification of this symbology.

    • toString

      public String toString()

      Returns the name of the given BaseEncodeType as a string.

      Overrides:
      toString in class Object
      Returns:
      A string representing the name of the encode type
    • getString

      public String getString()

      Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: "Index:0; Name:Codabar".

      Returns:
      A string representing the complete value of the encode type
    • getString

      public static String getString(BaseEncodeType instance)

      Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: "Index:-1; Name:None".

      Parameters:
      instance - The BaseEncodeType instance to convert
      Returns:
      A string representing the complete value of the given encode type
    • tryParse

      public static boolean tryParse(String parsingType, BaseEncodeType[] result)

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

      Parameters:
      parsingType - A string in the format as "Index:-1; Name:None" to convert.
      result - An actual SingleEncodeType returns, when conversion has completed successfully;

      otherwise it returns null.

      Returns:
      <b>true</b> if s was converted successfully; otherwise, <b>false</b>.
    • tryParse

      public static boolean tryParse(String parsingType, SymbologyEncodeType[] result)

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

      Parameters:
      parsingType - A string in the format as "Index:-1; Name:None" to convert.
      result - An actual SingleEncodeType returns, when conversion has completed successfully;

      otherwise it returns null.

      Returns:
      <b>true</b> if s was converted successfully; otherwise, <b>false</b>.
    • equals

      public boolean equals(Object other)

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

      Overrides:
      equals in class Object
      Parameters:
      other - An BaseEncodeType value to compare to this instance.
      Returns:
      <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
    • hashCode

      public int hashCode()

      Returns the hash code for this instance.

      Overrides:
      hashCode in class Object
      Returns:
      A 32-bit signed integer hash code.
    • parse

      public static BaseEncodeType parse(String stringEncodeType)

      Converts the string representation of the name of a BaseEncodeType to its instance.

      Parameters:
      stringEncodeType - A string containing the name of a BaseEncodeType to convert.
      Returns:
      the instance of , if conversion was successful; otherwise, it returns <b></b>.