2008-02-07 1.1.0

org.eclipse.soda.dk.epcglobal.llrp.helper
Class LLRPUtils

java.lang.Object
  extended by org.eclipse.soda.dk.epcglobal.llrp.helper.LLRPUtils

public class LLRPUtils
extends java.lang.Object

Version:
1.1.0

Constructor Summary
LLRPUtils()
           
 
Method Summary
static java.lang.String byteArray2Str(byte[] bytes)
          Byte array2 str with the specified bytes parameter and return the String result.
static byte[] convertIntListToBytes(java.util.List intList)
          Convert int list to bytes with the specified int list parameter and return the byte[] result.
static java.lang.Integer extractAntennaId(java.util.Map antennaIdParam)
          Extract antenna id with the specified antenna id param parameter and return the Integer result.
static java.lang.String extractTag(java.util.Map EPCParameterChoice)
          Extract tag with the specified epcparameter choice parameter and return the String result.
static java.lang.Integer extractTagSeenCount(java.util.Map tagSeenCountParam)
          Extract tag seen count with the specified tag seen count param parameter and return the Integer result.
static java.lang.String handleErrorResponse(java.lang.String sourceTask, java.util.Map paramMap)
          Handle error response with the specified source task and param map parameters and return the String result.
static java.lang.String hexStrIncrement(java.lang.String str, int inc)
          Hex str increment with the specified str and inc parameters and return the String result.
static boolean isValidTagId(java.lang.String tagId)
          Is valid tag id with the specified tag id parameter and return the boolean result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLRPUtils

public LLRPUtils()
Method Detail

byteArray2Str

public static java.lang.String byteArray2Str(byte[] bytes)
Byte array2 str with the specified bytes parameter and return the String result.

Parameters:
bytes - The bytes (byte[]) parameter.
Returns:
Results of the byte array2 str (String) value.

convertIntListToBytes

public static byte[] convertIntListToBytes(java.util.List intList)
Convert int list to bytes with the specified int list parameter and return the byte[] result.

Parameters:
intList - The int list (List) parameter.
Returns:
Results of the convert int list to bytes (byte[]) value.

extractAntennaId

public static java.lang.Integer extractAntennaId(java.util.Map antennaIdParam)
Extract antenna id with the specified antenna id param parameter and return the Integer result.

Parameters:
antennaIdParam - The antenna id param (Map) parameter.
Returns:
Results of the extract antenna id (Integer) value.

extractTag

public static java.lang.String extractTag(java.util.Map EPCParameterChoice)
Extract tag with the specified epcparameter choice parameter and return the String result.

Parameters:
EPCParameterChoice - The epcparameter choice (Map) parameter.
Returns:
Results of the extract tag (String) value.

extractTagSeenCount

public static java.lang.Integer extractTagSeenCount(java.util.Map tagSeenCountParam)
Extract tag seen count with the specified tag seen count param parameter and return the Integer result.

Parameters:
tagSeenCountParam - The tag seen count param (Map) parameter.
Returns:
Results of the extract tag seen count (Integer) value.

handleErrorResponse

public static java.lang.String handleErrorResponse(java.lang.String sourceTask,
                                                   java.util.Map paramMap)
Handle error response with the specified source task and param map parameters and return the String result.

Parameters:
sourceTask - The source task (String) parameter.
paramMap - The param map (Map) parameter.
Returns:
Results of the handle error response (String) value.

hexStrIncrement

public static java.lang.String hexStrIncrement(java.lang.String str,
                                               int inc)
Hex str increment with the specified str and inc parameters and return the String result.

Parameters:
str - The str (String) parameter.
inc - The inc (int) parameter.
Returns:
Results of the hex str increment (String) value.

isValidTagId

public static boolean isValidTagId(java.lang.String tagId)
Is valid tag id with the specified tag id parameter and return the boolean result.

Parameters:
tagId - The tag id (String) parameter.
Returns:
Results of the is valid tag id (boolean) value.

2008-02-07 1.1.0

Copyright (c) 2008 IBM. See license in Legal section.