Class BaseEncodeType
- Direct Known Subclasses:
SymbologyEncodeType
Base class for SymbologyEncodeType.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseEncodeType(short typeIndex, String typeName, BarcodeClassifications classification) Initializes a new instance ofBaseEncodeTypeclass by type index and name -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedBaseEncodeTypevalue.Gets a classification of this symbology.Converts the instance of BaseEncodeType to its equivalent string representation.static StringgetString(BaseEncodeType instance) Converts the instance of BaseEncodeType to its equivalent string representation.shortGets an index of encode typeGets a name of encode typeinthashCode()Returns the hash code for this instance.static BaseEncodeTypeConverts the string representation of the name of a BaseEncodeType to its instance.toString()Returns the name of the given BaseEncodeType as a string.static booleantryParse(String parsingType, BaseEncodeType[] result) Converts the string representation of a BaseEncodeType to its instance.static booleantryParse(String parsingType, SymbologyEncodeType[] result) Converts the string representation of a BaseEncodeType to its instance.
-
Constructor Details
-
BaseEncodeType
Initializes a new instance of
BaseEncodeTypeclass by type index and name- Parameters:
typeIndex- type indextypeName- name of symbologyclassification- EncodeType classification.
-
-
Method Details
-
getTypeIndex
public short getTypeIndex()Gets an index of encode type
-
getTypeName
Gets a name of encode type
-
getClassification
Gets a classification of this symbology.
-
toString
Returns the name of the given BaseEncodeType as a 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
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
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
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
Returns a value indicating whether this instance is equal to a specified
BaseEncodeTypevalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-
parse
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>.
-