com.ibm.rfid.premises.app.entities
Class EPCTagGroup

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by com.ibm.rfid.premises.app.entities.EPCTagGroup
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class EPCTagGroup
extends java.util.Vector

The EPCTagGroup is a Vector extended class that groups similar EPCTag objects together.

EPCTag objects are grouped together in this EPCTagGroup object if they have the same:

See Also:
Serialized Form

Field Summary
static int DOD_DIGIT
          int used to represent USDOD encoding
static int GIAI_DIGIT
          int used to represent GIAI encoding
static int GID_DIGIT
          int used to represent GID encoding
static int GRAI_DIGIT
          int used to represent GRAI encoding
static int SGLN_DIGIT
          int used to represent SGLN encoding
static int SGTIN_DIGIT
          int used to represent SGTIN encoding
static int SSCC_DIGIT
          int used to represent SSCC encoding
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EPCTagGroup()
          base constructor
 
Method Summary
 java.lang.String getCompanyPrefix()
           
 java.lang.String getFilterValue()
          gets filter value of tags
 java.lang.String getGroupname()
          gets the unique name used to describe this EPCTagGroup
 java.lang.String getGroupTagFormat()
          gets the group's tag format (epc encoding)
 int getGroupTagFormatDigit()
          gets group tag format digit
 java.lang.String getIndicatorDigit()
          get indicator digit
 java.lang.String getItemRef()
          gets item reference of tags
 boolean hasCompanyPrefix()
          checks if tags have a company prefix
 boolean hasFilterValue()
          checks if tags have filter value
 boolean hasItemRef()
          checks if tags have item reference
 boolean isCaseGrp()
          checks to see if group represents case tags
 boolean isPalletGrp()
          checks to see if group represents pallet tags
 boolean isRetailunit()
          checks if this group represents retail tags (filter decimal value of
 boolean isShippingandretailunit()
          checks if this group represents both shipping and retail units
 boolean isShippingunit()
          checks if tags are shipping units
 void setFilterValue(java.lang.String string)
          set the filter value
 void setGroupname(java.lang.String string)
          sets the group name.
 void setGroupTagFormat(java.lang.String string)
          sets the tag format (epc encoding)
 void setGroupTagFormatDigit(int i)
          sets the group tag format digit to i
 void setIndicatorDigit(java.lang.String string)
          sets the indicator digit for this tag group
 void setItemRef(java.lang.String string)
          sets item reference
 void setRetailunit(boolean b)
          sets isRetailUnit boolean
 void setShippingandretailunit(boolean b)
          sets isShippingnadretailunit boolean
 void setShippingunit(boolean b)
          sets isShippingunit boolean
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

GID_DIGIT

public static final int GID_DIGIT
int used to represent GID encoding

See Also:
Constant Field Values

SSCC_DIGIT

public static final int SSCC_DIGIT
int used to represent SSCC encoding

See Also:
Constant Field Values

GIAI_DIGIT

public static final int GIAI_DIGIT
int used to represent GIAI encoding

See Also:
Constant Field Values

GRAI_DIGIT

public static final int GRAI_DIGIT
int used to represent GRAI encoding

See Also:
Constant Field Values

SGTIN_DIGIT

public static final int SGTIN_DIGIT
int used to represent SGTIN encoding

See Also:
Constant Field Values

DOD_DIGIT

public static final int DOD_DIGIT
int used to represent USDOD encoding

See Also:
Constant Field Values

SGLN_DIGIT

public static final int SGLN_DIGIT
int used to represent SGLN encoding

See Also:
Constant Field Values
Constructor Detail

EPCTagGroup

public EPCTagGroup()
base constructor

Method Detail

getGroupname

public java.lang.String getGroupname()
gets the unique name used to describe this EPCTagGroup

Returns:
group name String

getGroupTagFormat

public java.lang.String getGroupTagFormat()
gets the group's tag format (epc encoding)

Returns:
group tag format

isRetailunit

public boolean isRetailunit()
checks if this group represents retail tags (filter decimal value of

Returns:
true if group represents retail tags

isShippingandretailunit

public boolean isShippingandretailunit()
checks if this group represents both shipping and retail units

Returns:
true if group represents shipping and retail units

isShippingunit

public boolean isShippingunit()
checks if tags are shipping units

Returns:
true if tags are shipping units

isPalletGrp

public boolean isPalletGrp()
checks to see if group represents pallet tags

Returns:
true if group is pallet tags

isCaseGrp

public boolean isCaseGrp()
checks to see if group represents case tags

Returns:
true if group is case tags

hasFilterValue

public boolean hasFilterValue()
checks if tags have filter value

Returns:
true if tags in group have filter value

hasItemRef

public boolean hasItemRef()
checks if tags have item reference

Returns:
true if tags in group have item reference

hasCompanyPrefix

public boolean hasCompanyPrefix()
checks if tags have a company prefix

Returns:
true if tags in group have company prefix

getFilterValue

public java.lang.String getFilterValue()
gets filter value of tags

Returns:
filter value String

getItemRef

public java.lang.String getItemRef()
gets item reference of tags

Returns:
item reference String

setFilterValue

public void setFilterValue(java.lang.String string)
set the filter value

Parameters:
string - filter value String

setItemRef

public void setItemRef(java.lang.String string)
sets item reference

Parameters:
string - item reference String

setGroupname

public void setGroupname(java.lang.String string)
                  throws InvalidTagURIException
sets the group name. This also gets other information (company prefix, filter value, etc) from the group name string and saves them)

Parameters:
string - group name String
Throws:
InvalidTagURIException
See Also:
getGroupname()

setGroupTagFormat

public void setGroupTagFormat(java.lang.String string)
sets the tag format (epc encoding)

Parameters:
string - tag format String

setRetailunit

public void setRetailunit(boolean b)
sets isRetailUnit boolean

Parameters:
b - isRetailUnit
See Also:
isRetailunit()

setShippingandretailunit

public void setShippingandretailunit(boolean b)
sets isShippingnadretailunit boolean

Parameters:
b - isShipping and retailunit
See Also:
isShippingandretailunit()

setShippingunit

public void setShippingunit(boolean b)
sets isShippingunit boolean

Parameters:
b - isShippingunit
See Also:
isShippingunit()

getIndicatorDigit

public java.lang.String getIndicatorDigit()
get indicator digit

Returns:
indicator digit

setIndicatorDigit

public void setIndicatorDigit(java.lang.String string)
sets the indicator digit for this tag group

Parameters:
string - indicator digit to set

getGroupTagFormatDigit

public int getGroupTagFormatDigit()
gets group tag format digit

Returns:
group tag format digit

setGroupTagFormatDigit

public void setGroupTagFormatDigit(int i)
sets the group tag format digit to i

Parameters:
i - format digit to set

getCompanyPrefix

public java.lang.String getCompanyPrefix()


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.