com.aspose.barcode

Class BaseEncodeType

  • Direct Known Subclasses:
    SymbologyEncodeType


    public class BaseEncodeType
    extends Object

    Base class for SymbologyEncodeType.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(BaseEncodeType other)
      Returns a value indicating whether this instance is equal to a specified BaseEncodeType value.
      boolean equals(Object obj)
      Returns a value indicating whether this instance is equal to a specified BaseEncodeType value.
      int getClassification()
      Gets a classification of this symbology.
      String getString()
      Converts the instance of BaseEncodeType to its equivalent string representation.
      static String getString(BaseEncodeType instance)
      Converts the instance of BaseEncodeType to its equivalent string representation.
      short getTypeIndex()
      Gets an index of encode type
      String getTypeName()
      Gets a name of encode type
      int hashCode()
      Returns the hash code for this instance.
      static BaseEncodeType parse(String stringEncodeType)
      Converts the string representation of the name of a BaseEncodeType to its instance.
      String toString()
      Returns the name of the given BaseEncodeType as a string.
      static boolean tryParse(String parsingType, BaseEncodeType[] result)
      Converts the string representation of a BaseEncodeType to its instance.
      static boolean tryParse(String parsingType, SymbologyEncodeType[] result)
      Converts the string representation of a BaseEncodeType to its instance.
    • Method Detail

      • getTypeIndex

        public short getTypeIndex()

        Gets an index of encode type

      • getTypeName

        public String getTypeName()

        Gets a name of encode type

      • getClassification

        public int 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(BaseEncodeType other)

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

        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>.
      • equals

        public boolean equals(Object obj)

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

        Overrides:
        equals in class Object
        Parameters:
        obj - An System.Object 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>.
        See Also:
        BaseEncodeType, DecodeType.None