com.ibm.rfid.premises.app.entities.supplychain
Class PackType

java.lang.Object
  extended by BasePackType
      extended by com.ibm.rfid.premises.app.entities.supplychain.PackType

public class PackType
extends BasePackType


Field Summary
protected  java.lang.String _containedPackIds
           
protected  java.lang.String _defaultPrintTemplate
           
protected  java.lang.String _epcEncoding
           
protected  java.lang.String _filterValue
           
protected  java.lang.String _id
           
protected  java.lang.String _indicatorDigit
           
protected  java.lang.String[] _inputTypes
           
protected  java.lang.String _mixed
           
protected  java.lang.String _name
           
 
Constructor Summary
PackType(BasePackType pt)
           
 
Method Summary
 java.lang.String getContainedPackTypeIDs()
           
 int getDecimalFilterValue()
          gets the decimal int representation of this packtype's filter value (.e.g, a packtype with filter "010" would return the int '2')
 java.lang.String getDefaultPrintTemplate()
           
 java.lang.String getEpcEncoding()
           
 java.lang.String getFilterValue()
           
 java.lang.String getId()
           
 java.lang.String getIndicatorDigit()
           
 java.lang.String[] getInputTypes()
           
 java.lang.String getName()
           
 boolean isCase()
          checks to see if this packtype is a case (vs.
 boolean isItem()
          checks to see if this packtype is an item (vs.
 boolean isItemLevel()
          checks to see if this packtype contains an ecoding that is item level.
 boolean isNonItemLevel()
          checks to see if this packtype contains an ecoding that is non item level.
 boolean isPallet()
          checks to see if this packtype is a pallet (vs.
 boolean isValidInput(java.lang.String data, java.lang.String companyPrefix)
          Checks to see if parameters (data, companyPrefix) are valid for this PackType's encoding type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_id

protected java.lang.String _id

_indicatorDigit

protected java.lang.String _indicatorDigit

_filterValue

protected java.lang.String _filterValue

_epcEncoding

protected java.lang.String _epcEncoding

_defaultPrintTemplate

protected java.lang.String _defaultPrintTemplate

_mixed

protected java.lang.String _mixed

_containedPackIds

protected java.lang.String _containedPackIds

_inputTypes

protected java.lang.String[] _inputTypes
Constructor Detail

PackType

public PackType(BasePackType pt)
Method Detail

getContainedPackTypeIDs

public java.lang.String getContainedPackTypeIDs()

isValidInput

public boolean isValidInput(java.lang.String data,
                            java.lang.String companyPrefix)
                     throws PremisesAccessException
Checks to see if parameters (data, companyPrefix) are valid for this PackType's encoding type

Parameters:
data - global product identifier used to uniquely identify a product or item
companyPrefix - company prefix of product or item
Returns:
true if data and company prefix produce a valid input type for this PackType's encoding.
Throws:
PremisesAccessException

isNonItemLevel

public boolean isNonItemLevel()
checks to see if this packtype contains an ecoding that is non item level. NOTE: isItemLevel is *NOT* the opposite of isNonItemLevel. This pack type can contain an encoding that can be both an item level and non item level (e.g., DOD64/96).

Returns:
true is is a non item level pack type

isItemLevel

public boolean isItemLevel()
checks to see if this packtype contains an ecoding that is item level. NOTE: isItemLevel is *NOT* the opposite of isNonItemLevel. This pack type can contain an encoding that can be both an item level and non item level (e.g., DOD64/96).

Returns:
true is is an item level pack type

getDecimalFilterValue

public int getDecimalFilterValue()
gets the decimal int representation of this packtype's filter value (.e.g, a packtype with filter "010" would return the int '2')

Returns:
decimal int filter value

isItem

public boolean isItem()
checks to see if this packtype is an item (vs. a case or pallet)

Returns:
true if is item

isPallet

public boolean isPallet()
checks to see if this packtype is a pallet (vs. an item or case)

Returns:
true if is item

isCase

public boolean isCase()
checks to see if this packtype is a case (vs. an item or pallet)

Returns:
true if is item

getDefaultPrintTemplate

public java.lang.String getDefaultPrintTemplate()
Returns:

getEpcEncoding

public java.lang.String getEpcEncoding()
Returns:

getFilterValue

public java.lang.String getFilterValue()
Returns:

getId

public java.lang.String getId()
Returns:

getIndicatorDigit

public java.lang.String getIndicatorDigit()
Returns:

getInputTypes

public java.lang.String[] getInputTypes()
Returns:

getName

public java.lang.String getName()
Returns:


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