2009-10-01 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.config.servlet.store
Class LLRPDefStore

java.lang.Object
  extended by org.eclipse.soda.dk.epcglobal.llrp.config.servlet.store.LLRPDefStore

public class LLRPDefStore
extends java.lang.Object

Since:
1.2
Version:
1.2.0

Field Summary
static java.lang.String LLRP_DEF_STRING
          Define the llrp def string (String) constant.
 
Constructor Summary
LLRPDefStore()
           
 
Method Summary
static void addEnumDef(java.lang.String enumId, int enumType, java.lang.String[] enums)
          Add enum def with the specified enum id, enum type and enums parameters.
static void addParamDef(java.lang.String paramId, int paramType)
          Add param def with the specified param id and param type parameters.
static void addParamElementDef(java.lang.String paramId, java.lang.String elementId, int elementType, java.lang.String minOccur, java.lang.String maxOccur)
          Add param element def with the specified param id, element id, element type, min occur and max occur parameters.
static void addParamElementDefInChoice(java.lang.String choiceId, java.lang.String elementId, int elementType, java.lang.String minOccur, java.lang.String maxOccur)
          Add param element def in choice with the specified choice id, element id, element type, min occur and max occur parameters.
static void addProfileDef(java.lang.String profileId)
          Add profile def with the specified profile id parameter.
static java.lang.String[] getChoiceItems(java.lang.String id)
          Get choice items with the specified id parameter and return the String[] result.
static java.lang.String[] getEnumItems(java.lang.String id)
          Get enum items with the specified id parameter and return the String[] result.
static int getListType(java.lang.String id)
          Get list type with the specified id parameter and return the int result.
static java.util.Map getParamElementDef(java.lang.String paramId, java.lang.String elementId)
          Get param element def with the specified param id and element id parameters and return the Map result.
static java.util.List getParamElements(java.lang.String paramId)
          Get param elements with the specified param id parameter and return the List result.
static int getParamElementType(java.lang.String paramId, java.lang.String elementId)
          Get param element type with the specified param id and element id parameters and return the int result.
static java.util.Map getParameterDef(java.lang.String id)
          Get parameter def with the specified id parameter and return the Map result.
static int getVariableLengthType(java.lang.String id)
          Get variable length type with the specified id parameter and return the int result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LLRP_DEF_STRING

public static final java.lang.String LLRP_DEF_STRING
Define the llrp def string (String) constant.

Constructor Detail

LLRPDefStore

public LLRPDefStore()
Method Detail

addEnumDef

public static void addEnumDef(java.lang.String enumId,
                              int enumType,
                              java.lang.String[] enums)
Add enum def with the specified enum id, enum type and enums parameters.

Parameters:
enumId - The enum ID (String) parameter.
enumType - The enum type (int) parameter.
enums - The enums (String[]) parameter.

addParamDef

public static void addParamDef(java.lang.String paramId,
                               int paramType)
Add param def with the specified param id and param type parameters.

Parameters:
paramId - The param ID (String) parameter.
paramType - The param type (int) parameter.

addParamElementDef

public static void addParamElementDef(java.lang.String paramId,
                                      java.lang.String elementId,
                                      int elementType,
                                      java.lang.String minOccur,
                                      java.lang.String maxOccur)
Add param element def with the specified param id, element id, element type, min occur and max occur parameters.

Parameters:
paramId - The param ID (String) parameter.
elementId - The element ID (String) parameter.
elementType - The element type (int) parameter.
minOccur - The min occur (String) parameter.
maxOccur - The max occur (String) parameter.
See Also:
getParamElementDef(String,String)

addParamElementDefInChoice

public static void addParamElementDefInChoice(java.lang.String choiceId,
                                              java.lang.String elementId,
                                              int elementType,
                                              java.lang.String minOccur,
                                              java.lang.String maxOccur)
Add param element def in choice with the specified choice id, element id, element type, min occur and max occur parameters.

Parameters:
choiceId - The choice ID (String) parameter.
elementId - The element ID (String) parameter.
elementType - The element type (int) parameter.
minOccur - The min occur (String) parameter.
maxOccur - The max occur (String) parameter.

addProfileDef

public static void addProfileDef(java.lang.String profileId)
Add profile def with the specified profile id parameter.

Parameters:
profileId - The profile ID (String) parameter.

getChoiceItems

public static java.lang.String[] getChoiceItems(java.lang.String id)
Get choice items with the specified id parameter and return the String[] result.

Parameters:
id - The ID (String) parameter.
Returns:
Results of the get choice items (String[]) value.

getEnumItems

public static java.lang.String[] getEnumItems(java.lang.String id)
Get enum items with the specified id parameter and return the String[] result.

Parameters:
id - The ID (String) parameter.
Returns:
Results of the get enum items (String[]) value.

getListType

public static int getListType(java.lang.String id)
Get list type with the specified id parameter and return the int result.

Parameters:
id - The ID (String) parameter.
Returns:
Results of the get list type (int) value.

getParamElementDef

public static java.util.Map getParamElementDef(java.lang.String paramId,
                                               java.lang.String elementId)
Get param element def with the specified param id and element id parameters and return the Map result.

Parameters:
paramId - The param ID (String) parameter.
elementId - The element ID (String) parameter.
Returns:
Results of the get param element def (Map) value.
See Also:
addParamElementDef(String,String,int,String,String)

getParamElementType

public static int getParamElementType(java.lang.String paramId,
                                      java.lang.String elementId)
Get param element type with the specified param id and element id parameters and return the int result.

Parameters:
paramId - The param ID (String) parameter.
elementId - The element ID (String) parameter.
Returns:
Results of the get param element type (int) value.

getParamElements

public static java.util.List getParamElements(java.lang.String paramId)
Get param elements with the specified param id parameter and return the List result.

Parameters:
paramId - The param ID (String) parameter.
Returns:
Results of the get param elements (List) value.

getParameterDef

public static java.util.Map getParameterDef(java.lang.String id)
Get parameter def with the specified id parameter and return the Map result.

Parameters:
id - The ID (String) parameter.
Returns:
Results of the get parameter def (Map) value.

getVariableLengthType

public static int getVariableLengthType(java.lang.String id)
Get variable length type with the specified id parameter and return the int result.

Parameters:
id - The ID (String) parameter.
Returns:
Results of the get variable length type (int) value.

2009-10-01 1.2.0

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