GS1AiPair

Inheritance: java.lang.Object

public class GS1AiPair

The class represents a pair of AI and text strings.

Constructors

Constructor Description
GS1AiPair(String ai, String value) Initializes a new instance of the GS1AiPair class by AI number and text to encode

Methods

Method Description
addParentheses(String codetext) Adds parentheses to GS1 codetext.
combinePairs(System.Collections.Generic.List pairs) Combine pairs in a single line (without parenthesis)
equals(Object arg0)
find(System.Collections.Generic.IGenericEnumerable list, String ai) Gets a pair by AI string
getAi() Gets the AI type
getAiDescription() Gets the AI description
getClass()
getFirst() Gets an AI
getSecond() Gets a text
getValue() Gets the text after AI
hashCode()
isAiBetween(int fromDigit, int toDigit) Checks Ai for entry in the interval
isValueBetween(int fromDigit, int toDigit) Checks Value for entry in the interval
isValueDate(String format) Checks if a Value string is a date in the specified format
isValueDigitsOnly() Indicates wether the Value string is contained only digits
notify()
notifyAll()
setAi(String value) Sets the AI type
setAiDescription(AIDescription value) Sets the AI description
setValue(String value) Sets the text after AI
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

GS1AiPair(String ai, String value)

public GS1AiPair(String ai, String value)

Initializes a new instance of the GS1AiPair class by AI number and text to encode

Parameters:

Parameter Type Description
ai java.lang.String AI type
value java.lang.String Text after AI

addParentheses(String codetext)

public static String addParentheses(String codetext)

Adds parentheses to GS1 codetext.

Parameters:

Parameter Type Description
codetext java.lang.String input codetext

Returns: java.lang.String - codetext with parenteses

combinePairs(System.Collections.Generic.List pairs)

public static String combinePairs(System.Collections.Generic.List<GS1AiPair> pairs)

Combine pairs in a single line (without parenthesis)

Parameters:

Parameter Type Description
pairs com.aspose.ms.System.Collections.Generic.List<com.aspose.barcode.common.GS1AiPair> List of GS1AiPair-s

Returns: java.lang.String - a string

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

find(System.Collections.Generic.IGenericEnumerable list, String ai)

public static GS1AiPair find(System.Collections.Generic.IGenericEnumerable<GS1AiPair> list, String ai)

Gets a pair by AI string

Parameters:

Parameter Type Description
list com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.barcode.common.GS1AiPair> List of GS1AiPair-s
ai java.lang.String AI of the pair

Returns: GS1AiPair - pair with given AI if it exists. Else null

getAi()

public String getAi()

Gets the AI type

Returns: java.lang.String

getAiDescription()

public AIDescription getAiDescription()

Gets the AI description

Returns: AIDescription

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFirst()

public String getFirst()

Gets an AI

Returns: java.lang.String

getSecond()

public String getSecond()

Gets a text

Returns: java.lang.String

getValue()

public String getValue()

Gets the text after AI

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

isAiBetween(int fromDigit, int toDigit)

public boolean isAiBetween(int fromDigit, int toDigit)

Checks Ai for entry in the interval

Parameters:

Parameter Type Description
fromDigit int A start interval
toDigit int A end interval

Returns: boolean - True if includeded

isValueBetween(int fromDigit, int toDigit)

public boolean isValueBetween(int fromDigit, int toDigit)

Checks Value for entry in the interval

Parameters:

Parameter Type Description
fromDigit int A start interval
toDigit int A end interval

Returns: boolean - True if includeded

isValueDate(String format)

public boolean isValueDate(String format)

Checks if a Value string is a date in the specified format

Parameters:

Parameter Type Description
format java.lang.String date format

Returns: boolean - True if string is a date

isValueDigitsOnly()

public boolean isValueDigitsOnly()

Indicates wether the Value string is contained only digits

Returns: boolean - True is value contains only didgits

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAi(String value)

public void setAi(String value)

Sets the AI type

Parameters:

Parameter Type Description
value java.lang.String

setAiDescription(AIDescription value)

public void setAiDescription(AIDescription value)

Sets the AI description

Parameters:

Parameter Type Description
value AIDescription

setValue(String value)

public void setValue(String value)

Sets the text after AI

Parameters:

Parameter Type Description
value java.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int