public class BaseEncodeType
extends java.lang.Object
Base class for SymbologyEncodeType.
Modifier | Constructor and Description |
---|---|
protected |
BaseEncodeType(short typeIndex,
java.lang.String typeName,
BarcodeClassifications classification)
Initializes a new instance of
BaseEncodeType class by type index and name |
protected |
BaseEncodeType(short typeIndex,
java.lang.String typeName,
int classification)
Deprecated.
|
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(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
BaseEncodeType value. |
BarcodeClassifications |
getClassification()
Gets a classification of this symbology.
|
java.lang.String |
getString()
Converts the instance of BaseEncodeType to its equivalent string representation.
|
static java.lang.String |
getString(BaseEncodeType instance)
Converts the instance of BaseEncodeType to its equivalent string representation.
|
short |
getTypeIndex()
Gets an index of encode type
|
java.lang.String |
getTypeName()
Gets a name of encode type
|
int |
hashCode()
Returns the hash code for this instance.
|
static BaseEncodeType |
parse(java.lang.String stringEncodeType)
Converts the string representation of the name of a BaseEncodeType to its instance.
|
java.lang.String |
toString()
Returns the name of the given BaseEncodeType as a string.
|
static boolean |
tryParse(java.lang.String parsingType,
BaseEncodeType[] result)
Converts the string representation of a BaseEncodeType to its instance.
|
static boolean |
tryParse(java.lang.String parsingType,
SymbologyEncodeType[] result)
Converts the string representation of a BaseEncodeType to its instance.
|
protected BaseEncodeType(short typeIndex, java.lang.String typeName, BarcodeClassifications classification)
Initializes a new instance of BaseEncodeType
class by type index and name
typeIndex
- type indextypeName
- name of symbologyclassification
- EncodeType classification.@Deprecated protected BaseEncodeType(short typeIndex, java.lang.String typeName, int classification)
Initializes a new instance of BaseEncodeType
class by type index and name
typeIndex
- type indextypeName
- name of symbologyclassification
- EncodeType classification.public short getTypeIndex()
Gets an index of encode type
public java.lang.String getTypeName()
Gets a name of encode type
public BarcodeClassifications getClassification()
Gets a classification of this symbology.
public java.lang.String toString()
Returns the name of the given BaseEncodeType as a string.
toString
in class java.lang.Object
public java.lang.String getString()
Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: "Index:0; Name:Codabar".
public static java.lang.String getString(BaseEncodeType instance)
Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: "Index:-1; Name:None".
instance
- The BaseEncodeType instance to convertpublic static boolean tryParse(java.lang.String parsingType, BaseEncodeType[] result)
Converts the string representation of a BaseEncodeType to its instance. A return value indicates whether the conversion succeeded or failed.
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.
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.public static boolean tryParse(java.lang.String parsingType, SymbologyEncodeType[] result)
Converts the string representation of a BaseEncodeType to its instance. A return value indicates whether the conversion succeeded or failed.
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.
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.public boolean equals(BaseEncodeType other)
Returns a value indicating whether this instance is equal to a specified BaseEncodeType
value.
other
- An BaseEncodeType
value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified BaseEncodeType
value.
equals
in class java.lang.Object
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public static BaseEncodeType parse(java.lang.String stringEncodeType)
Converts the string representation of the name of a BaseEncodeType to its instance.
stringEncodeType
- A string containing the name of a BaseEncodeType to convert.<b></b>
.